/* ==========================================================================
   VahanSpace India — design system
   Brand: black, gold and silver, taken from the VahanSpace logo.
   Type:  Syne (display) · DM Sans (body) · JetBrains Mono (labels)
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-2: #0f0f12;
  --surface: #15151a;
  --surface-2: #1c1c22;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --text: #eceae4;
  --text-2: #c4c2bb;
  --muted: #8f8c84;

  --gold: #d4a73a;
  --gold-hi: #f1cf6b;
  --gold-soft: rgba(212, 167, 58, 0.12);
  --gold-line: rgba(212, 167, 58, 0.35);
  --silver: #c9ccd1;

  --teal: #3ec7a6;
  --sky: #6aa9f0;
  --rose: #ef7a8f;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-display: 'Syne', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --header-bg: rgba(10, 10, 12, 0.78);
  --tint: rgba(255, 255, 255, 0.025);
  --tint-2: rgba(255, 255, 255, 0.05);

  /* Gold buttons stay bright with dark text in both themes. */
  --btn-from: #f1cf6b;
  --btn-to: #d4a73a;
  --on-gold: #15120a;
  --btn-shadow: 0 10px 30px -10px rgba(212, 167, 58, 0.55);
  --btn-shadow-hover: 0 16px 36px -12px rgba(212, 167, 58, 0.7);

  color-scheme: dark;
}

/* Light theme: warm ivory surfaces, deeper golds so gold text stays readable.
   Set on <html data-theme> by the inline script in <head> (system preference,
   or the visitor's saved choice from the header toggle). */
:root[data-theme='light'] {
  --bg: #faf8f3;
  --bg-2: #f3efe6;
  --surface: #ffffff;
  --surface-2: #f7f4ee;
  --line: rgba(40, 32, 12, 0.1);
  --line-2: rgba(40, 32, 12, 0.17);

  --text: #17150f;
  --text-2: #45423a;
  --muted: #6b675e;

  --gold: #835f0e;
  --gold-hi: #735208;
  --gold-soft: rgba(196, 150, 40, 0.12);
  --gold-line: rgba(160, 118, 22, 0.38);
  --silver: #5d626b;

  --teal: #0e7a62;
  --sky: #2563b0;
  --rose: #b8334f;

  --shadow: 0 20px 50px -24px rgba(60, 45, 10, 0.28);
  --header-bg: rgba(250, 248, 243, 0.82);
  --tint: rgba(40, 32, 12, 0.025);
  --tint-2: rgba(40, 32, 12, 0.05);
  --btn-shadow: 0 10px 26px -12px rgba(160, 118, 22, 0.55);
  --btn-shadow-hover: 0 14px 32px -12px rgba(160, 118, 22, 0.65);

  color-scheme: light;
}

/* Theme toggle */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--tint);
  color: var(--text); cursor: pointer; display: inline-grid; place-items: center; transition: border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme='light'] .theme-toggle .sun { display: none; }
:root[data-theme='light'] .theme-toggle .moon { display: block; }

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--text-2); }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.12; letter-spacing: -0.02em; color: var(--text); overflow-wrap: break-word; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.28rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--gold); color: #111; padding: 8px 14px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.gold { color: var(--gold-hi); }
.grad {
  background: linear-gradient(100deg, var(--gold-hi) 0%, var(--gold) 45%, var(--silver) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 42px; height: 38px; object-fit: cover; border-radius: 8px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: 0.02em; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.28em; color: var(--gold); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 0.92rem; color: var(--text-2); transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--tint-2); }
.nav-links a[aria-current='page'] { color: var(--gold-hi); }
.nav-cta { margin-left: 8px; }
.nav-links { margin-left: auto; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line-2); color: var(--text);
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ''; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.25s var(--ease);
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s var(--ease);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta a { text-align: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font-body);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary { background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); color: var(--on-gold); box-shadow: var(--btn-shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--btn-shadow-hover); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: var(--tint); }
.btn-ghost:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.nav-links .btn-primary { color: var(--on-gold); padding: 10px 18px; }
.nav-links .btn-primary:hover { background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); color: var(--on-gold); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-hi); font-weight: 600; font-size: 0.93rem; }
.link-arrow:hover { gap: 12px; }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ''; width: 26px; height: 1px; background: var(--gold); }
.section-head p { font-size: 1.08rem; margin-top: 16px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); }

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 11vw, 140px) 0 clamp(64px, 9vw, 110px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(212, 167, 58, 0.18), transparent 62%); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 26px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.84rem; color: var(--text-2); background: var(--tint);
}
.hero-badge b { background: var(--gold-soft); color: var(--gold-hi); border: 1px solid var(--gold-line); border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 0.76rem; }

.hero-logo {
  border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  aspect-ratio: 1; object-fit: cover; width: 100%; max-width: 420px; margin-left: auto;
}
/* Product labels sit below the logo, never on top of it. */
.hero-visual { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.hero-products {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  width: 100%; max-width: 420px;
}
.hero-products a {
  display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 1px;
  padding: 10px 14px; height: 100%; line-height: 1.3; overflow-wrap: anywhere;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  font-size: 0.86rem; font-weight: 600; color: var(--text); transition: border-color 0.2s, background 0.2s;
}
.hero-products a:hover { border-color: var(--gold-line); background: var(--surface-2); }
.hero-products i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.hero-products span { grid-column: 2; font-weight: 400; font-size: 0.76rem; color: var(--muted); }
@media (max-width: 360px) { .hero-products { grid-template-columns: minmax(0, 1fr); } }

/* Grid and flex children default to min-width:auto and refuse to shrink below
   their content, which pushes the hero past a phone screen. */
.hero-grid > *, .grid > *, .split > *, .product > *, .stack-summary > *,
.partner-hero > *, .contact-grid > *, .service > *, .feature > div, .spec > div { min-width: 0; }

.page-hero { padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 6vw, 72px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ''; position: absolute; right: -10%; top: -40%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(212, 167, 58, 0.14), transparent 62%); pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 900px; margin-bottom: 18px; }
.page-hero .lead { max-width: 720px; }
.crumbs { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.12em; margin-bottom: 22px; text-transform: uppercase; }
.crumbs a { display: inline-block; padding: 4px 0; }
.crumbs a:hover { color: var(--gold-hi); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stat { padding: 28px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; margin-bottom: 8px; color: var(--gold-hi); }
.stat span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.card:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; margin-bottom: 0; }
.card .link-arrow { margin-top: 18px; }

.spec { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 32px; }
.spec .icon { margin: 0; width: 54px; height: 54px; }
.spec .icon svg { width: 26px; height: 26px; }
.spec .tags { margin-top: 16px; }
@media (max-width: 520px) { .spec { grid-template-columns: 1fr; gap: 16px; padding: 26px; } }

.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-hi);
}
.icon svg { width: 24px; height: 24px; }
.icon.teal { background: rgba(62, 199, 166, 0.1); border-color: rgba(62, 199, 166, 0.32); color: var(--teal); }
.icon.sky { background: rgba(106, 169, 240, 0.1); border-color: rgba(106, 169, 240, 0.32); color: var(--sky); }
.icon.rose { background: rgba(239, 122, 143, 0.1); border-color: rgba(239, 122, 143, 0.32); color: var(--rose); }

.ticks { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.ticks li { position: relative; padding-left: 26px; font-size: 0.95rem; color: var(--text-2); }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px;
  border-left: 2px solid var(--gold-hi); border-bottom: 2px solid var(--gold-hi); transform: rotate(-45deg);
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; padding: 5px 10px;
  border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-2); background: var(--tint);
}
.tag.gold { border-color: var(--gold-line); color: var(--gold-hi); background: var(--gold-soft); }

.status {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; border: 1px solid;
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--teal); border-color: rgba(62, 199, 166, 0.35); background: rgba(62, 199, 166, 0.08); }
.status.build { color: var(--sky); border-color: rgba(106, 169, 240, 0.35); background: rgba(106, 169, 240, 0.08); }
.status.soon { color: var(--rose); border-color: rgba(239, 122, 143, 0.35); background: rgba(239, 122, 143, 0.08); }

/* ---------- Product blocks ---------- */
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start;
  padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.product + .product { margin-top: 28px; }
.product-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.product h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }
.product .tagline { font-family: var(--font-display); color: var(--gold-hi); font-size: 1.05rem; margin-bottom: 18px; }
.feature-list { display: grid; gap: 14px; }
.feature { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.feature .num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); padding-top: 2px; }
.feature h4 { margin-bottom: 4px; }
.feature p { font-size: 0.9rem; margin: 0; }
.audience { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }

/* ---------- Tech stack ---------- */
.stack-tabs { display: inline-flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: 36px; flex-wrap: wrap; }
.stack-tabs button {
  border: 0; background: transparent; color: var(--text-2); font: 600 0.92rem var(--font-body);
  padding: 10px 20px; min-height: 44px; border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.stack-tabs button[aria-selected='true'] { background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); color: var(--on-gold); }
.stack-panel[hidden] { display: none; }
.stack-summary { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; margin-bottom: 28px; align-items: start; }
.stack-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stack-table th, .stack-table td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stack-table tr:last-child th, .stack-table tr:last-child td { border-bottom: 0; }
.stack-table th { width: 200px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 500; background: var(--bg-2); }
.stack-table td .tags { margin-top: 0; }
.stack-table td p { font-size: 0.88rem; margin: 10px 0 0; color: var(--muted); }

.arch { display: grid; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.arch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.arch-box {
  flex: 1 1 120px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2);
  font-size: 0.84rem; text-align: center; color: var(--text-2);
}
.arch-box b { display: block; color: var(--text); font-size: 0.9rem; margin-bottom: 2px; }
.arch-box.hl { border-color: var(--gold-line); background: var(--gold-soft); }
.arch-arrow { text-align: center; color: var(--gold); font-size: 0.9rem; line-height: 1; }
.arch-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- Services ---------- */
.service {
  display: grid; grid-template-columns: 80px 1fr 1fr; gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--gold); line-height: 1; }
.service h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.disclaimer {
  margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.84rem; color: var(--text-2);
}
.disclaimer b { color: var(--gold-hi); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { padding: 28px 24px; border-right: 1px solid var(--line); background: var(--surface); counter-increment: step; }
.step:last-child { border-right: 0; }
.step::before { content: '0' counter(step); display: block; font-family: var(--font-mono); color: var(--gold); font-size: 0.8rem; margin-bottom: 18px; letter-spacing: 0.1em; }
.step h4 { margin-bottom: 8px; }
.step p { font-size: 0.9rem; margin: 0; }

/* ---------- Team ---------- */
.team-card { text-align: left; padding: 0; overflow: hidden; }
.team-top { height: 200px; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 50% 120%, rgba(212, 167, 58, 0.3), transparent 60%), var(--bg-2); border-bottom: 1px solid var(--line); }
.avatar {
  width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--on-gold);
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to) 55%, #9b7a2a); box-shadow: 0 0 0 6px rgba(212, 167, 58, 0.12), 0 0 0 1px var(--gold-line);
}
.avatar.silver { background: linear-gradient(135deg, #f1f2f4, var(--silver) 55%, #8d9097); }
.team-body { padding: 26px; }
.team-body h3 { margin-bottom: 4px; }
.role { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.org { display: inline-block; font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.team-body p { font-size: 0.94rem; }

/* ---------- Partner ---------- */
.partner-hero {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); border: 1px solid var(--gold-line);
  background: linear-gradient(135deg, rgba(212, 167, 58, 0.1), transparent 60%), var(--surface);
}
.partner-mark {
  aspect-ratio: 1.3; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-2);
  display: grid; place-items: center; text-align: center; padding: 24px;
}
.partner-mark .eu { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.04em; }
.partner-mark .eu sup { font-size: 0.4em; color: var(--gold-hi); vertical-align: super; font-family: var(--font-mono); letter-spacing: 0; }
.partner-mark small { display: block; font-family: var(--font-mono); letter-spacing: 0.3em; font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--gold-line);
  padding: clamp(36px, 6vw, 72px); text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 167, 58, 0.22), transparent 65%), var(--surface);
}
.cta h2 { max-width: 760px; margin: 0 auto 16px; }
.cta p { max-width: 620px; margin: 0 auto 30px; font-size: 1.05rem; }
.cta .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-child { padding-top: 0; }
.contact-item .icon { margin: 0; width: 44px; height: 44px; }
.contact-item h4 { margin-bottom: 2px; }
.contact-item p, .contact-item a { margin: 0; font-size: 0.95rem; color: var(--text-2); word-break: break-word; }
.contact-item a { display: inline-block; padding: 6px 0; }
.contact-item a:hover { color: var(--gold-hi); }

.form { padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--gold-hi); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--text); font: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field .err { font-size: 0.8rem; color: var(--rose); min-height: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.86rem; color: var(--text-2); transition: all 0.2s; }
.chips input:checked + span { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-hi); }
.chips input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 0.92rem; display: none; }
.form-status.ok { display: block; background: rgba(62, 199, 166, 0.1); border: 1px solid rgba(62, 199, 166, 0.35); color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 500; }
.footer-grid ul { list-style: none; display: grid; gap: 2px; }
.footer-grid a { color: var(--text-2); font-size: 0.93rem; display: inline-block; padding: 5px 0; }
.footer-grid a:hover { color: var(--gold-hi); }
.footer-about p { font-size: 0.92rem; margin-top: 16px; max-width: 320px; }
.footer-grid ul.creds { gap: 6px; margin-top: 4px; }
.footer-address, .contact-address { font-style: normal; font-size: 0.9rem; line-height: 1.6; color: var(--text-2); }
.footer-address b, .contact-address b { color: var(--text); font-weight: 600; }
.creds li { font-size: 0.8rem; color: var(--muted); }
.creds b { color: var(--text-2); font-weight: 600; }
[id] { scroll-margin-top: 90px; }

.cred-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cred {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px;
  border: 1px solid var(--gold-line); border-radius: 12px; background: var(--gold-soft); font-size: 0.86rem; color: var(--text-2);
}
.cred .icon { width: 34px; height: 34px; margin: 0; border-radius: 9px; }
.cred .icon svg { width: 18px; height: 18px; }
.cred b { display: block; color: var(--text); font-size: 0.88rem; }
.cred code { font-family: var(--font-mono); color: var(--gold-hi); font-size: 0.82rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.footer-bottom p { color: var(--muted); margin: 0; font-size: 0.8rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .product, .stack-summary, .partner-hero, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .service { grid-template-columns: 60px 1fr; }
  .service > :last-child { grid-column: 2; }
}
@media (max-width: 680px) {
  .g2, .g3, .g4, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .service { grid-template-columns: 1fr; gap: 12px; }
  .service > :last-child { grid-column: auto; }
  .service-num { font-size: 1.8rem; }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table th, .stack-table td { display: block; width: 100%; }
  .stack-table th { border-bottom: 0; padding-bottom: 8px; }
  .stack-table td { padding-top: 12px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
/* Small phones: tighter padding so long words ("NammaBhoomi", "implementation")
   fit inside cards and banners without breaking mid-word. */
@media (max-width: 480px) {
  h2 { font-size: 1.6rem; }
  .page-hero h1 { font-size: 2rem; }
  .product { padding: 22px; }
  .product h2 { font-size: 1.55rem; }
  .card, .spec { padding: 22px; }
  .cta { padding: 32px 20px; }
  .form, .partner-hero { padding: 22px; }
  .stat { padding: 20px 18px; }
  .stack-tabs { display: flex; }
  .stack-tabs button { flex: 1; padding: 10px 12px; }
  .footer-bottom { flex-direction: column; }
}
