:root,
[data-theme="dark"] {
  --color-bg: #0d0d12;
  --color-surface: #13131a;
  --color-accent: #06b6d4;
  --color-brand: #7c3aed;
  --color-text: #f1f0f5;
  --color-text-muted: #8b8a99;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-navbar: rgba(13, 13, 18, 0.85);
}

[data-theme="light"] {
  --color-bg: #f5f5f8;
  --color-surface: #ffffff;
  --color-accent: #06b6d4;
  --color-brand: #7c3aed;
  --color-text: #0d0d1a;
  --color-text-muted: #4a4a6a;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-navbar: rgba(245, 245, 248, 0.92);
}

[data-theme="light"] nav,
[data-theme="light"] header,
[data-theme="light"] .navbar {
  color: #0d0d1a !important;
}

[data-theme="light"] nav .company-name,
[data-theme="light"] nav h1,
[data-theme="light"] .brand-name,
[data-theme="light"] .brand-text,
[data-theme="light"] .nav-logo-text {
  color: #0d0d1a !important;
}

[data-theme="light"] nav a,
[data-theme="light"] .nav-links a {
  color: #0d0d1a !important;
}

[data-theme="light"] #theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0d0d1a;
}

[data-theme="purple"] {
  --color-bg: #07040f;
  --color-surface: #0e0918;
  --color-surface-2: #130e20;
  --color-accent: #a78bfa;
  --color-brand: #7c3aed;
  --color-text: #ede9fe;
  --color-text-muted: #9d8ec7;
  --color-border: rgba(167, 139, 250, 0.12);
  --color-navbar: rgba(7, 4, 15, 0.92);
}

:root {
  --bg: var(--color-bg);
  --panel: var(--color-surface);
  --panel-2: color-mix(in srgb, var(--color-surface) 90%, var(--color-text));
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --muted-2: color-mix(in srgb, var(--color-text-muted) 80%, transparent);
  --border: var(--color-border);
  --border-2: color-mix(in srgb, var(--color-border) 80%, var(--color-text));
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);

  --accent: var(--color-brand);
  --accent-contrast: #ffffff;
  --accent-soft: color-mix(in srgb, var(--color-brand) 18%, transparent);
  --hover-accent: color-mix(in srgb, var(--color-brand) 80%, #000);

  --cta: var(--color-accent);
  --hover-cta: color-mix(in srgb, var(--color-accent) 80%, #000);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1240px;
  --header-h: 72px;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
}

* {
  cursor: none !important;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

body, p, a, li, span, button, input, textarea, label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif !important;
}

body, p, a, li, button, input, textarea {
  font-family: 'DM Sans', sans-serif !important;
}

h2 {
  font-weight: 600;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  transform: translateY(-140%);
  transition: transform 220ms ease;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  opacity: 1;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.00), rgba(255, 255, 255, 0.02));
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.section-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-soft), rgba(255, 255, 255, 0), var(--accent-soft));
  border-radius: 999px;
}

.h2 {
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.08;
  margin: 0;
}

.h3 {
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.18;
  margin: 0;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 12px 0;
  color: var(--text);
}

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

.muted {
  color: var(--muted-2);
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 42%, transparent);
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid transparent;
  transition: backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 20px;
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-img {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 10px;
}

.brand-text {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 15px;
  color: var(--text);
  background: radial-gradient(100% 100% at 20% 0%, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
  flex: 0 0 auto;
}

.brand-mark-sm {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 13px;
}

.brand-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.nav-toggle-lines {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: inline-block;
  position: relative;
  border-radius: 999px;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  opacity: 0.9;
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border-color: color-mix(in srgb, var(--text) 8%, transparent);
}

.nav-link.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent) 18%, transparent);
}

#theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4rem 1rem 0.4rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

#theme-toggle:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--color-accent);
}

[data-theme="light"] #theme-toggle:hover {
  background: rgba(0,0,0,0.04);
}

#theme-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

/* Hero */
.hero {
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  min-height: auto;
  display: block;
  position: relative;
  overflow: hidden;
}



.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 18px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--bg));
  pointer-events: none;
  z-index: 0;
}

.hero-backdrop {
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(900px 360px at 50% 10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(720px 320px at 20% 35%, rgba(255, 255, 255, 0.10), transparent 72%);
  opacity: 0.9;
}

.hero-content {
  max-width: 1000px;
  width: 100%;
}

.hero-subtitle {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem) !important;
  font-weight: 700 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-style: normal !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
  color: var(--color-text) !important;
  max-width: none !important;
  width: 100% !important;
  white-space: nowrap !important;
  text-align: left !important;
  display: block !important;
}

.hero-heading,
.hero h1 {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem) !important;
  font-weight: 300 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-style: normal !important;
  line-height: 1.75 !important;
  letter-spacing: 0.01em !important;
  color: var(--color-text-muted) !important;
  max-width: 520px !important;
  text-align: left !important;
  display: block !important;
  margin-top: 1rem !important;
}

.hero-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 1.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.tag-dot {
  color: var(--color-accent);
  opacity: 0.6;
}

[data-theme="purple"] .hero-heading {
  text-shadow: 0 0 30px rgba(167, 139, 250, 0.5), 0 0 60px rgba(167, 139, 250, 0.2);
}

[data-theme="light"] .hero-heading {
  text-shadow: 0 2px 20px rgba(124, 58, 237, 0.15);
}

[data-theme="purple"] h1,
[data-theme="purple"] h2,
[data-theme="purple"] h3 {
  color: #f5f3ff;
}

[data-theme="purple"] .hero-subtitle {
  color: #9d8ec7;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.hero-meta-sep {
  opacity: 0.7;
}

/* Buttons (no gradient buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease, background 200ms ease, border-color 200ms ease;
}

button, .btn, [role="button"], input[type="submit"], input[type="button"] {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  font-style: normal !important;
  letter-spacing: 0.04em !important;
  font-size: 0.82rem !important;
  -webkit-font-smoothing: antialiased !important;
}

#theme-toggle {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em !important;
}

#theme-label {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
}

form button[type="submit"], form input[type="submit"] {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  font-size: 0.85rem !important;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-2);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--cta);
  border-color: var(--cta);
  color: var(--accent-contrast);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--hover-cta);
  border-color: var(--hover-cta);
  transform: scale(1.03);
}

.btn-primary:active {
  transform: scale(0.97);
}

/* About */
.about-grid {
  display: block;
}

.about-copy {
  padding: 22px 22px 22px 0;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
  background: radial-gradient(120% 120% at 10% 0%, rgba(255, 255, 255, 0.04), transparent 60%),
    radial-gradient(120% 120% at 90% 20%, rgba(255, 255, 255, 0.03), transparent 60%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--text) 7%, transparent);
  background: color-mix(in srgb, var(--bg) 75%, var(--panel));
}

.stat-k {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.stat-v {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.5;
}

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

.card {
  background: radial-gradient(130% 130% at 10% 0%, rgba(255, 255, 255, 0.06), transparent 58%),
    radial-gradient(120% 120% at 90% 20%, rgba(255, 255, 255, 0.04), transparent 62%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 200ms ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.3), 0 8px 32px rgba(124, 58, 237, 0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  padding: 1px;
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--text) 14%, transparent),
      color-mix(in srgb, var(--text) 4%, transparent),
      color-mix(in srgb, var(--text) 10%, transparent));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.45;
  pointer-events: none;
}

.card-top {
  display: grid;
  gap: 4px;
}

.card-sub {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card-body {
  margin: 0;
  color: var(--muted);
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.list-tight {
  padding-left: 18px;
}

.list li {
  margin: 6px 0;
}

/* Founder */
.founder {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
}

.founder-media {
  position: relative;
}

.founder-photo {
  border-radius: calc(var(--radius) + 6px);
  padding: 10px;
  background: radial-gradient(120% 120% at 10% 0%, rgba(255, 255, 255, 0.06), transparent 58%),
    radial-gradient(120% 120% at 90% 20%, rgba(255, 255, 255, 0.04), transparent 62%),
    var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 140px;
}

.founder-photo-inner {
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  background: color-mix(in srgb, var(--bg) 80%, var(--panel));
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--text);
}

.founder-photo-inner svg {
  width: 160px;
  height: 160px;
}

.founder-copy {
  padding: 6px 0;
}

.founder-name {
  margin-bottom: 4px;
}

.founder-title {
  margin: 0 0 14px 0;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
}

[data-theme="light"] .pill {
  background: rgba(10, 10, 10, 0.03);
  border-color: rgba(10, 10, 10, 0.08);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-copy {
  display: flex;
  flex-direction: column;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: radial-gradient(120% 120% at 10% 0%, rgba(255, 255, 255, 0.05), transparent 58%),
    var(--panel);
  box-shadow: var(--shadow);
}

/* Specific Element Spacing adjustments (Change 7) */
.about-section p, [class*="about"] p {
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 68ch;
}

.features-grid, [class*="feature"][class*="grid"], .about-grid {
  gap: 1rem;
  margin-top: 2.5rem;
}

.verticals-grid, [class*="vertical"][class*="grid"], .card-grid {
  gap: 1rem;
  margin-top: 2.5rem;
}

[class*="founder"], .founder-media, .founder-copy {
  gap: 2.5rem;
  align-items: flex-start;
}

[data-theme="light"] .form {
  background: radial-gradient(120% 120% at 10% 0%, rgba(10, 10, 10, 0.05), transparent 58%), var(--panel);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
}

[data-theme="light"] .field input,
[data-theme="light"] .field textarea {
  border-color: rgba(10, 10, 10, 0.12);
  background: rgba(10, 10, 10, 0.02);
}

.field input:focus,
.field textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
  background: color-mix(in srgb, var(--bg) 75%, var(--panel));
}

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--muted-2) 70%, transparent);
}

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

.form-hint {
  margin: 0;
  font-size: 13px;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0;
}

[data-theme="light"] .footer {
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.footer-copy {
  color: var(--muted-2);
  font-size: 13px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, rgba(255, 255, 255, 0.06));
  color: var(--text);
  box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 220ms ease;
  font-size: 13px;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-copy {
    padding-right: 0;
  }

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

  .card {
    min-height: unset;
  }

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

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

@media (max-width: 780px) {
  :root {
    --header-h: 68px;
  }

  .brand-text {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(var(--header-h) + 10px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 86%, rgba(255, 255, 255, 0.06));
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 200ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .nav-link,
  .theme-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding: 84px 0 64px;
    min-height: unset;
  }

  .hero-title {
    letter-spacing: -0.02em;
  }

  .section {
    padding: 72px 0;
  }
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.theme-btn.active {
  color: var(--text);
  background: rgba(124, 58, 237, 0.2);
}

#cur-main,
#cur-f1,
#cur-f2 {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, box-shadow 0.15s ease;
}

/* Main ball — largest and brightest */
#cur-main {
  width: 14px;
  height: 14px;
}

/* Follower 2 — smallest and most faded */
#cur-f2 {
  width: 7px;
  height: 7px;
  opacity: 0.45;
}

@media (hover: none) and (pointer: coarse) {
  * {
    cursor: auto !important;
  }

  #cur-main,
  #cur-f1,
  #cur-f2 {
    display: none !important;
  }
}

#touch-ripple-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999999;
  overflow: hidden;
}

.touch-ripple {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple-expand 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

@keyframes ripple-expand {
  0% {
    width: 0;
    height: 0;
    opacity: 0.7;
  }

  100% {
    width: 80px;
    height: 80px;
    opacity: 0;
  }
}

@media (max-width: 768px) {

  /* Make ambient blobs smaller on mobile to avoid performance issues */
  .blob-1 {
    width: 280px;
    height: 280px;
  }

  .blob-2 {
    width: 220px;
    height: 220px;
  }

  .blob-3 {
    width: 200px;
    height: 200px;
  }

  /* Navbar */
  nav,
  .navbar,
  header nav {
    padding: 0.9rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .nav-links,
  nav ul {
    display: none;
  }

  #hamburger {
    display: flex !important;
  }

  /* Hero */
  .hero,
  [class*="hero"] {
    padding: 6rem 1.25rem 3rem !important;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
  }

  .hero h1,
  .hero-heading {
    font-size: clamp(2.2rem, 9vw, 3.2rem) !important;
    line-height: 1.15 !important;
  }

  .hero-subtitle {
    font-size: clamp(1.8rem, 7.5vw, 2.8rem) !important;
    line-height: 1.2 !important;
    width: 100% !important;
    max-width: none !important;
    white-space: normal !important;
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1.25rem;
    max-width: 100%;
  }

  /* All grid sections → single column */
  [class*="grid"],
  .features-grid,
  .verticals-grid,
  .services-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* Cards */
  .card,
  [class*="card"],
  .feature-box,
  .vertical-card {
    padding: 1.25rem !important;
  }

  /* Founder section */
  .founder-section,
  .founder,
  [class*="founder"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.5rem;
  }

  .founder-section img,
  .founder img,
  [class*="founder"] img {
    width: 80px !important;
    height: 80px !important;
  }

  /* Form */
  input,
  textarea,
  select {
    width: 100% !important;
    font-size: 16px !important;
    padding: 0.85rem 1rem;
    border-radius: 8px;
  }

  /* Footer */
  footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem;
    padding: 2rem 1.25rem !important;
    text-align: left;
  }

  /* General sections */
  section {
    padding: 3rem 1.25rem !important;
  }
}

@media (max-width: 390px) {

  .hero h1,
  .hero-heading {
    font-size: clamp(1.9rem, 10vw, 2.8rem) !important;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {

  .hero h1,
  .hero-heading {
    font-size: clamp(2.5rem, 6vw, 4rem) !important;
  }

  .features-grid,
  .about-grid,
  .verticals-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  section {
    padding: 4rem 2rem !important;
  }
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: blobDrift 18s ease-in-out infinite alternate;
}

.blob-1 { width: 600px; height: 600px; top: -150px; left: -150px; animation-duration: 20s; animation-delay: 0s; }
.blob-2 { width: 500px; height: 500px; top: 30%; right: -120px; animation-duration: 25s; animation-delay: -8s; }
.blob-3 { width: 450px; height: 450px; bottom: -100px; left: 30%; animation-duration: 22s; animation-delay: -14s; }
.blob-4 { width: 400px; height: 400px; top: 55%; left: 10%; animation-duration: 28s; animation-delay: -5s; }

@keyframes blobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 30px) scale(0.97); }
  100% { transform: translate(15px, 15px) scale(1.03); }
}

/* Dark theme blobs */
[data-theme="dark"] .blob-1 { background: #7c3aed; }
[data-theme="dark"] .blob-2 { background: #06b6d4; }
[data-theme="dark"] .blob-3 { background: #4f46e5; }
[data-theme="dark"] .blob-4 { background: #1d4ed8; opacity: 0.08; }

/* Light theme blobs */
[data-theme="light"] .blob-1 { background: #7c3aed; opacity: 0.07; }
[data-theme="light"] .blob-2 { background: #06b6d4; opacity: 0.06; }
[data-theme="light"] .blob-3 { background: #4f46e5; opacity: 0.05; }
[data-theme="light"] .blob-4 { background: #7c3aed; opacity: 0.04; }

/* Purple theme blobs */
[data-theme="purple"] .ambient-blob { opacity: 0.14; }
[data-theme="purple"] .blob-1 { background: #6d28d9; }
[data-theme="purple"] .blob-2 { background: #4c1d95; }
[data-theme="purple"] .blob-3 { background: #7c3aed; }
[data-theme="purple"] .blob-4 { background: #5b21b6; opacity: 0.12; }

@media (max-width: 768px) {
  .blob-1 { width: 300px; height: 300px; }
  .blob-2 { width: 240px; height: 240px; }
  .blob-3 { width: 220px; height: 220px; }
  .blob-4 { width: 200px; height: 200px; }
}