/* =========================================================
   SaaSQube Solutions — main stylesheet
   ========================================================= */

:root {
  --brand: #1a4ff0;
  --brand-dark: #1238c4;
  --brand-soft: #8fb4ff;
  --cyan: #06c3e6;
  --accent: #9b2cf5;
  --accent-dark: #7a1fd0;
  --ink: #0d1029;
  --ink-2: #334155;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f4f7fd;
  --surface: #ffffff;
  --line: #e2e8f0;
  --night: #0d1440;
  --night-2: #070b26;
  --on-night: #e3ecff;
  --on-night-muted: #a6b4d9;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(13, 20, 64, .35);
  --font-display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--brand) 48%, var(--accent) 100%);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

:root { color-scheme: light; }
/* Dark theme: only when the visitor picks it with the header switch (light is the default) */
:root[data-theme="dark"] {
  --brand: #3b74ff;
  --brand-dark: #2a5cf0;
  --brand-soft: #9cc0ff;
  --accent: #b25cff;
  --accent-dark: #c58aff;
  --ink: #eef3ff;
  --ink-2: #cbd5e1;
  --muted: #94a3b8;
  --bg: #070a1c;
  --bg-alt: #0c1129;
  --surface: #121834;
  --line: #232c55;
  --night: #0a1033;
  --night-2: #050820;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .3s, border-color .3s, color .3s !important; }

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--font);
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px var(--brand); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-ghost.light { color: var(--on-night); border-color: rgba(224, 231, 255, .3); }
.btn-ghost.light:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 11px 20px; font-size: .92rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}


/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .4); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-wrap .brand { margin-right: auto; }
.nav-wrap .site-nav { order: 1; }
.nav-wrap .theme-toggle { order: 2; }
.nav-wrap .nav-toggle { order: 3; }
.theme-toggle {
  position: relative; flex: none; width: 68px; height: 36px; padding: 0 9px; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, .08); transition: background-color .3s, border-color .2s;
}
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle svg { position: relative; z-index: 1; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: color .3s, transform .4s; }
.theme-toggle .tt-moon { fill: currentColor; stroke: none; }
.tt-knob {
  position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .25); transition: transform .35s cubic-bezier(.4, 1.4, .5, 1), background-color .3s;
}
.theme-toggle[aria-checked="false"] .tt-sun { color: #f59e0b; transform: rotate(45deg); }
.theme-toggle[aria-checked="true"] { background: linear-gradient(100deg, #0a1033, #1a2266); border-color: #2b3a85; }
.theme-toggle[aria-checked="true"] .tt-knob { transform: translateX(32px); background: #1c2550; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.theme-toggle[aria-checked="true"] .tt-moon { color: #c7b8ff; transform: rotate(-15deg); }
.theme-toggle[aria-checked="true"] .tt-sun { color: #5f6a99; }
@media (max-width: 360px) {
  .nav-wrap { gap: 8px; }
  .theme-toggle { width: 58px; height: 32px; padding: 0 7px; }
  .tt-knob { width: 24px; height: 24px; }
  .theme-toggle[aria-checked="true"] .tt-knob { transform: translateX(26px); }
  .nav-toggle { padding: 8px 4px; }
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.035em; line-height: 1; display: flex; align-items: baseline; flex-wrap: wrap; }
.brand-text strong {
  font-weight: 700; background: linear-gradient(95deg, #0a9bff 0%, var(--brand) 45%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text small { width: 100%; font-family: var(--font); font-size: .58rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
@media (max-width: 480px) {
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text { font-size: 1.3rem; }
  .brand-text small { white-space: nowrap; font-size: .5rem; letter-spacing: .12em; }
}
.brand.light { color: #fff; }
.brand.light .brand-text strong { background-image: linear-gradient(95deg, #3fd0ff 0%, #5b8cff 45%, #c27bff 100%); }
.brand.light .brand-text small { color: var(--on-night-muted); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink-2); font-weight: 500; font-size: .95rem; position: relative; text-decoration: none; }
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav ul a:hover, .site-nav ul a.active { color: var(--ink); }
.site-nav ul a:hover::after, .site-nav ul a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 18px;
    background: var(--bg); padding: 20px 16px 28px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { display: block; padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 100px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(26, 79, 240, .18), transparent 70%),
    radial-gradient(500px 360px at 10% 90%, rgba(6, 195, 230, .16), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .45;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .92rem; font-weight: 600; color: var(--ink); }
.hero-points li::before { content: "✓"; color: #fff; background: #16a34a; border-radius: 50%; width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: .7rem; margin-right: 8px; }

.hero-visual { position: relative; padding: 30px 10px; }
.browser {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
  animation: floaty 7s ease-in-out infinite;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.browser-bar i:nth-child(2) { background: #fbbf24; }
.browser-bar i:nth-child(3) { background: #34d399; }
.browser-bar span { margin-left: 12px; font-size: .75rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 3px 12px; border-radius: 999px; }
.browser-body { padding: 18px; display: grid; gap: 16px; }
.mock-nav { display: flex; align-items: center; gap: 10px; }
.mock-nav b { width: 70px; height: 12px; border-radius: 6px; background: var(--brand); margin-right: auto; }
.mock-nav span { width: 36px; height: 8px; border-radius: 4px; background: var(--line); }
.mock-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center; }
.mock-lines { display: grid; gap: 9px; }
.mock-lines b { height: 16px; width: 92%; border-radius: 6px; background: var(--ink); opacity: .85; }
.mock-lines span { height: 9px; border-radius: 5px; background: var(--line); }
.mock-lines span.short { width: 70%; }
.mock-lines em { margin-top: 6px; width: 90px; height: 26px; border-radius: 999px; background: var(--grad); }
.mock-img { aspect-ratio: 4/3; border-radius: 12px; background: linear-gradient(135deg, var(--cyan) 0%, var(--brand) 50%, var(--accent) 100%); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cards div { height: 60px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--line); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; box-shadow: var(--shadow); font-size: .85rem;
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--ink); font-size: .88rem; line-height: 1.2; }
.float-card small { color: var(--muted); }
.fc-icon { font-size: 1.3rem; }
.fc-1 { top: 0; left: -10px; animation-delay: -1s; }
.fc-2 { bottom: 8px; left: 8%; animation-delay: -3s; }
.fc-3 { top: 42%; right: -14px; animation-delay: -2s; }

@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .fc-3 { right: 0; }
  .fc-1 { left: 0; }
}

/* ---------- Cities marquee ---------- */
.cities { border-block: 1px solid var(--line); padding: 22px 0; background: var(--bg-alt); }
.cities p { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; list-style: none; margin: 0; padding: 0; animation: marquee 40s linear infinite; }
.marquee-track li { font-size: 1.15rem; font-weight: 700; color: var(--ink); opacity: .55; white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); color: var(--on-night-muted); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--cyan); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p:last-child { color: var(--on-night-muted); }

/* ---------- Service cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card p { margin: 0; color: var(--muted); }
.icon-tile {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
}
.icon-tile svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service:nth-child(even) .icon-tile { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent-dark); }

@media (max-width: 960px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards-grid { grid-template-columns: 1fr; } }

/* ---------- Filters (templates gallery) & templates CTA ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  font: 600 .92rem var(--font); padding: 10px 20px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); transition: all .2s;
}
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.work-cta {
  padding: 28px 32px; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--surface); border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line));
}
.work-cta h3 { margin-bottom: 4px; }
.work-cta p { margin: 0; color: var(--muted); }

/* ---------- Template slider ---------- */
.tslider { position: relative; --per: 3; --gap: 24px; }
.ts-track {
  list-style: none; margin: 0; padding: 6px 2px 18px; display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.ts-track::-webkit-scrollbar { display: none; }
.ts-track:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: var(--radius); }
.ts-slide {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.ts-slide:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ts-thumb { display: block; position: relative; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.ts-bar { display: flex; gap: 5px; padding: 8px 10px; background: color-mix(in srgb, var(--tc) 14%, var(--surface)); border-bottom: 1px solid var(--line); }
.ts-bar i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--tc) 55%, var(--line)); }
.ts-frame { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 22%, var(--bg-alt)), var(--bg-alt)); }
.ts-frame iframe { position: absolute; top: 0; left: 0; width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.ts-frame iframe.loaded { opacity: 1; }
.ts-thumb::after { content: "View live demo →"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 14, 46, .55); color: #fff; font-weight: 700; opacity: 0; transition: opacity .25s; }
.ts-thumb:hover::after, .ts-thumb:focus-visible::after { opacity: 1; }
.ts-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ts-body h3 { margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.ts-body h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tc); flex: none; }
.ts-body p { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.ts-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.ts-actions .btn { flex: 1; }
.ts-nav {
  position: absolute; top: calc(50% - 40px); transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font: 400 1.9rem/1 var(--font); padding-bottom: 4px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); transition: opacity .2s, background .2s, color .2s;
  z-index: 2;
}
.ts-nav:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.ts-nav:disabled { opacity: 0; pointer-events: none; }
.ts-prev { left: -22px; }
.ts-next { right: -22px; }
@media (max-width: 1260px) { .ts-prev { left: 6px; } .ts-next { right: 6px; } }
.ts-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.ts-dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; cursor: pointer; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: width .25s, background .25s; }
.ts-dots button[aria-current="true"] { width: 26px; background: var(--grad); }
#templates .work-cta { margin-top: 36px; }
@media (max-width: 960px) { .tslider { --per: 2; } }
@media (max-width: 620px) {
  .tslider { --per: 1.15; --gap: 14px; }
  .ts-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ts-track { scroll-behavior: auto; } }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.why-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.why-copy p { font-size: 1.08rem; margin-bottom: 28px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.why-list li { display: flex; gap: 20px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.why-list h3 { margin-bottom: 4px; }
.why-list p { margin: 0; color: var(--muted); }
.why-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1; min-width: 44px; }

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-copy { position: static; }
}

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.step {
  position: relative; padding: 30px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
}
.step p { margin: 0; }
.step-n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 18px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 0 0 6px rgba(6, 195, 230, .15);
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
}
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .04em;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.price-desc { color: var(--muted); font-size: .94rem; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin-bottom: 22px; }
.price span { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-right: 4px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; }
.price-card li { padding-left: 28px; position: relative; font-size: .96rem; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 14%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a4ff0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat;
}
.pricing-note { text-align: center; margin-top: 40px; color: var(--muted); }

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; gap: 30px; }
  .price-card.featured { transform: none; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-visual {
  aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--brand) 25%, transparent), transparent 60%),
              radial-gradient(circle at 75% 75%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
              var(--surface);
  border: 1px solid var(--line);
}
.cube-stack { width: 62%; }
.cube-stack svg { overflow: visible; filter: drop-shadow(0 30px 40px rgba(26, 79, 240, .3)); }
.cube { transform-origin: 50px 52px; animation: spinY 9s ease-in-out infinite; }
@keyframes spinY { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-4deg); } }
.about-copy p { font-size: 1.05rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.values div { padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.values strong { display: block; color: var(--ink); margin-bottom: 4px; }
.values span { font-size: .88rem; color: var(--muted); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { max-width: 380px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.faq-list details[open] { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; color: var(--ink); position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-alt); color: var(--brand); font-size: 1.2rem; transition: transform .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy p { font-size: 1.06rem; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list li > span:first-child {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255, 255, 255, .08); font-size: 1.1rem;
}
.contact-list a, .contact-list span { color: #fff; font-weight: 600; }

.contact-form {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 32px; display: grid; gap: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--on-night); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 500 1rem var(--font); color: #fff; width: 100%;
  background: rgba(8, 7, 31, .5); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
  padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.contact-form select option { color: #0f172a; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(224, 231, 255, .45); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(6, 195, 230, .2);
}
.contact-form .invalid { border-color: #f87171 !important; }
.contact-form .opt { font-weight: 500; color: var(--on-night-muted); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.form-status.error { color: #fca5a5; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form-status { margin: 0; min-height: 1.4em; font-size: .92rem; color: var(--cyan); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .form-actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night-2); color: var(--on-night-muted); padding: 64px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-grid p { margin-top: 16px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-night-muted); }
.site-footer a:hover { color: #fff; }
.footer-cities { margin-top: 0 !important; line-height: 1.9; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 24px; }
.footer-bottom p { margin: 0; }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Tamil Nadu cities ---------- */
.tn-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tn-city {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tn-city:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); }
.tn-city svg {
  flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-dark);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.tn-city:nth-child(even) svg { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.tn-city strong { display: block; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.tn-city span { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.tn-note { text-align: center; margin: 36px 0 0; color: var(--muted); }
.footer-sub { margin-top: 22px; }

@media (max-width: 960px) { .tn-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .tn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .tn-grid { gap: 10px; }
  .tn-city { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .tn-city svg { width: 34px; height: 34px; padding: 7px; }
  .tn-city strong { font-size: .95rem; overflow-wrap: anywhere; }
}
