:root {
  --color-primary: #006aff;
  --color-primary-dark: #0050cc;
  --color-brand-dark: #0d1b3e;
  --color-cyan: #00c2ff;
  --color-bg: #ffffff;
  --color-bg-subtle: #f0f4ff;
  --color-text-primary: #111827;
  --color-text-secondary: #6b7280;
  --color-text-tertiary: #9ca3af;
  --color-border: #e5e7eb;
  --color-success: #1ac18e;
  --color-warning: #f5a623;
  --color-error: #e53e3e;
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --section-py: clamp(4rem, 6vw, 6rem);
  --container-max: 1180px;
  --container-px: clamp(1rem, 3vw, 1.5rem);
  --shadow-soft: 0 24px 60px rgba(13, 27, 62, 0.08);
  --shadow-card: 0 16px 40px rgba(13, 27, 62, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background:
    radial-gradient(circle at top right, rgba(0, 106, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-weight: 800;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  box-shadow: var(--shadow-soft);
}

.brand-text {
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links > a:not(.button) {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--color-border);
  background: white;
  padding: 0.75rem 1rem;
}

.hero {
  padding: 6.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: rgba(255, 255, 255, 0.68);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.98;
}

h1 {
  max-width: 10.5ch;
  font-size: clamp(2.8rem, 7vw, 5rem);
}

h1 span {
  display: block;
}

.hero-accent {
  color: var(--color-primary);
}

.hero-copy {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: var(--color-text-secondary);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions,
.result-actions,
.wizard-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 2rem;
  justify-content: center;
}

.hero-supporting {
  margin-top: 1rem;
  color: var(--color-text-tertiary);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-strip {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.5rem;
}

.logo-strip span {
  color: var(--color-text-secondary);
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.7rem 1rem;
}

.section {
  padding: var(--section-py) 0;
}

.section-subtle {
  background:
    linear-gradient(180deg, rgba(240, 244, 255, 0.72), rgba(255, 255, 255, 0.95)),
    linear-gradient(135deg, rgba(0, 106, 255, 0.04), transparent 55%);
}

.section-dark {
  color: white;
  background:
    radial-gradient(circle at top left, rgba(0, 194, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #0d1b3e 0%, #081228 100%);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  margin-bottom: 1rem;
}

.section-heading p:last-child,
.contact-copy,
.service-content p,
.process-card p,
.founder-card p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.section-dark .contact-copy,
.section-dark .contact-notes span {
  color: rgba(255, 255, 255, 0.72);
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 1.5rem;
}

.tab-list {
  display: grid;
  gap: 0.75rem;
}

.tab-button {
  text-align: left;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-left: 4px solid transparent;
  background: rgba(255, 255, 255, 0.86);
  color: var(--color-text-secondary);
  font-weight: 700;
  transition: all 0.18s ease;
}

.tab-button.is-active {
  color: var(--color-brand-dark);
  border-left-color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

.tab-button:hover {
  border-left-color: rgba(0, 106, 255, 0.3);
  color: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 27, 62, 0.1);
}

.service-panel,
.audit-box,
.founder-card,
.process-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 27, 62, 0.08);
  box-shadow: var(--shadow-soft);
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 2rem;
  padding: 1.5rem;
}

.service-visual {
  display: grid;
  align-items: center;
}

.mockup-card {
  padding: 1rem;
  background: linear-gradient(180deg, #f8faff, #e9f0ff);
  border: 1px solid rgba(0, 106, 255, 0.14);
}

.mockup-window {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.mockup-window span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(13, 27, 62, 0.18);
}

.mockup-body {
  display: grid;
  gap: 0.8rem;
}

.mockup-line {
  height: 1rem;
  background: rgba(13, 27, 62, 0.12);
}

.mockup-line.long {
  width: 82%;
}

.mockup-line.short {
  width: 54%;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.mockup-grid div {
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, rgba(0, 106, 255, 0.18), rgba(0, 194, 255, 0.08));
}

.service-content {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.service-kicker {
  margin: 0;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.service-content h3 {
  font-size: clamp(1.65rem, 3vw, 2.7rem);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pill-row span {
  border: 1px solid rgba(0, 106, 255, 0.18);
  background: rgba(0, 106, 255, 0.06);
  color: var(--color-brand-dark);
  padding: 0.5rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.process-card {
  padding: 1.4rem;
}

.process-number {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

.process-card h3,
.founder-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.audit-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: start;
}

.score-preview,
.result-scores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.score-card {
  padding: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(13, 27, 62, 0.08);
}

.score-ring {
  --score-angle: calc(var(--score) * 3.6deg);
  width: 96px;
  height: 96px;
  margin: 0 auto 0.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, white 73%, transparent 74% 100%),
    conic-gradient(var(--color-primary) var(--score-angle), rgba(13, 27, 62, 0.1) 0);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-brand-dark);
}

.audit-box {
  padding: 1.5rem;
}

.inline-audit-form {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(13, 27, 62, 0.08);
  margin-bottom: 1.4rem;
}

.inline-audit-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.wizard-steps {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.wizard-step {
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(13, 27, 62, 0.12);
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  font-weight: 700;
}

.wizard-step.is-active {
  color: white;
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
}

.wizard-panel {
  display: grid;
  gap: 1rem;
}

.wizard-panel h3 {
  font-size: 1.7rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
  color: var(--color-brand-dark);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(13, 27, 62, 0.12);
  background: white;
  color: var(--color-text-primary);
  padding: 0.95rem 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.12);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1);
}

.field-hint {
  margin: 0.65rem 0 0;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
}

.field-hint a {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.field-error {
  min-height: 1.2rem;
  margin: 0.35rem 0 0;
  color: var(--color-error);
  font-size: 0.9rem;
}

.loading-bar {
  height: 0.8rem;
  overflow: hidden;
  background: rgba(13, 27, 62, 0.08);
}

.loading-bar span {
  display: block;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
  animation: loading-slide 1.15s ease-in-out infinite;
}

@keyframes loading-slide {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(320%);
  }
}

.result-panel {
  padding-top: 0.25rem;
}

.result-header {
  margin-bottom: 1.2rem;
}

.result-header h3 {
  font-size: 2rem;
}

.result-summary {
  margin-top: 1.4rem;
  padding: 1rem;
  background: rgba(240, 244, 255, 0.8);
  border-left: 4px solid var(--color-primary);
}

.result-summary h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.founder-card {
  padding: 1.6rem;
}

.founder-avatar {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: white;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
}

.founder-avatar-alt {
  background: linear-gradient(135deg, var(--color-brand-dark), #21417c);
}

.founder-title {
  margin: 0 0 0.8rem;
  color: var(--color-primary);
  font-weight: 700;
}

.contact-notes {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-notes div {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-notes strong,
.contact-notes span {
  display: block;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.section-dark .field-label {
  color: white;
}

.form-success {
  margin: 0;
  color: #b4ffe4;
  font-weight: 700;
}

.section-dark {
  padding-bottom: 3rem;
}

.site-footer {
  padding: 2rem 0;
  background: #081228;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.84);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: white;
}

.footer-sub {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-email {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 160ms ease;
}

.footer-email:hover {
  color: var(--color-cyan);
}

.legal-page {
  min-height: 100vh;
}

.legal-hero {
  padding: 5rem 0 2rem;
}

.legal-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(13, 27, 62, 0.08);
  box-shadow: var(--shadow-soft);
}

.legal-card > * + * {
  margin-top: 1rem;
}

.legal-card p,
.legal-card li {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.legal-card ul {
  padding-left: 1.2rem;
}

.not-found-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 82px);
  padding: 4rem 0;
}

.not-found-card {
  max-width: 42rem;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.95rem 1.25rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.button:active {
  transform: scale(0.98) translateY(0);
}

.button-primary {
  color: white;
  background: var(--color-primary);
  box-shadow: 0 14px 30px rgba(0, 106, 255, 0.22);
  position: relative;
  overflow: hidden;
}

.button-primary:hover {
  background: var(--color-primary-dark);
}

.button-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(255, 255, 255, 0.22) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.button-primary:hover::after {
  opacity: 1;
}

.button-outline {
  border: 1px solid rgba(13, 27, 62, 0.18);
  background: transparent;
  color: var(--color-brand-dark);
}

.button-ghost {
  background: rgba(13, 27, 62, 0.06);
  color: var(--color-brand-dark);
}

.button-text {
  padding-inline: 0;
  min-height: auto;
  color: var(--color-brand-dark);
}

.button-text::after {
  content: "→";
}

.button-small {
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
}

.button-full {
  width: 100%;
}

[hidden] {
  display: none !important;
}

/* Animations & Visual Enhancements */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero text entrance handled by GSAP (per-span stagger) */

.hero-accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-card,
.founder-card {
  padding: 2rem 1.8rem;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.process-card:hover,
.founder-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.service-panel {
  padding: 2.5rem;
  gap: 2.5rem;
  transition: box-shadow 300ms ease;
}

.service-panel:hover {
  box-shadow: var(--shadow-card);
}

@keyframes slideLine {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.mockup-line {
  position: relative;
  overflow: hidden;
}

.mockup-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 106, 255, 0.2), transparent);
  animation: slideLine 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

.mockup-grid div {
  animation: pulse 3s ease-in-out infinite;
}

.mockup-grid div:nth-child(2) { animation-delay: 1s; }
.mockup-grid div:nth-child(3) { animation-delay: 2s; }

@media (max-width: 980px) {
  .services-layout,
  .audit-layout,
  .contact-layout,
  .service-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(13, 27, 62, 0.08);
  }

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

  .nav-links a {
    padding: 0.8rem 0;
  }

  .inline-audit-row,
  .field-grid,
  .score-preview,
  .result-scores,
  .founders-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-actions,
  .wizard-actions,
  .result-actions {
    flex-direction: column;
  }

  .footer-links {
    width: 100%;
  }

  .button,
  .button-small {
    width: 100%;
  }
}

/* --- Added for Visuals & Animations --- */

/* GSAP controls initial opacity/transform; .is-visible used as CSS-only fallback */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Visual additions to reduce text heaviness */
.process-card {
  position: relative;
  overflow: hidden;
}
.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.process-card:hover::before {
  transform: scaleX(1);
}

.process-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 106, 255, 0.08);
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.process-icon svg {
  width: 24px;
  height: 24px;
}

.process-number {
  font-size: 1rem;
  color: var(--color-text-tertiary);
  background: transparent;
  margin-bottom: 0.5rem;
}

.service-panel {
  border-top: 4px solid var(--color-primary);
}

/* ---- Two-column Hero ---- */
.hero {
  padding: 4.5rem 0 3rem;
}

.hero-inner {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
  justify-items: start;
  text-align: left;
}

.hero-text {
  width: 100%;
}

.hero-text h1 {
  max-width: none;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
}

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

.logo-strip {
  justify-content: flex-start;
  margin-top: 1.6rem;
}

.hero-cycle {
  display: inline-block;
  will-change: transform, opacity;
  color: var(--color-cyan);
  -webkit-text-fill-color: var(--color-cyan);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.hero-visual {
  width: 100%;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(13, 27, 62, 0.13));
}

/* Hero dashboard element animations */
.hdash-chart-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: svgDrawLine 1.2s cubic-bezier(0.4,0,0.2,1) 1.3s both;
}
.hdash-dot-1, .hdash-dot-2, .hdash-dot-3 {
  transform-box: fill-box;
  transform-origin: center;
}
.hdash-c1          { animation: svgFadeUp 0.4s ease 0.7s both; }
.hdash-c2          { animation: svgFadeUp 0.4s ease 0.9s both; }
.hdash-chart       { animation: svgFadeUp 0.4s ease 1.1s both; }
.hdash-chart-area  { animation: svgFadeIn 0.6s ease 1.9s both; }
.hdash-dot-1       { animation: svgScaleIn 0.3s ease 1.5s both; }
.hdash-dot-2       { animation: svgScaleIn 0.3s ease 1.7s both; }
.hdash-dot-3       { animation: svgScaleIn 0.3s ease 1.9s both; }
.hchat-b1          { animation: svgFadeUp 0.4s ease 0.8s both; }
.hchat-u1          { animation: svgFadeUp 0.4s ease 1.1s both; }
.hchat-b2          { animation: svgFadeUp 0.4s ease 1.4s both; }
.hchat-typing      { animation: svgFadeIn 0.3s ease 1.65s both; }
.hchat-dot1        { animation: chatDotBounce 1.2s ease 1.75s infinite; }
.hchat-dot2        { animation: chatDotBounce 1.2s ease 1.95s infinite; }
.hchat-dot3        { animation: chatDotBounce 1.2s ease 2.15s infinite; }
.hdash-input       { animation: svgFadeIn 0.3s ease 1.65s both; }

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .hero-text h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    max-width: 10.5ch;
  }
  .hero-actions { justify-content: center; }
  .logo-strip   { justify-content: center; }
  .hero-visual  { max-width: 500px; }
}

/* === Service SVG Illustrations — grid-stacked crossfade === */
.service-visual {
  display: grid;
}

.service-svg {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.97) translateY(6px);
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.service-svg.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

@keyframes svgFadeUp {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes svgFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes svgDrawLine {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
@keyframes autoFlowDot {
  0%   { transform: translateX(0);     opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(272px); opacity: 0; }
}
@keyframes chatDotBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-4px); }
}
@keyframes svgScaleIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* Web tab */
.service-svg[data-svg="web"].is-active .web-nav   { animation: svgFadeIn  0.3s ease 0.15s both; }
.service-svg[data-svg="web"].is-active .web-h1    { animation: svgFadeUp  0.35s ease 0.3s  both; }
.service-svg[data-svg="web"].is-active .web-h2a   { animation: svgFadeUp  0.35s ease 0.45s both; }
.service-svg[data-svg="web"].is-active .web-h2b   { animation: svgFadeUp  0.35s ease 0.55s both; }
.service-svg[data-svg="web"].is-active .web-card-1 { animation: svgFadeUp 0.4s  ease 0.65s both; }
.service-svg[data-svg="web"].is-active .web-card-2 { animation: svgFadeUp 0.4s  ease 0.8s  both; }
.service-svg[data-svg="web"].is-active .web-card-3 { animation: svgFadeUp 0.4s  ease 0.95s both; }
.service-svg[data-svg="web"].is-active .web-cta    { animation: svgFadeUp 0.35s ease 1.1s  both; }
.service-svg[data-svg="web"].is-active .web-cta2   { animation: svgFadeUp 0.35s ease 1.2s  both; }

/* Automation tab */
.service-svg[data-svg="automation"].is-active .auto-trigger { animation: svgFadeIn 0.4s ease 0.1s  both; }
.service-svg[data-svg="automation"].is-active .auto-conn-1  { animation: svgFadeIn 0.3s ease 0.45s both; }
.service-svg[data-svg="automation"].is-active .auto-conn-2  { animation: svgFadeIn 0.3s ease 0.65s both; }
.service-svg[data-svg="automation"].is-active .auto-node-1  { animation: svgFadeUp 0.35s ease 0.3s  both; }
.service-svg[data-svg="automation"].is-active .auto-node-2  { animation: svgFadeUp 0.35s ease 0.5s  both; }
.service-svg[data-svg="automation"].is-active .auto-node-3  { animation: svgFadeUp 0.35s ease 0.7s  both; }
.service-svg[data-svg="automation"].is-active .auto-label-1 { animation: svgFadeIn 0.3s ease 0.5s  both; }
.service-svg[data-svg="automation"].is-active .auto-label-2 { animation: svgFadeIn 0.3s ease 0.7s  both; }
.service-svg[data-svg="automation"].is-active .auto-label-3 { animation: svgFadeIn 0.3s ease 0.9s  both; }
.service-svg[data-svg="automation"].is-active .auto-status  { animation: svgFadeIn 0.3s ease 1.1s  both; }
.auto-dot  { opacity: 0; }
.auto-dot2 { opacity: 0; }
.service-svg[data-svg="automation"].is-active .auto-dot {
  animation: autoFlowDot 2.2s ease 1.0s infinite;
}
.service-svg[data-svg="automation"].is-active .auto-dot2 {
  animation: autoFlowDot 2.2s ease 2.1s infinite;
}

/* Automation processing ring */
.auto-processing-ring {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.service-svg[data-svg="automation"].is-active .auto-processing-ring {
  animation: autoRingPulse 2s ease-in-out 1.2s infinite;
}
@keyframes autoRingPulse {
  0%, 100% { opacity: 0;    transform: scale(0.94); }
  50%       { opacity: 0.55; transform: scale(1.04); }
}

/* Chat tab */
.service-svg[data-svg="chat"].is-active .chat-msg-1  { animation: svgFadeUp 0.4s ease 0.2s  both; }
.service-svg[data-svg="chat"].is-active .chat-msg-2  { animation: svgFadeUp 0.4s ease 0.65s both; }
.service-svg[data-svg="chat"].is-active .chat-msg-3  { animation: svgFadeUp 0.4s ease 1.1s  both; }
.service-svg[data-svg="chat"].is-active .chat-typing { animation: svgFadeIn 0.3s ease 1.4s  both; }
.service-svg[data-svg="chat"].is-active .chat-dot-1  { animation: chatDotBounce 1.2s ease 1.5s infinite; }
.service-svg[data-svg="chat"].is-active .chat-dot-2  { animation: chatDotBounce 1.2s ease 1.7s infinite; }
.service-svg[data-svg="chat"].is-active .chat-dot-3  { animation: chatDotBounce 1.2s ease 1.9s infinite; }

/* Growth tab */
.growth-dot-1, .growth-dot-2, .growth-dot-3, .growth-dot-4 {
  transform-box: fill-box;
  transform-origin: center;
}
.growth-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.service-svg[data-svg="growth"].is-active .growth-label  { animation: svgFadeIn   0.3s ease 0.1s  both; }
.service-svg[data-svg="growth"].is-active .growth-line   { animation: svgDrawLine 1.4s cubic-bezier(0.4,0,0.2,1) 0.3s both; }
.service-svg[data-svg="growth"].is-active .growth-area   { animation: svgFadeIn   0.8s ease 0.9s  both; }
.service-svg[data-svg="growth"].is-active .growth-dot-1  { animation: svgScaleIn  0.3s ease 0.65s both; }
.service-svg[data-svg="growth"].is-active .growth-dot-2  { animation: svgScaleIn  0.3s ease 0.95s both; }
.service-svg[data-svg="growth"].is-active .growth-dot-3  { animation: svgScaleIn  0.3s ease 1.15s both; }
.service-svg[data-svg="growth"].is-active .growth-dot-4  { animation: svgScaleIn  0.35s ease 1.35s both; }
.service-svg[data-svg="growth"].is-active .growth-badge  { animation: svgFadeIn   0.4s ease 1.4s  both; }

/* =====================================================
   PREMIUM MOTION SYSTEM
   ===================================================== */

/* --- Hero background animated blob --- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 55%;
  height: 130%;
  background: radial-gradient(ellipse at center, rgba(0, 106, 255, 0.07), transparent 68%);
  animation: heroBlobDrift 9s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
}
@keyframes heroBlobDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-30px, 18px) scale(1.08); }
}

/* --- Hero visual float --- */
.hero-float {
  animation: heroFloat 5.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* --- Workflow SVG --- */
.workflow-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 56px rgba(13, 27, 62, 0.14));
}

/* Dashed connector lines flow animation */
.wf-conn {
  animation: dashFlow 2.2s linear infinite;
}
@keyframes dashFlow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -10; }
}

/* Hub pulse rings */
.hub-ring {
  transform-box: fill-box;
  transform-origin: center;
}
.hub-ring-a {
  animation: hubPulse 3s ease-out infinite;
}
.hub-ring-b {
  animation: hubPulse 3s ease-out 1s infinite;
}
@keyframes hubPulse {
  0%   { opacity: 0.55; transform: scale(0.94); }
  60%  { opacity: 0.18; transform: scale(1.02); }
  100% { opacity: 0;    transform: scale(1.10); }
}

/* --- Process section timeline --- */
.process-grid {
  position: relative;
}
.process-connector {
  position: absolute;
  top: 3.5rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(13, 27, 62, 0.07);
  z-index: 0;
  pointer-events: none;
}
.process-connector-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
  border-radius: 2px;
  transition: width 0.4s ease;
}
.process-card {
  position: relative;
  z-index: 1;
}
@media (max-width: 980px) {
  .process-connector { display: none; }
}

/* --- Metrics section --- */
.metrics-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  padding: 3.5rem 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.metric-item {
  padding: 1.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--color-border);
}
.metric-item:last-child { border-right: none; }
.metric-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}
.metric-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-brand-dark);
  line-height: 1;
}
.metric-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--color-primary);
}
.metric-label {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}
@media (max-width: 760px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-item:nth-child(2) { border-right: none; }
  .metric-item:nth-child(3), .metric-item:nth-child(4) {
    border-top: 1px solid var(--color-border);
  }
}

/* --- Card hover improvements --- */
.process-card:hover,
.founder-card:hover {
  box-shadow: 0 20px 48px rgba(13, 27, 62, 0.13);
}

/* =====================================================
   FLOATING LABELS (Anthropic-style contact form)
   ===================================================== */
.field-group {
  position: relative;
}

.field-group input,
.field-group textarea {
  padding-top: 1.6rem;
  padding-bottom: 0.4rem;
}

.field-group .field-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
  pointer-events: none;
  transition: top 0.18s cubic-bezier(0.4, 0, 0.2, 1),
              font-size 0.18s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.18s ease,
              letter-spacing 0.18s ease;
}

.field-group textarea ~ .field-label {
  top: 1.1rem;
}

.field-group input:focus ~ .field-label,
.field-group input:not(:placeholder-shown) ~ .field-label,
.field-group textarea:focus ~ .field-label,
.field-group textarea:not(:placeholder-shown) ~ .field-label {
  top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Label inside white input — use dark colour regardless of section bg */
.section-dark .field-group .field-label {
  color: var(--color-text-tertiary);
}

/* =====================================================
   PREMIUM MOTION LAYER — visual support styles
   ===================================================== */

/* Hero neural particle canvas sits between bg blob and content */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Hero text/visual receive JS parallax transforms */
.hero-text,
.hero-visual svg {
  will-change: transform;
}

/* Scroll-aware navbar */
.site-header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 30px rgba(13, 27, 62, 0.07);
}

/* Nav link underline slide */
.nav-links > a:not(.button) {
  position: relative;
  transition: color 0.2s ease;
}
.nav-links > a:not(.button)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links > a:not(.button):hover {
  color: var(--color-brand-dark);
}
.nav-links > a:not(.button):hover::after {
  transform: scaleX(1);
}

/* Button ripple */
.button {
  position: relative;
  overflow: hidden;
}
.button-text {
  overflow: visible;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleExpand 0.55s ease-out forwards;
  pointer-events: none;
}
.button-outline .ripple,
.button-ghost .ripple {
  background: rgba(0, 106, 255, 0.16);
}
@keyframes rippleExpand {
  to { transform: scale(2.6); opacity: 0; }
}

/* Ambient cursor glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 106, 255, 0.05), transparent 65%);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}

/* Ambient drifting blobs in sections */
.section-subtle,
.section-dark {
  position: relative;
  overflow: hidden;
}
.section-subtle::after,
.section-dark::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.section-subtle::after {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.08), transparent 65%);
  animation: blobDrift 14s ease-in-out infinite alternate;
}
.section-dark::after {
  width: 540px;
  height: 540px;
  bottom: -200px;
  right: -140px;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.1), transparent 65%);
  animation: blobDrift 17s ease-in-out infinite alternate;
}
@keyframes blobDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 40px) scale(1.12); }
}
.section-subtle > .container,
.section-dark > .container {
  position: relative;
  z-index: 1;
}

/* Glassmorphism on the dark contact form (sits over drifting blob) */
.contact-form {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Logo strip micro-interaction */
.logo-strip span {
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.logo-strip span:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 106, 255, 0.35);
  color: var(--color-brand-dark);
}

/* Tab buttons get a touch of glass */
.tab-button {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Rich tab content — number, name, description fill the tall column */
.tab-button {
  display: grid;
  align-content: center;
  gap: 0.4rem;
  padding: 1.4rem 1.3rem;
}
.tab-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.75;
}
.tab-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-brand-dark);
  line-height: 1.2;
}
.tab-desc {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.55;
}
.tab-button.is-active {
  background: linear-gradient(135deg, rgba(0, 106, 255, 0.06), rgba(255, 255, 255, 0.95));
}
.tab-button.is-active .tab-num {
  opacity: 1;
}

/* Accessibility: kill all motion for users who opt out */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
