/* ==========================================================
   Cenlyio — Modern Minimalist Tech Theme
   Bilingual (繁中 default, EN toggle)
   ========================================================== */

:root {
  --navy-900: #0A1628;
  --navy-800: #0F1E36;
  --navy-700: #1F4E78;
  --teal-300: #5EEAD4;
  --teal-500: #14B8A6;
  --teal-600: #0D9488;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-700: #334155;
  --bg: #FAFAFA;
  --bg-alt: #FFFFFF;
  --text: #0A1628;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.06);
  --shadow-lg: 0 16px 40px rgba(10, 22, 40, 0.10);
  --radius: 12px;
  --radius-lg: 18px;
  --max-w: 1200px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for sticky .nav so anchor targets aren't hidden */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Inter, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-lang="en"] {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  /* iOS Safari fixes */
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: rgba(94, 234, 212, 0.25);
  touch-action: manipulation;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* Language toggling */
.lang-zh, .lang-en { display: none; }
body[data-lang="zh"] .lang-zh { display: inline; }
body[data-lang="en"] .lang-en { display: inline; }
body[data-lang="zh"] .block.lang-zh,
body[data-lang="en"] .block.lang-en { display: block; }

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

section {
  padding: var(--space-8) 0;
}

@media (max-width: 768px) {
  section { padding: var(--space-7) 0; }
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-logo {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  font-size: 15px;
  color: var(--slate-700);
}

.nav-links a:hover { color: var(--navy-700); }

.lang-toggle {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  display: inline-flex;
  background: var(--bg-alt);
  gap: 2px;
}

.lang-toggle button {
  padding: 8px 14px;
  min-height: 36px;
  min-width: 40px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--slate-500);
  font-weight: 500;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-toggle button:active {
  background: rgba(94, 234, 212, 0.18);
  color: var(--navy-900);
}

body[data-lang="zh"] .lang-toggle button[data-set="zh"],
body[data-lang="en"] .lang-toggle button[data-set="en"] {
  background: var(--navy-900);
  color: white;
}

/* ============ MOBILE NAV — hamburger + drawer ============ */
.nav-controls {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-hamburger {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  touch-action: manipulation;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 720px) {
  /* Drop backdrop-filter on mobile so it doesn't create a containing block
     for the fixed-positioned drawer (which would clip it to the header). */
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }

  .nav-hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-5) var(--space-4);
    gap: var(--space-3);
    transform: translateY(-110vh);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 49;
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.08);
    border-top: 1px solid var(--border);
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .nav-links > a {
    display: block;
    padding: var(--space-3) 0;
    font-size: 18px;
    color: var(--navy-900);
    border-bottom: 1px solid var(--border);
  }

  .nav-links > a.btn {
    margin-top: var(--space-3);
    text-align: center;
    border-bottom: none;
    background: var(--navy-900);
    color: white;
    border-radius: var(--radius-md);
    padding: var(--space-3);
  }
}

/* ============ HERO ============ */
.hero {
  padding: var(--space-8) 0 var(--space-7);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(94, 234, 212, 0.10), transparent 40%),
              radial-gradient(circle at 80% 30%, rgba(31, 78, 120, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal-600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  padding: 6px 14px;
  background: rgba(94, 234, 212, 0.12);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-bottom: var(--space-4);
  max-width: 18ch;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--navy-700), var(--teal-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--slate-700);
  max-width: 60ch;
  margin-bottom: var(--space-5);
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy-900);
  color: white;
}
.btn-primary:hover { background: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: white;
  color: var(--navy-900);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--navy-700); }

.btn-ghost {
  color: var(--navy-700);
  padding: 12px 0;
}
.btn-ghost:hover { color: var(--teal-600); }

.btn-arrow::after {
  content: "→";
  transition: transform 0.15s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ============ SECTIONS ============ */
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-600);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy-900);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.section-lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--slate-700);
  max-width: 60ch;
  margin-bottom: var(--space-6);
}

/* ============ THE GAP ============ */
.gap {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.gap-card {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.gap-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: var(--space-2);
}

.gap-card p {
  font-size: 15px;
  color: var(--slate-700);
}

.gap-card .price {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-500);
  margin-bottom: var(--space-2);
}

.gap-card.highlight {
  background: var(--navy-900);
  border-color: var(--navy-900);
}
.gap-card.highlight h3, .gap-card.highlight p, .gap-card.highlight .price {
  color: white;
}
.gap-card.highlight .price { color: var(--teal-300); }

@media (max-width: 768px) {
  .gap-grid { grid-template-columns: 1fr; }
}

/* ============ TIERS / PRICING ============ */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.tier {
  padding: var(--space-5);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tier:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-500);
}

.tier-anchor {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  border-color: var(--navy-900);
  color: white;
  position: relative;
}
.tier-anchor::before {
  content: "★";
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  color: var(--teal-300);
  font-size: 18px;
}
.tier-anchor .tier-num,
.tier-anchor .tier-name,
.tier-anchor .tier-price-amt,
.tier-anchor .tier-feat li { color: white; }
.tier-anchor .tier-feat li::before { background: var(--teal-300); }
.tier-anchor .tier-price-amt { color: var(--teal-300); }
.tier-anchor .tier-period,
.tier-anchor .tier-desc { color: var(--slate-400); }

.tier-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-600);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.tier-name {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: var(--space-1);
}

.tier-desc {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: var(--space-3);
  min-height: 36px;
}

.tier-price {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.tier-anchor .tier-price { border-color: rgba(255,255,255,0.12); }

.tier-price-amt {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.tier-price-amt small { font-size: 14px; font-weight: 500; }
.tier-price-usd { font-size: 13px; font-weight: 400; color: var(--navy-700); opacity: 0.7; letter-spacing: 0; }

.tier-period {
  font-size: 13px;
  color: var(--slate-500);
  margin-top: 2px;
}

.tier-feat {
  list-style: none;
  margin-bottom: var(--space-4);
}

.tier-feat li {
  font-size: 14px;
  color: var(--slate-700);
  padding-left: 22px;
  position: relative;
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

.tier-feat li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 4px;
  background: var(--teal-500);
  border-radius: 2px;
}

.tier-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: stretch;
}

.tier-detail-link {
  font-size: 13px;
  color: var(--teal-600);
  text-align: center;
  padding: 6px 0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.tier-detail-link:hover {
  color: var(--teal-500);
}

.tier-anchor .tier-detail-link {
  color: var(--teal-300);
}

.tier-anchor .tier-detail-link:hover {
  color: var(--teal-200, #99F6E4);
}

@media (max-width: 1000px) {
  .tiers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tiers-grid { grid-template-columns: 1fr; }
}

/* ============ ARCHITECTURE DIAGRAM ============ */
.arch {
  background: var(--navy-900);
  color: white;
  position: relative;
  overflow: hidden;
}

.arch::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(94, 234, 212, 0.15), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(31, 78, 120, 0.4), transparent 60%);
  pointer-events: none;
}

.arch .container { position: relative; }

.arch .section-title { color: white; }
.arch .section-lead { color: var(--slate-400); }
.arch .section-eyebrow { color: var(--teal-300); }

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.arch-layer {
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  position: relative;
}

.arch-layer::before {
  content: attr(data-num);
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: 11px;
  color: var(--teal-300);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Subtitle for sub-sections inside .arch */
.arch-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-300);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}
.arch-subtitle-spaced { margin-top: var(--space-7); }

/* AI maturity mode cards — slightly bolder than the layer cards */
.arch-mode {
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(94, 234, 212, 0.18);
}
.arch-mode h4 {
  font-size: 17px;
  margin-bottom: 6px;
}
.arch-mode::before {
  background: rgba(94, 234, 212, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.arch-layer h4 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.arch-layer p {
  font-size: 13px;
  color: var(--slate-400);
}

@media (max-width: 768px) {
  .arch-grid { grid-template-columns: 1fr; }
}

/* ============ WHY CENLYIO ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.why-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.why-item h3 .dot {
  width: 8px;
  height: 8px;
  background: var(--teal-500);
  border-radius: 50%;
}

.why-item p {
  font-size: 15px;
  color: var(--slate-700);
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* ============ PROCESS ============ */
.process {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 10%, var(--border) 90%, transparent);
  z-index: 0;
}

.process-step { position: relative; z-index: 1; }

.process-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: var(--space-3);
  font-size: 17px;
}

.process-step h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.process-step p {
  font-size: 14px;
  color: var(--slate-700);
}

@media (max-width: 768px) {
  .process-steps { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }
}

/* ============ CTA ============ */
.cta {
  text-align: center;
  background: var(--navy-900);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(94, 234, 212, 0.18), transparent 40%),
    radial-gradient(circle at 70% 50%, rgba(31, 78, 120, 0.4), transparent 50%);
  pointer-events: none;
}

.cta .container { position: relative; max-width: 720px; }

.cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.cta p {
  font-size: 17px;
  color: var(--slate-400);
  margin-bottom: var(--space-5);
}

.cta .btn-primary {
  background: var(--teal-500);
}
.cta .btn-primary:hover { background: var(--teal-600); }

/* ============ STATUS BADGE (online indicator) ============ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--space-3);
  border: 1px solid;
  letter-spacing: 0.01em;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
  position: relative;
  isolation: isolate;
}

.status-badge[data-status="online"] {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.35);
}

.status-badge[data-status="offline"] {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.3);
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-badge[data-status="online"] .status-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  z-index: -1;
  animation: status-pulse 1.8s ease-out infinite;
}

@keyframes status-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(2.8); opacity: 0; }
}

.status-badge[data-status="online"] .status-text-offline,
.status-badge[data-status="offline"] .status-text-online {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .status-badge[data-status="online"] .status-dot::before {
    animation: none;
    opacity: 0.3;
    transform: scale(1.6);
  }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--navy-900);
  color: var(--slate-400);
  padding: var(--space-6) 0 var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 14px;
}

.footer img { height: 26px; }
.footer a:hover { color: var(--teal-300); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   v1.1 ADDITIONS: case study, contact form, animations,
   roadmap page styles
   ========================================================== */

/* ============ CASE STUDY ============ */
.case {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.case-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-5);
}

.case-grid + .case-grid {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.case-text h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.case-text .meta {
  display: inline-block;
  font-size: 13px;
  color: var(--teal-600);
  background: rgba(94, 234, 212, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.case-text p {
  color: var(--slate-700);
  font-size: 15px;
  margin-bottom: var(--space-3);
  line-height: 1.7;
}

.case-stats-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  color: white;
}

.case-stat .num {
  font-size: 32px;
  font-weight: 700;
  color: var(--teal-300);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.case-stat .label {
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 4px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .case-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ============ CONTACT FORM ============ */
.contact-form {
  max-width: 560px;
  margin: var(--space-5) auto 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.form-row {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.form-row.row-2 {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.form-row label {
  font-size: 13px;
  color: var(--slate-400);
  font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-row textarea { min-height: 90px; resize: vertical; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal-300);
  background: rgba(255, 255, 255, 0.10);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--slate-500);
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394A3B8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.form-note {
  font-size: 12px;
  color: var(--slate-500);
  text-align: center;
}

.form-success,
.form-error {
  padding: var(--space-3);
  border-radius: 8px;
  font-size: 14px;
  margin-top: var(--space-3);
  display: none;
}

.form-success {
  background: rgba(94, 234, 212, 0.12);
  color: var(--teal-300);
  border: 1px solid rgba(94, 234, 212, 0.3);
}

.form-error {
  background: rgba(239, 68, 68, 0.12);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 600px) {
  .form-row.row-2 { grid-template-columns: 1fr; }
}

/* WhatsApp alt CTA */
.alt-cta {
  margin-top: var(--space-4);
  text-align: center;
  font-size: 14px;
  color: var(--slate-400);
}

.alt-cta a {
  color: var(--teal-300);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ============ SCROLL REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.30s; }

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ ROADMAP PAGE EXTRAS ============ */
.page-hero {
  padding: var(--space-7) 0 var(--space-5);
}

.back-link {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: var(--space-3);
  display: inline-block;
}
.back-link:hover { color: var(--navy-700); }

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.deliverable {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.deliverable:hover {
  border-color: var(--teal-500);
  transform: translateY(-2px);
}

.deliverable .num {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-600);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.deliverable h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.deliverable p {
  font-size: 14px;
  color: var(--slate-700);
}

@media (max-width: 768px) {
  .deliverables-grid { grid-template-columns: 1fr; }
}

.roadmap-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

@media (max-width: 768px) {
  .roadmap-tiers { grid-template-columns: 1fr; }
}

/* Phase blocks for Roadmap page */
.phase {
  border-left: 2px solid var(--teal-500);
  padding-left: var(--space-4);
  margin-bottom: var(--space-5);
}

.phase h3 {
  font-size: 18px;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 4px;
}

.phase .when {
  font-size: 13px;
  color: var(--teal-600);
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.phase p {
  font-size: 15px;
  color: var(--slate-700);
}

/* Subtle hero gradient animation */
@keyframes hero-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: hero-pulse 9s ease-in-out infinite; }
}
