/* =============================================
   TALHA DESIGNZ — DESIGN SYSTEM
   Recreated from talhadesignz.framer.ai
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400;1,14..32,700&family=Inter+Display:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,700;1,14..32,400;1,14..32,700&family=Source+Serif+4:ital,wght@1,400;1,700&display=swap');

/* =============================================
   CSS TOKENS / VARIABLES
   ============================================= */
:root {
  /* Core colors */
  --bg:           #f7f7f7;
  --surface:      #ffffff;
  --dark:         #1a1a1a;
  --dark-80:      rgba(26,26,26,0.8);
  --dark-40:      rgba(26,26,26,0.4);
  --dark-10:      rgba(26,26,26,0.1);
  --mid-gray:     #303030;
  --light-gray:   #f1f1f1;
  --text:         #1a1a1a;
  --text-muted:   #888888;
  --text-soft:    #636363;
  --border:       rgba(26,26,26,0.1);
  --border-solid: #e5e5e5;

  /* Accent palette */
  --blue:         #47aafd;
  --orange:       #ff6838;
  --green:        #bbd927;
  --teal:         #73ffea;
  --yellow:       #e8ff73;
  --teal-mid:     #4cd0bd;
  --blue-deep:    #2060df;

  /* White scales */
  --white:        #ffffff;
  --white-80:     rgba(255,255,255,0.8);
  --white-60:     rgba(255,255,255,0.6);
  --white-20:     rgba(255,255,255,0.2);
  --white-10:     rgba(255,255,255,0.1);

  /* Typography */
  --font-display: 'Inter Display', 'Inter', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-serif:   'Source Serif 4', Georgia, serif;

  /* Layout */
  --container:    1200px;
  --gutter:       40px;
  --section-gap:  120px;

  /* Radius */
  --r-pill:       100px;
  --r-card:       20px;
  --r-btn:        12px;
  --r-sm:         8px;

  /* Shadows */
  --shadow-xs:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.14);
  --shadow-xl:  0 40px 80px rgba(0,0,0,0.18);

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --t-fast:     0.15s var(--ease);
  --t-mid:      0.3s  var(--ease);
  --t-slow:     0.6s  var(--ease);
}

/* Dark mode */
[data-theme="dark"] {
  --bg:           #1a1a1a;
  --surface:      #242424;
  --mid-gray:     #2e2e2e;
  --light-gray:   #2a2a2a;
  --text:         #f7f7f7;
  --text-muted:   rgba(247,247,247,0.6);
  --text-soft:    rgba(247,247,247,0.7);
  --border:       rgba(255,255,255,0.1);
  --border-solid: rgba(255,255,255,0.1);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--t-mid), color var(--t-mid);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* =============================================
   UTILITIES
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--t-mid);
}

.nav.scrolled {
  background: rgba(247,247,247,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

[data-theme="dark"] .nav.scrolled {
  background: rgba(26,26,26,0.85);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  transition: opacity var(--t-fast);
}
.nav__logo:hover { opacity: 0.75; }
.nav__logo img {
  width: auto;
  height: 36px;
  object-fit: contain;
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: var(--t-fast);
}
.nav__link:hover,
.nav__link.active {
  color: var(--text);
  background: var(--dark-10);
}

/* Actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme toggle */
.theme-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  transition: var(--t-fast);
}
.theme-btn:hover { background: var(--dark-10); transform: scale(1.05); }

/* Mobile nav toggle */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.nav__burger span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t-mid);
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 280px; height: 100dvh;
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  flex-direction: column;
  gap: 0;
  padding: 80px 24px 40px;
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--t-mid);
}
.nav__mobile.open { transform: translateX(0); }
.nav__mobile .nav__link {
  display: block;
  font-size: 1.1rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--t-mid);
}
.nav__overlay.open { opacity: 1; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: var(--t-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--dark);
  color: var(--white);
  border: 1.5px solid transparent;
}
.btn-primary:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-solid);
}
.btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.btn-cta {
  background: var(--dark);
  color: var(--white);
  border: 1.5px solid transparent;
  font-size: 1rem;
  padding: 14px 28px;
}
.btn-cta:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-cta {
  background: var(--white);
  color: var(--dark);
}
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-cta:hover {
  background: #e0e0e0;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

/* Subtle grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
  pointer-events: none;
}

/* Radial gradient overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, transparent 40%, var(--bg) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--surface);
  border: 1px solid var(--border-solid);
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 32px;
  box-shadow: var(--shadow-xs);
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0.08); }
}

/* Headline */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero__title em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--text-muted);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Floating design elements */
.hero__geo {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.hero__geo--tl {
  top: 20%; left: 5%;
  width: 120px;
}
.hero__geo--tr {
  top: 25%; right: 5%;
  width: 100px;
}

/* =============================================
   TRUSTED MARQUEE STRIP
   ============================================= */
.trusted {
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trusted__label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.marquee-track {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track__inner {
  display: flex;
  gap: 0;
  animation: marquee-scroll 35s linear infinite;
  flex-shrink: 0;
}

.marquee-track__inner img {
  height: 54px;
  width: auto;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   STATS SECTION
   ============================================= */
.stats {
  background: var(--dark);
  padding: var(--section-gap) 0;
}

[data-theme="dark"] .stats {
  background: #0d0d0d;
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.stat-card {
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}
.stat-card:last-child::after { display: none; }

.stat-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto 24px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.stat-card__icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.stat-card__label {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  letter-spacing: 0;
}

/* =============================================
   FEATURES SECTION (Work Smarter, Not Harder)
   ============================================= */
.features {
  padding: var(--section-gap) 0;
  overflow: hidden;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-title em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--text-muted);
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

.features__header {
  text-align: center;
  margin-bottom: 60px;
}
.features__header .section-sub { margin: 0 auto; }

/* Feature marquee with cards */
.feature-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.feature-marquee__track {
  display: flex;
  gap: 16px;
  animation: feature-scroll 30s linear infinite;
  width: max-content;
}

.feature-marquee__track:hover { animation-play-state: paused; }

@keyframes feature-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 8px)); }
}

/* Feature card */
.feature-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-solid);
  border-radius: var(--r-card);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 180px;
  box-shadow: var(--shadow-xs);
  transition: var(--t-fast);
}

.feature-chip:hover {
  box-shadow: var(--shadow-sm);
  border-color: #d0d0d0;
}

[data-theme="dark"] .feature-chip {
  border-color: rgba(255,255,255,0.08);
}

.feature-chip__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 6px;
}

[data-theme="dark"] .feature-chip__icon {
  background: rgba(255,255,255,0.06);
}

.feature-chip__icon img {
  width: 100%; height: 100%; object-fit: contain;
}

.feature-chip__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* =============================================
   INTEGRATIONS SECTION (Favorite Tools)
   ============================================= */
.integrations {
  padding: var(--section-gap) 0;
  position: relative;
  overflow: hidden;
}

.integrations__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.integrations__text { }

.integrations__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tool-card {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border-solid);
  border-radius: var(--r-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: var(--t-mid);
  cursor: pointer;
}

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

.tool-card img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.socials__grid .tool-card svg {
  width: 40px !important;
  height: 40px !important;
  flex-shrink: 0;
}

[data-theme="dark"] .tool-card {
  border-color: rgba(255,255,255,0.08);
}

/* Light glow behind integrations */
.integrations__glow {
  position: absolute;
  right: -200px; top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(71,170,253,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* =============================================
   PROCESS SECTION (Thumbnail Magic)
   ============================================= */
.process {
  padding: var(--section-gap) 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .process {
  background: #0d0d0d;
}

.process__header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.process__header .section-tag { color: rgba(255,255,255,0.5); }
.process__header .section-title { color: var(--white); }
.process__header .section-title em { color: rgba(255,255,255,0.45); }
.process__header .section-sub { color: rgba(255,255,255,0.6); margin: 0 auto; }

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Connector line */
.process__steps::before {
  content: '';
  position: absolute;
  top: 56px; left: calc(33.333% / 2);
  right: calc(33.333% / 2);
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.2),
    rgba(255,255,255,0.2),
    transparent
  );
}

.process-step {
  padding: 40px 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-card);
  text-align: left;
  position: relative;
  transition: var(--t-mid);
  backdrop-filter: blur(12px);
}

.process-step:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.process-step__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  font-family: var(--font-display);
}

.process-step__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.process-step__text {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* Process mockup image */
.process__mockup {
  margin-top: 80px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
  max-height: 500px;
}

.process__mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* =============================================
   FAQ SECTION
   ============================================= */
.faq {
  padding: var(--section-gap) 0;
}

.faq__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.faq__header { position: sticky; top: 100px; }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-solid);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: var(--t-mid);
}

[data-theme="dark"] .faq-item {
  border-color: rgba(255,255,255,0.08);
}

.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  user-select: none;
}

.faq-item__question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.faq-item__toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--t-mid);
  position: relative;
}

[data-theme="dark"] .faq-item__toggle {
  background: var(--white);
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  content: '';
  position: absolute;
  background: var(--white);
  border-radius: 2px;
  transition: var(--t-mid);
}

[data-theme="dark"] .faq-item__toggle::before,
[data-theme="dark"] .faq-item__toggle::after {
  background: var(--dark);
}

.faq-item__toggle::before { width: 12px; height: 2px; }
.faq-item__toggle::after  { width: 2px; height: 12px; }

.faq-item.open .faq-item__toggle { background: var(--text-muted); }
.faq-item.open .faq-item__toggle::after { transform: rotate(90deg); opacity: 0; }

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-item.open .faq-item__body { max-height: 300px; }

.faq-item__answer {
  padding: 0 24px 24px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  padding: var(--section-gap) 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}

[data-theme="dark"] .cta-section {
  background: #0d0d0d;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section__title em {
  font-style: italic;
  font-family: var(--font-serif);
  color: rgba(255,255,255,0.5);
}

.cta-section__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--white);
  color: var(--dark);
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: var(--t-fast);
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,255,255,0.2);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
}

[data-theme="dark"] .footer {
  background: #0a0a0a;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

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

.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--t-fast);
}

.social-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  transform: translateY(-2px);
}

/* Social icons SVG inline */
.social-icon { width: 16px; height: 16px; fill: currentColor; }


/* =============================================
   PAGE HERO (Subpages)
   ============================================= */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.page-hero__inner { position: relative; z-index: 2; }

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.page-hero__sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section {
  padding: 80px 0 var(--section-gap);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact__info h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.contact__info-tag {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 500;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.contact__detail-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .contact__detail-icon {
  background: rgba(255,255,255,0.06);
}

.contact__detail-icon svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Contact form */
.contact__form {
  background: var(--surface);
  border: 1px solid var(--border-solid);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .contact__form {
  border-color: rgba(255,255,255,0.08);
}

.contact__form h5 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border-solid);
  border-radius: 14px;
  font-size: 0.9375rem;
  color: var(--text);
  transition: var(--t-fast);
  outline: none;
  -webkit-appearance: none;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--dark);
  background: var(--surface);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  transition: var(--t-fast);
  margin-top: 8px;
}

.form-submit:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .form-submit {
  background: var(--white);
  color: var(--dark);
}

[data-theme="dark"] .form-submit:hover {
  background: #e0e0e0;
}

/* =============================================
   PORTFOLIO PAGE
   ============================================= */
.portfolio-section {
  padding: 60px 0 var(--section-gap);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.portfolio__card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border-solid);
  transition: var(--t-mid);
  aspect-ratio: 16/9;
}

.portfolio__card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.portfolio__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.portfolio__card:hover img {
  transform: scale(1.04);
}

.portfolio__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-mid);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.portfolio__card:hover .portfolio__card-overlay {
  opacity: 1;
}

.portfolio__card-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid);
  backdrop-filter: blur(12px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--t-fast);
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: var(--t-fast);
  font-size: 1.25rem;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* =============================================
   SCROLL ANIMATIONS (appear)
   ============================================= */
.appear {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.appear.appear--fast {
  transition-duration: 0.4s;
}
.appear.is-visible {
  opacity: 1;
  transform: none;
}
.appear[data-delay="1"] { transition-delay: 0.1s; }
.appear[data-delay="2"] { transition-delay: 0.2s; }
.appear[data-delay="3"] { transition-delay: 0.3s; }
.appear[data-delay="4"] { transition-delay: 0.4s; }
.appear[data-delay="5"] { transition-delay: 0.5s; }

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  :root {
    --gutter: 28px;
    --section-gap: 90px;
  }

  /* Integrations */
  .integrations__inner { gap: 48px; }
  .integrations__grid { grid-template-columns: repeat(3, 1fr) !important; }

  /* FAQ */
  .faq__inner { gap: 48px; }

  /* Process */
  .process__steps { grid-template-columns: 1fr; }
  .process__steps::before { display: none; }

  /* Socials grid — 2 cols on tablet */
  .socials__grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --section-gap: 70px;
  }

  /* === NAV === */
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: flex; }

  /* Hide "View Portfolio" btn on mobile nav to save space */
  #nav-portfolio-btn { display: none; }

  /* Logo — shrink text, keep icon */
  .nav__logo span {
    font-size: 0.95rem !important;
  }
  .nav__logo img {
    height: 36px !important;
    width: 36px !important;
  }

  /* === HERO === */
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }
  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .hero__subtitle {
    font-size: 0.95rem;
    padding: 0 8px;
  }
  /* Grid bg behind hero — contain it */
  .hero__grid-bg {
    top: -40px !important;
    width: 140% !important;
    opacity: 0.1 !important;
  }

  /* === STATS === */
  .stats__inner { grid-template-columns: 1fr; gap: 0; }
  .stat-card::after { display: none; }
  .stat-card {
    padding: 36px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .stat-card__number {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  /* === FEATURES === */
  .features__header {
    margin-bottom: 40px;
  }

  /* === INTEGRATIONS === */
  .integrations__inner { grid-template-columns: 1fr; gap: 40px; }
  .integrations__grid { grid-template-columns: repeat(3, 1fr) !important; }
  .integrations__text { text-align: center; }
  .integrations__text .section-sub { margin: 0 auto; }

  /* === PORTFOLIO PREVIEW (Home) === */
  /* Override the inline 2-col grid */
  #portfolio-preview .portfolio__grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* === PROCESS === */
  .process__header {
    margin-bottom: 48px;
  }
  .process-step {
    padding: 28px 24px;
  }
  .process__mockup {
    margin-top: 48px;
    max-height: 350px !important;
    padding: 12px !important;
  }

  /* === SOCIALS === */
  .socials__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .socials__grid .tool-card {
    padding: 24px 16px !important;
  }
  .socials__grid .tool-card svg {
    width: 36px !important;
    height: 36px !important;
  }

  /* === FAQ === */
  .faq__inner { grid-template-columns: 1fr; gap: 32px; }
  .faq__header { position: static; text-align: center; }
  .faq__header .section-sub { margin: 0 auto; }
  .faq-item__header { padding: 18px 20px; }
  .faq-item__answer { padding: 0 20px 20px; font-size: 0.875rem; }

  /* === CTA SECTION === */
  .cta-section__title {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }
  .cta-section__title br { display: none; }
  .cta-btn {
    padding: 14px 28px;
    font-size: 0.9375rem;
  }

  /* === FOOTER === */
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  /* === CONTACT PAGE === */
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact__form { padding: 24px; border-radius: 20px; }
  /* Stack the first/last name columns */
  .contact-form [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* === PAGE HERO (subpages) === */
  .page-hero {
    padding: 120px 0 56px;
  }
  .page-hero__title {
    font-size: clamp(2rem, 7vw, 3rem);
  }
  .page-hero__sub {
    font-size: 1rem;
    padding: 0 8px;
  }

  /* === PORTFOLIO PAGE === */
  .portfolio__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .portfolio__card--wide { grid-column: span 2; height: 200px; }

  /* === LIGHTBOX === */
  .lightbox { padding: 16px; }
  .lightbox__img {
    max-width: 96vw;
    max-height: 80vh;
    border-radius: 8px;
  }
  .lightbox__close {
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    font-size: 1rem;
  }
  .lightbox__nav {
    width: 36px; height: 36px;
    font-size: 1rem;
  }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }

  /* === SECTION TITLES (global) === */
  .section-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .section-sub { font-size: 0.9375rem; }

  /* === BOOK A CALL CTA CARD (contact page) === */
  #book-call > .container > div {
    padding: 40px 24px !important;
    border-radius: 20px !important;
  }
  #book-call h2 {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }
}

/* Extra small phones (≤480px) */
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
    --section-gap: 56px;
  }

  /* Hero CTAs stack */
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    justify-content: center;
    width: 100%;
  }

  /* Portfolio — single column */
  .portfolio__grid { grid-template-columns: 1fr !important; }
  .portfolio__card--wide {
    grid-column: span 1;
    height: auto;
    aspect-ratio: 16/9;
  }

  /* Tools grid — 2 cols */
  .integrations__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }

  /* Socials — single column */
  .socials__grid {
    grid-template-columns: 1fr !important;
  }

  /* Stats numbers */
  .stat-card {
    padding: 28px 20px;
  }
  .stat-card__number {
    font-size: 2.5rem;
  }

  /* Process steps */
  .process-step {
    padding: 24px 20px;
  }

  /* Mobile drawer — wider */
  .nav__mobile {
    width: 100%;
  }

  /* CTA */
  .cta-section {
    padding: 56px 0;
  }
  .cta-section__title {
    font-size: 1.6rem;
  }

  /* Lightbox — no nav on very small */
  .lightbox__nav { display: none; }

  /* Feature chips — smaller */
  .feature-chip {
    padding: 14px 18px;
    min-width: 150px;
  }

  /* FAQ toggle circle smaller */
  .faq-item__toggle {
    width: 28px; height: 28px;
  }
  .faq-item__question {
    font-size: 0.9375rem;
  }
}

/* Micro screens (≤360px) */
@media (max-width: 360px) {
  :root {
    --gutter: 12px;
  }

  .hero__title {
    font-size: 1.75rem;
  }
  .hero__badge {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .nav__logo span {
    font-size: 0.85rem !important;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stat-card__number {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .contact__form {
    padding: 20px;
  }
}

/* =============================================
   MISC HELPERS
   ============================================= */
.text-center { text-align: center; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 60px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 60px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-solid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Selection */
::selection { background: var(--dark); color: var(--white); }
[data-theme="dark"] ::selection { background: var(--white); color: var(--dark); }
