/* =========================================================================
   GrowthKraft — Global Stylesheet
   Automation & Software Services studio site
   ========================================================================= */

/* ---------- 1. Custom Properties ---------- */
:root {
  --bg: #0b0f19;
  --bg-alt: #0e1424;
  --surface: #121a2c;
  --surface-2: #182238;
  --surface-3: #1e2a45;
  --border: #232c44;
  --border-light: #2e3a58;
  --text: #f3f5f9;
  --text-dim: #a6afc7;
  --text-faint: #6c7690;
  --primary: #7c5cfc;
  --primary-dim: #6647e0;
  --primary-light: #9b82ff;
  --accent: #2fe6a8;
  --accent-dim: #22c08a;
  --gold: #ffc857;
  --danger: #ff7a7a;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(124, 92, 252, 0.25), 0 16px 40px -12px rgba(124, 92, 252, 0.35);

  --container-w: 1200px;
  --container-w-narrow: 820px;

  --ff-heading: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --transition: 0.25s ease;
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100vh;
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
  padding: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

::selection {
  background: var(--primary);
  color: #fff;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-w-narrow);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-tight {
  padding-block: clamp(40px, 6vw, 72px);
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 230, 168, 0.18);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: 1.3rem;
}

.section-head p,
.lede {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-top: 14px;
}

.grid {
  display: grid;
  gap: var(--gap, 1.5rem);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 4. Buttons & Badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  border: 1px solid transparent;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #9b6bfc 100%);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 252, 0.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(124, 92, 252, 0.75);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #7cf3c9 100%);
  color: #06281d;
  box-shadow: 0 8px 24px -8px rgba(47, 230, 168, 0.55);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(47, 230, 168, 0.7);
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border-light);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-dim);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  color: var(--text-dim);
}

.badge svg {
  width: 14px;
  height: 14px;
}

.badge-accent {
  background: rgba(47, 230, 168, 0.12);
  border-color: rgba(47, 230, 168, 0.35);
  color: var(--accent);
}

.badge-primary {
  background: rgba(124, 92, 252, 0.14);
  border-color: rgba(124, 92, 252, 0.4);
  color: var(--primary-light);
}

.badge-gold {
  background: rgba(255, 200, 87, 0.12);
  border-color: rgba(255, 200, 87, 0.35);
  color: var(--gold);
}

.badge-soon {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-light);
  color: var(--text-faint);
}

/* ---------- 5. Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

/* The frosted background lives on a pseudo-element on purpose: a backdrop-filter
   on the header itself would become the containing block for the fixed mobile
   menu, making it behave like an absolute box that widens the whole page. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 15, 25, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo-accent {
  color: var(--accent);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-block;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-link.active {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-light);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.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);
}

.main-nav .mobile-cta {
  display: none;
}

@media (max-width: 860px) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--bg);
    transform: translateX(100%);
    visibility: hidden; /* off-screen links must not be reachable with Tab */
    transition: transform var(--transition-slow), visibility 0s linear 0.5s;
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }

  .main-nav.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--transition-slow), visibility 0s;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 20px;
  }

  .nav-link {
    padding: 16px 18px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
  }

  .main-nav .mobile-cta {
    display: flex; /* keeps the label centred; width:auto so the side margins fit */
    width: auto;
    margin: 10px 18px 24px;
  }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(72px, 12vw, 140px) clamp(60px, 8vw, 100px);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

.hero::before {
  width: 480px;
  height: 480px;
  background: var(--primary);
  top: -180px;
  right: -120px;
}

.hero::after {
  width: 420px;
  height: 420px;
  background: var(--accent);
  bottom: -200px;
  left: -140px;
  opacity: 0.22;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 22px;
}

.hero h1 .grad {
  background: linear-gradient(100deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.page-hero {
  padding-block: clamp(56px, 9vw, 88px) clamp(40px, 6vw, 60px);
}

.page-hero .eyebrow {
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 680px;
  margin-top: 16px;
}

/* ---------- 7. Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(124, 92, 252, 0.14);
  color: var(--primary-light);
  margin-bottom: 20px;
}

.card-icon.accent {
  background: rgba(47, 230, 168, 0.14);
  color: var(--accent);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-dim);
  font-size: 0.98rem;
}

.card ul.check-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.check-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  color: var(--text-faint);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-light);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.card:hover .service-card-link svg {
  transform: translateX(3px);
}

/* ---------- 8. Process steps ---------- */
.process-list {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .process-list {
    grid-template-columns: 1fr;
  }
}

.process-step {
  position: relative;
  padding-top: 8px;
}

.process-step .num {
  counter-increment: step;
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg);
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.process-step .num::before {
  content: counter(step, decimal-leading-zero);
}

.process-step h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.process-step p {
  color: var(--text-dim);
  font-size: 0.94rem;
}

/* ---------- 9. Product spotlight ---------- */
.product-spotlight {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 52px);
  position: relative;
  overflow: hidden;
}

.product-spotlight::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: var(--primary);
  filter: blur(120px);
  opacity: 0.25;
  top: -100px;
  right: -60px;
  z-index: 0;
}

.product-visual,
.product-copy {
  position: relative;
  z-index: 1;
}

.app-mock {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.app-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.app-mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
}

.app-mock-bar span:nth-child(1) {
  background: #ff6b6b;
}

.app-mock-bar span:nth-child(2) {
  background: #ffc857;
}

.app-mock-bar span:nth-child(3) {
  background: #2fe6a8;
}

.app-mock-search {
  margin: 14px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-mock-search svg {
  width: 15px;
  height: 15px;
  color: var(--text-faint);
}

.app-mock-rows {
  padding: 0 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.app-mock-row .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.app-mock-row.selected {
  border-color: rgba(124, 92, 252, 0.5);
  background: rgba(124, 92, 252, 0.08);
  color: var(--text);
}

.app-mock-row .fav {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

.app-mock-row .bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border-light);
  flex: 1;
}

.product-copy h2 {
  margin-bottom: 6px;
}

.product-copy .tagline {
  color: var(--text-dim);
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.rating-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rating-row .stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
}

.rating-row .stars svg {
  width: 16px;
  height: 16px;
}

.rating-row span.rv {
  font-size: 0.85rem;
  color: var(--text-faint);
}

@media (max-width: 900px) {
  .product-spotlight {
    grid-template-columns: 1fr;
  }
}

/* ---------- 10. Feature grid (products page) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.feature-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.feature-item .icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(47, 230, 168, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item .icon svg {
  width: 22px;
  height: 22px;
}

.feature-item h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.92rem;
  color: var(--text-dim);
}

.kbd-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.kbd-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-dim);
}

.kbd-table tr:last-child td {
  border-bottom: none;
}

.kbd-table td:last-child {
  text-align: right;
}

kbd {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-bottom-width: 2px;
  font-family: var(--ff-heading);
  font-size: 0.8rem;
  color: var(--text);
}

/* ---------- 11. Roadmap ---------- */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.roadmap-card {
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg-alt);
}

.roadmap-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.roadmap-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- 12. Values / About ---------- */
.value-card {
  display: flex;
  gap: 18px;
}

.value-card .num {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--border-light);
  flex-shrink: 0;
  width: 44px;
}

.value-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.value-card p {
  color: var(--text-dim);
  font-size: 0.94rem;
}

.founder-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 42px);
}

@media (max-width: 640px) {
  .founder-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .founder-card .avatar {
    margin-inline: auto;
  }
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 2rem;
  color: #0b0f19;
  flex-shrink: 0;
}

.founder-card h3 {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.founder-role {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.founder-card p {
  color: var(--text-dim);
  margin-bottom: 10px;
}

.founder-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color var(--transition), border-color var(--transition);
}

.icon-link svg {
  width: 15px;
  height: 15px;
}

.icon-link:hover {
  color: var(--text);
  border-color: var(--primary-light);
}

/* ---------- 13. CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 68px);
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.16), rgba(47, 230, 168, 0.12));
  border: 1px solid var(--border-light);
  text-align: center;
  overflow: hidden;
}

.cta-band h2 {
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--text-dim);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 30px;
}

.cta-band .btn-group {
  justify-content: center;
}

/* ---------- 14. Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
}

.field .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text);
  font-size: 0.96rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field select {
  cursor: pointer;
}

.field input,
.field select {
  height: 52px;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--ff-body);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.22);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.field-error {
  font-size: 0.8rem;
  color: var(--danger);
  display: none;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--danger);
}

.field.invalid .field-error {
  display: block;
}

.form-note {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-dim);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 10px;
}

.form-note svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: 10px;
}

.form-status.show {
  display: flex;
}

.form-status.success {
  background: rgba(47, 230, 168, 0.12);
  border: 1px solid rgba(47, 230, 168, 0.35);
  color: var(--accent);
}

.form-status.error {
  background: rgba(255, 122, 122, 0.12);
  border: 1px solid rgba(255, 122, 122, 0.35);
  color: var(--danger);
}

.form-status svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-status a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 15. Contact info blocks ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.contact-info-card h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 12px;
  border-top: 1px solid var(--border);
}

.contact-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.contact-row .icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(124, 92, 252, 0.14);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row .icon svg {
  width: 19px;
  height: 19px;
}

.contact-row .label {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.contact-row .value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

.contact-row a.value:hover {
  color: var(--accent);
}

/* ---------- 16. FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: 22px;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  text-align: left;
  font-family: var(--ff-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

.faq-q svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-faint);
  transition: transform var(--transition);
}

.faq-item[data-open="true"] .faq-q svg {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--transition-slow), visibility 0s linear 0.5s;
}

.faq-item[data-open="true"] .faq-a {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows var(--transition-slow), visibility 0s;
}

.faq-a-inner {
  overflow: hidden;
}

.faq-a p {
  color: var(--text-dim);
  padding-top: 14px;
  font-size: 0.95rem;
  max-width: 680px;
}

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  gap: 32px;
  padding-bottom: 48px;
}

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

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

.footer-brand p {
  color: var(--text-faint);
  font-size: 0.92rem;
  margin-block: 16px 20px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.footer-social a svg {
  width: 17px;
  height: 17px;
}

.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 22px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-bottom-links a:hover {
  color: var(--text-dim);
}

/* ---------- 18. Reveal animation ---------- */
/* Content is only hidden when scripting is available to reveal it again, so
   nothing is ever stranded invisible for visitors (or crawlers) without JS. */
@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 19. Misc pages (Legal / 404) ---------- */
.legal-content {
  max-width: 780px;
}

.legal-content h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-dim);
  margin-bottom: 14px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 18px;
}

.legal-content ul li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  color: var(--text-faint);
  font-size: 0.88rem;
  margin-bottom: 40px;
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 80px;
}

.error-code {
  font-family: var(--ff-heading);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: 30px;
}

/* ---------- 20. Utility ---------- */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.divider {
  height: 1px;
  background: var(--border);
  margin-block: 48px;
  border: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #06281d;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px 32px;
  margin-top: 36px;
}

.stat {
  min-width: 0;
}

.stat .num {
  font-family: var(--ff-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
}

.stat .num .accent {
  color: var(--accent);
}

.stat .label {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ---------- 21. Service detail rows (services page) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding-block: 48px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 100px;
}

.service-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-detail:first-child {
  padding-top: 0;
}

.service-detail-head .idx {
  font-family: var(--ff-heading);
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.service-detail-head h3 {
  margin: 16px 0 8px;
  font-size: 1.45rem;
}

.service-detail-body p.lede-sm {
  color: var(--text-dim);
  font-size: 1.02rem;
  margin-bottom: 20px;
  max-width: 640px;
}

.service-detail-body .check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px 28px;
  margin-bottom: 10px;
}

@media (max-width: 860px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 36px;
  }
  .service-detail-body .check-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- 22. Engagement models ---------- */
.engagement-card {
  text-align: center;
}

.engagement-card .price {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin: 6px 0 14px;
}

/* ---------- 23. Timeline (about page) ---------- */
.beliefs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.belief-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding-block: 26px;
  border-bottom: 1px solid var(--border);
}

.belief-row:first-child {
  padding-top: 0;
}

.belief-row:last-child {
  border-bottom: none;
}

.belief-row .num {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--border-light);
}

.belief-row h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.belief-row p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- 24. 404 page layout ---------- */
body.is-404 {
  display: flex;
  flex-direction: column;
}

body.is-404 main {
  flex: 1;
  display: flex;
  align-items: center;
}

body.is-404 main .container {
  width: 100%;
}

body.is-404 .error-page {
  min-height: 0;
}

.site-footer.footer-slim {
  padding-top: 0;
}
