@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* =========================
     Design System Tokens
     ========================= */
  /* Colors */
  /* Stripe-like palette */
  --primary: #2b6ef6;
  --secondary: #06d6a0;
  --background: #071024;
  --text: #eff3fb;
  --text-strong: #ffffff;
  --text-muted: rgba(231, 236, 245, 0.75);
  --border-radius: 12px;

  /* Spacing scale (mobile-first) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;
  --space-9: 72px;

  /* Legacy / existing tokens (kept for compatibility) */
  --bg-1: #0b1220;
  --bg-2: #111827;
  --card: #000000;
  --accent: var(--primary);
  --accent-2: var(--secondary);
  --muted: var(--text-muted);
  --border: rgba(148, 163, 184, 0.18);
  /* More subtle “Stripe” feel: borders + light shadows, less glow */
  --glass: rgba(255, 255, 255, 0.035);
  --glass-soft: rgba(255, 255, 255, 0.06);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
  --success: #4adea7;
  --error: #fb7185;
  --max: 1160px;
  --radius: var(--border-radius);
  --transition-fast: 180ms ease;
  --transition-medium: 320ms ease;
}

:root[data-theme='light'] {
  /* Primary design system tokens */
  --primary: #2b6ef6;
  --secondary: #06d6a0;
  --background: #f8fafc;
  --text: #0f172a;
  --text-strong: #020617;
  --text-muted: #475569;

  /* Legacy/compatibility tokens */
  --bg-1: #f8fafc;
  --bg-2: #eef2ff;
  --card: #ffffff;

  --accent: var(--primary);
  --accent-2: var(--secondary);
  --muted: var(--text-muted);

  --border: rgba(15, 23, 42, 0.08);
  --glass: rgba(255, 255, 255, 0.92);
  --glass-soft: rgba(255, 255, 255, 0.98);
  --shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
  --success: #059669;
  --error: #e11d48;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(43, 110, 246, 0.16) 0%, transparent 38%),
    linear-gradient(225deg, rgba(6, 214, 160, 0.1) 0%, transparent 34%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  transition: background var(--transition-medium), color var(--transition-fast);
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    linear-gradient(115deg, transparent 0 18%, rgba(43, 110, 246, 0.08) 18% 18.25%, transparent 18.25% 56%, rgba(6, 214, 160, 0.06) 56% 56.2%, transparent 56.2%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%);
  opacity: 0.75;
}

body::after {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.16;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 46%, transparent 100%);
}

@keyframes ambient-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-2.5%, 2.5%, 0);
  }
}

:root[data-theme='light'] body::before {
  opacity: 0.5;
}

:root[data-theme='light'] body::after {
  opacity: 0.18;
}


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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  grid-row: 2;
  min-height: 0;
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4 {
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
}

.site-header {
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 10px 34px rgba(2, 6, 23, 0.12);
  transition: background var(--transition-medium), border-color var(--transition-fast);
}

:root[data-theme='light'] .site-header {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-strong);
}

.logo-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
}

.logo img,
.site-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 500;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text-strong);
  background: var(--glass);
}

.nav .cta {
  margin-left: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.nav .cta:hover,
.nav .cta.is-active {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.28);
}

.theme-toggle,
.nav-toggle {
  border: 1px solid var(--border);
  background: var(--glass-soft);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-toggle:hover,
.nav-toggle:hover {
  transform: translateY(-1px);
  background: var(--glass);
}

.nav-toggle {
  display: none;
  padding: 8px 12px;
  font-size: 1.25rem;
  line-height: 1;
}

.hero {
  padding: 72px 0 32px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(129, 140, 248, 0.2), transparent 30%),
    radial-gradient(circle at 12% 18%, rgba(249, 168, 212, 0.16), transparent 24%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr minmax(260px, 380px);
  gap: 36px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 12ch;
}

.lead {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 1.08rem;
  max-width: 52ch;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 80%, black));
  color: #fff;
  box-shadow: 0 10px 30px rgba(99, 91, 255, 0.18);
  border-color: color-mix(in srgb, var(--primary) 30%, black);
}

.btn.primary.gmail {
  background: linear-gradient(90deg, #4285f4, #34a853 60%);
  border-color: rgba(52, 168, 83, 0.18);
  box-shadow: 0 12px 30px rgba(66, 133, 244, 0.18);
}

.btn.outline {
  background: transparent;
  color: var(--text-strong);
  border-color: rgba(129, 140, 248, 0.18);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats li {
  background: var(--glass);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}

.stats strong {
  display: block;
  color: var(--text-strong);
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.hero-art .card {
  background: linear-gradient(160deg, var(--glass-soft), transparent);
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-art .card h3 {
  margin-top: 0;
}

.hero-art .card p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.7;
}

.page-hero {
  padding-top: 56px;
  padding-bottom: 12px;
}

.page-hero .section-lead {
  margin-bottom: 0;
}

.services,
.portfolio,
.about,
.contact {
  padding: 48px 0;
}

/* Modern landing conversion components */

.features,
.how-it-works,
.social-proof,
.final-cta {
  padding: 56px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.22), rgba(249, 168, 212, 0.14));
  border: 1px solid var(--border);
  color: var(--text-strong);
}

.how-it-works .section-lead {
  margin-bottom: 26px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

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

.step-number {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 18px 50px rgba(99, 102, 241, 0.25);
}

.social-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: start;
}

.social-stats {
  display: grid;
  gap: 12px;
}

.social-stat {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 22px;
}

.social-stat-value {
  font-size: 2rem;
  line-height: 1;
}

.social-stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.social-testimonials {
  display: grid;
  gap: 12px;
}

.social-testimonials blockquote {
  margin: 0;
}

.final-cta {
  padding-bottom: 72px;
}

.cta-panel {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: '';
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(circle at 18% 10%, rgba(129, 140, 248, 0.28), transparent 32%),
    radial-gradient(circle at 85% 0%, rgba(249, 168, 212, 0.22), transparent 25%);
  pointer-events: none;
  opacity: 0.9;
}

.cta-copy,
.cta-actions,
.cta-footnote {
  position: relative;
}

.cta-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-lg {
  padding: 14px 22px;
}

.cta-footnote {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.check {
  color: var(--success);
  margin-right: 8px;
  font-weight: 900;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-soft);
  color: var(--muted);
  font-weight: 600;
}

.trust-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.trust-dot--success {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(74, 222, 167, 0.12);
}

.trust-dot--accent {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.12);
}

.hero-illustration {
  padding: 26px;
  border-radius: 24px;
}

.illu-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.18), rgba(249, 168, 212, 0.12));
  color: var(--text-strong);
  font-weight: 700;
  font-size: 0.92rem;
}

.illu-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  align-items: center;
}

.illu-avatar {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.35), rgba(249, 168, 212, 0.25));
  border: 1px solid var(--border);
}

.illu-avatar--2 {
  background: linear-gradient(135deg, rgba(74, 222, 167, 0.35), rgba(56, 189, 248, 0.22));
}

.illu-avatar--3 {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(244, 114, 182, 0.22));
}

.illu-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.35), rgba(249, 168, 212, 0.25));
  width: 48px;
}

.illu-line--2 {
  background: linear-gradient(90deg, rgba(74, 222, 167, 0.35), rgba(56, 189, 248, 0.25));
}

.illu-caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.trust-row {
  margin-bottom: 8px;
}

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

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}


.section-lead {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 62ch;
  line-height: 1.75;
  font-size: 1.02rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--glass);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(10px);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.card h3 {
  margin-top: 0;
  font-size: 1.12rem;
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  border-color: rgba(99, 91, 255, 0.42);
}

.youtube-services {
  margin-top: 36px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--glass);
}

.youtube-services h3 {
  margin-top: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass-soft);
  color: var(--muted);
  line-height: 1.65;
}

.feature-list li strong {
  color: var(--text-strong);
}

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

.case {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.case:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.case-visual {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.45), rgba(249, 168, 212, 0.35));
}

.case:nth-child(2) .case-visual {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.42), rgba(56, 189, 248, 0.35));
}

.case:nth-child(3) .case-visual {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.42), rgba(244, 114, 182, 0.35));
}

.case h4 {
  margin: 18px 18px 8px;
}

.case p {
  margin: 0 18px 20px;
  color: var(--muted);
  line-height: 1.7;
}

.testimonials blockquote {
  position: relative;
  margin: 32px 0 0;
  padding: 28px 28px 28px 56px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--glass);
  font-size: 1.05rem;
  line-height: 1.8;
}

.testimonials blockquote::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 18px;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
}

.testimonials cite {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-style: normal;
}

.about p {
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.8;
  margin: 0 0 16px;
}

.contact-form {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.32);
}

.contact-form label {
  color: var(--text-strong);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
}

.form-actions {
  justify-content: space-between;
  align-items: center;
}

/* Contact page — centered in viewport */
.page-contact .contact-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 48px;
}

.page-contact .contact--centered {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.page-contact .contact--centered h1 {
  margin-bottom: 12px;
}

.page-contact .contact--centered .section-lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.page-contact .contact-form {
  text-align: left;
}

.page-contact .form-actions {
  justify-content: center;
}

.page-contact .form-status {
  text-align: center;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

label {
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 8px;
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
  background: var(--glass-soft);
  border: 1px solid var(--border);
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--text);
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.field-note {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.phone-fields {
  display: grid;
  grid-template-columns: 0.95fr 1.45fr;
  gap: 12px;
}

.phone-fields select,
.phone-fields input {
  margin: 0;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

/* =========================
   Accessible focus states
   (WCAG-friendly using :focus-visible)
   ========================= */
:focus-visible {
  outline: 3px solid rgba(129, 140, 248, 0.45);
  outline-offset: 2px;
}

.btn:focus-visible,
.nav a:focus-visible,
.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.16);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.16);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.form-status {
  margin-top: 12px;
  font-weight: 600;
  color: var(--success);
}

.form-status.is-error {
  color: var(--error);
}

.site-footer {
  grid-row: 3;
  position: relative;
  z-index: 1;
  margin-top: 0;
  border-top: 1px solid var(--border);
  background: var(--glass-soft);
  padding: 28px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-copy {
  margin: 0;
  justify-self: start;
  line-height: 1.5;
}

.footer-copy strong {
  color: var(--text-strong);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-nav--main {
  justify-self: center;
  justify-content: center;
}

.footer-nav--legal {
  justify-self: end;
  justify-content: flex-end;
}

.footer-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--text-strong);
  background: var(--glass);
}

.footer-nav .footer-contact {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
}

.footer-nav .footer-contact:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.28);
}

/* =========================
   Subtle fade-in on load + scroll reveal
   ========================= */
main > section {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms cubic-bezier(0.22, 0.9, 0.34, 1),
    transform 560ms cubic-bezier(0.22, 0.9, 0.34, 1);
}

main > section.hero,
main > section#features,
main > section#how-it-works,
main > section#social-proof {
  /* First viewport gets a gentle initial reveal */
  animation: fade-up 700ms cubic-bezier(0.22, 0.9, 0.34, 1) both;
  animation-delay: 80ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main > section.in-view,
main > section.hero {
  opacity: 1;
  transform: none;
}

.cards .card,
.case-grid .case {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.cards .card.in-view,
.case-grid .case.in-view {
  opacity: 1;
  transform: none;
}

.cards .card:nth-child(1) { transition-delay: 0.05s; }
.cards .card:nth-child(2) { transition-delay: 0.12s; }
.cards .card:nth-child(3) { transition-delay: 0.19s; }

.case-grid .case:nth-child(1) { transition-delay: 0.06s; }
.case-grid .case:nth-child(2) { transition-delay: 0.13s; }
.case-grid .case:nth-child(3) { transition-delay: 0.2s; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: -24px;
    right: -24px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 20px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 10px;
  }

  .nav .cta {
    margin: 8px 0 0;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .footer-copy,
  .footer-nav--main,
  .footer-nav--legal {
    justify-self: center;
    justify-content: center;
  }

  .footer-nav--legal {
    order: 3;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 48px;
  }

  .stats {
    flex-direction: column;
  }

  .contact-form {
    padding: 22px;
  }

  .page-contact .contact-main {
    padding: 24px 0 32px;
  }

  .theme-toggle {
    font-size: 0.85rem;
    padding-inline: 10px;
  }
}

@media (max-width: 520px) {
  .container {
    padding-inline: 16px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .form-actions .btn {
    flex: 1 1 100%;
  }
}

/* Chatbot assistant */
.chatbot-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  font-size: 0.95rem;
}

.chatbot-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.35);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.chatbot-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(99, 102, 241, 0.42);
}

.chatbot-root.is-open .chatbot-launcher {
  display: none;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(380px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 100px));
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 280ms ease,
    transform 280ms ease,
    visibility 280ms ease;
}

.chatbot-root.is-open .chatbot-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.2), rgba(249, 168, 212, 0.15));
  border-bottom: 1px solid var(--border);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chatbot-header-info strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-strong);
}

.chatbot-status {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.chatbot-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  overflow: hidden;
}

.chatbot-avatar img,
.chatbot-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.chatbot-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--glass-soft);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.chatbot-close:hover {
  background: var(--glass);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chatbot-msg {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.chatbot-msg--bot {
  align-self: flex-start;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chatbot-msg--bot a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chatbot-msg--bot a:hover {
  color: var(--accent-2);
}

.chatbot-msg--user {
  align-self: flex-end;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chatbot-msg--typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
}

.chatbot-msg--typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: chatbot-bounce 1s ease infinite;
}

.chatbot-msg--typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chatbot-msg--typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chatbot-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.chatbot-chip {
  border: 1px solid var(--border);
  background: var(--glass-soft);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.chatbot-chip:hover {
  background: var(--glass);
  border-color: rgba(129, 140, 248, 0.4);
}

.chatbot-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--glass-soft);
}

.chatbot-input input {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.chatbot-send {
  flex-shrink: 0;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.chatbot-send:hover {
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .chatbot-root {
    right: 12px;
    bottom: 12px;
  }

  .chatbot-launcher-text {
    display: none;
  }

  .chatbot-launcher {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .chatbot-panel {
    width: calc(100vw - 24px);
    height: min(70vh, 480px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before {
    animation: none;
  }


  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  main > section,
  .cards .card,
  .case-grid .case {
    opacity: 1;
    transform: none;
  }

  .chatbot-panel,
  .chatbot-launcher {
    transition: none;
  }

  .chatbot-msg--typing span {
    animation: none;
  }
}
