/* ── Design tokens ────────────────────────────── */
:root {
  --bg:           #0a0a0f;
  --bg-card:      #1c1528;
  --bg-muted:     #1c1528;
  --bg-hover:     #2a1f3d;
  --border:       #2a1f3d;
  --text:         #EDF0F4;
  --text-muted:   #8892A4;
  --primary:      #6B3AE8;
  --primary-hover:#7C4EF0;
  --accent:       #13A3E0;
  --gradient:     linear-gradient(135deg, #6B3AE8, #13A3E0);

  --font-heading: 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;

  --max-width: 1040px;
  --radius:    10px;
  --radius-pill: 9999px;
}

/* ── Reset ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background-color: #0a0a0f;
  background-image:
    radial-gradient(
      ellipse 80% 50% at 50% 0%,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.02) 40%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 20% 80% at 0% 30%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 20% 80% at 100% 30%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 60%
    );
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Layout ───────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ───────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }

p { color: var(--text-muted); }

a { color: var(--text); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

/* ── NAV ──────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-dot { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* ── HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  padding: 7rem 0 6rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(107, 58, 232, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Diagonal streak decorations — top right, like the HextaAI reference */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  top: -40rem;
  right: -20rem;
  width: 8rem;
  height: 28rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), #93c5fd);
  filter: blur(4rem);
  transform: rotate(-20deg) skewX(-40deg);
  opacity: 0.35;
  box-shadow: 18rem 0 0 rgba(255,255,255,0.8), 36rem 0 0 rgba(147,197,253,0.6);
}

.hero::after {
  top: -50rem;
  right: -40rem;
  width: 8rem;
  height: 32rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.8), #93c5fd);
  filter: blur(5rem);
  transform: rotate(-20deg) skewX(-40deg);
  opacity: 0.25;
  box-shadow: 18rem 0 0 rgba(255,255,255,0.6), 36rem 0 0 rgba(147,197,253,0.4);
}

/* ── Cog background layers ────────────────────── */
.hero-cogs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-cogs svg { width: 100%; height: 100%; }

.hero-cogs--base path   { fill: rgba(107, 58, 232, 0.22); }
.hero-cogs--reveal path { fill: rgba(19, 163, 224, 0.75); }

.hero-cogs--reveal {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ── Cog rotation ─────────────────────────────── */
.cog {
  transform-box: fill-box;
  transform-origin: center;
}
.cog--1 { animation: cog-spin 28s linear infinite; }
.cog--2 { animation: cog-spin 42s linear infinite reverse; }
.cog--3 { animation: cog-spin 20s linear infinite; }
.cog--4 { animation: cog-spin 60s linear infinite reverse; }
.cog--5 { animation: cog-spin 35s linear infinite; }
.cog--6 { animation: cog-spin 25s linear infinite reverse; }

@keyframes cog-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .cog { animation-play-state: paused; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

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

.subheadline {
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 600px;
  color: var(--text);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ── LOOM ─────────────────────────────────────── */
.loom-section {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.loom-embed {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.loom-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.play-btn:hover { background: var(--primary-hover); transform: scale(1.05); }

.loom-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── STATS ────────────────────────────────────── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  flex: 1;
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── SERVICES ─────────────────────────────────── */
.services {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-sub {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  background: var(--bg-hover);
  border-color: rgba(107, 58, 232, 0.4);
  transform: translateY(-2px);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(107, 58, 232, 0.12);
  border: 1px solid rgba(107, 58, 232, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card h3 { color: var(--text); }
.service-card p { font-size: 0.9rem; margin-top: 0.5rem; }

/* ── PROCESS ──────────────────────────────────── */
.process {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 1rem;
}

.step {
  flex: 1;
  padding: 2rem;
  text-align: center;
}

.step-connector {
  width: 1px;
  height: 60px;
  background: var(--border);
  margin-top: 2.5rem;
  flex-shrink: 0;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(107, 58, 232, 0.12);
  border: 1px solid rgba(107, 58, 232, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  margin: 0 auto 1rem;
}

.step h3 { color: var(--text); font-size: 1.05rem; }
.step p { font-size: 0.9rem; margin-top: 0.5rem; max-width: 260px; margin-left: auto; margin-right: auto; }

/* ── ABOUT ────────────────────────────────────── */
.about {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--text);
  margin: 1rem 0 1.5rem;
  line-height: 1.65;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.6rem;
}

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.founder-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.founder-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.founder-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
}

.founder-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.founder-quote {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
  border-left: 2px solid var(--primary);
  padding-left: 1rem;
  margin: 0;
}

/* ── FINAL CTA ────────────────────────────────── */
.cta-bottom {
  position: relative;
  padding: 7rem 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(19, 163, 224, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner h2 { margin-bottom: 1rem; }
.cta-inner p { font-size: 1.05rem; margin-bottom: 2rem; }

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ───────────────────────────────────── */
.footer {
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a { font-size: 0.875rem; color: var(--text-muted); }

.footer-socials {
  display: flex;
  gap: 1rem;
}
.footer-socials a { color: var(--text-muted); transition: color 0.15s; }
.footer-socials a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
.footer-copy a { color: var(--text-muted); }
.footer-copy a:hover { color: var(--accent); }

/* ── Mobile ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }

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

  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .stat-divider { display: none; }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }
  .step-connector {
    width: 40px;
    height: 1px;
    margin: 0;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .btn { width: 100%; justify-content: center; }
  .hero-ctas, .cta-buttons { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
}

/* ── SITE FOOTER ──────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.site-footer a:hover { color: var(--accent); }
.site-footer .footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}
@media (max-width: 600px) {
  .site-footer .container { flex-direction: column; align-items: center; text-align: center; }
}
