/* =============================================================
   1. Tokens — custom properties
   ============================================================= */
:root {
  /* Palette — deep purple-dark */
  --bg:          #07050e;
  --bg-2:        #0e0a1c;
  --bg-card:     #110e22;
  --bg-card-2:   #16122a;
  --ink:         #ede9f9;
  --ink-soft:    #c4b8e8;
  --ink-mute:    #7b6fa0;
  --accent:      #a855f7;
  --accent-2:    #7c3aed;
  --accent-3:    #c084fc;
  --line:        rgba(168, 85, 247, 0.15);
  --line-solid:  rgba(168, 85, 247, 0.25);

  /* Gradient blobs (updated via JS on mousemove) */
  --mx: 35%;
  --my: 42%;

  /* Typography */
  --display: "Syne", sans-serif;
  --sans:    "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", "Courier New", monospace;

  /* Spacing & layout */
  --gutter:  clamp(1.25rem, 5vw, 3rem);
  --max-w:   1160px;
  --radius:  16px;
  --radius-sm: 10px;

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  overflow-x: clip;
}

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
ul { list-style: none; padding: 0; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9999;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--mono); }

/* Defensive: elements with both .reveal AND data-split stay visible */
.reveal[data-split] { opacity: 1; transform: none; filter: none; }

/* =============================================================
   4. Custom cursor — eliminado
   ============================================================= */

/* =============================================================
   5. Navigation
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding-block: 1.5rem;
  padding-inline: var(--gutter);
  transition: background 0.4s var(--ease-out), padding 0.3s var(--ease-out), border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(7, 5, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-block: 1rem;
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--max-w);
  margin-inline: auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.nav-links {
  display: none;
  gap: 2rem;
  margin-left: auto;
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
    align-items: center;
  }
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* Nav CTA */
.btn-nav {
  display: none;
  margin-left: auto;
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--line-solid);
  border-radius: 8px;
  background: transparent;
  color: var(--accent-3);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
@media (min-width: 720px) {
  .btn-nav { display: inline-flex; align-items: center; gap: 0.25rem; }
}
.btn-nav:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* Hamburger */
.nav-burger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
@media (min-width: 720px) { .nav-burger { display: none; } }

.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink-soft);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-burger.is-open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 1rem var(--gutter) 1.5rem;
  border-top: 1px solid var(--line);
  max-width: var(--max-w);
  margin-inline: auto;
}
.nav-mobile.is-open { display: flex; }

.nav-mobile a {
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--ink); }
.btn-nav-mobile {
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  width: fit-content;
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: center;
  overflow: clip;
  padding-top: 7rem;
  padding-bottom: 0;
}

/* Mouse-reactive gradient mesh */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle 900px at var(--mx) var(--my),
      rgba(109, 40, 217, 0.55) 0%, transparent 55%),
    radial-gradient(circle 600px at calc(var(--mx) + 22%) calc(var(--my) - 18%),
      rgba(168, 85, 247, 0.35) 0%, transparent 50%),
    radial-gradient(circle 500px at 82% 15%,
      rgba(76, 29, 149, 0.45) 0%, transparent 48%),
    radial-gradient(circle 400px at 8%  82%,
      rgba(109, 40, 217, 0.25) 0%, transparent 42%);
  filter: blur(72px) saturate(160%);
  pointer-events: none;
  will-change: background;
}

/* Grain overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 961px) {
  .hero-inner {
    max-width: calc(var(--max-w) * 0.55);
    margin-left: max(var(--gutter), calc((100vw - var(--max-w)) / 2));
    margin-right: 0;
    padding-inline: 0;
  }
}

.hero-content {
  min-width: 0;
}

/* Hero robot visual — anclado al fondo del .hero */
.hero-visual {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  max-width: 720px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 960px) {
  .hero-visual { display: none; }
}

.hero-robot {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.hero-title .word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8.5vw, 7.5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: 14ch;
  overflow-wrap: break-word;
}

.hero-title em {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(
    100deg,
    var(--accent) 0%,
    var(--accent) 40%,
    #f3e8ff 50%,
    var(--accent) 60%,
    var(--accent) 100%
  );
  background-size: 250% auto;
  background-position: 200% center;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: title-shimmer 5s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes title-shimmer {
  0%, 15%, 100% { background-position: 200% center; }
  50%           { background-position: -50% center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title em { animation: none; }
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 48ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Hero CTA buttons */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Scroll hint */
/* =============================================================
   7. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  transition: background 0.25s var(--ease-out), color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s var(--ease-bounce);
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--accent-3);
    border-color: var(--accent-3);
    box-shadow: 0 0 32px rgba(168, 85, 247, 0.35);
  }
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line-solid);
}
@media (hover: hover) {
  .btn-ghost:hover {
    border-color: var(--accent);
    color: var(--ink);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
  }
}

/* =============================================================
   8. Stats — marquee ticker
   ============================================================= */
.stats {
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--line);
  overflow: clip;
  -webkit-mask: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  mask: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

.stats-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker 32s linear infinite;
  will-change: transform;
}


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

.stat-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0 clamp(2rem, 4vw, 3.5rem);
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-weight: 400;
  line-height: 1.3;
  max-width: 10em;
}

.stat-sep {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.22;
  font-size: 0.45rem;
  padding: 0 0.25rem;
}

/* =============================================================
   9. Section shared styles
   ============================================================= */
.section-header {
  margin-bottom: 1.5rem;
}

.section-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.1;
}
.section-header h2 em {
  font-style: italic;
  color: var(--accent-3);
}

/* =============================================================
   10. Services
   ============================================================= */
.services {
  padding-block: 2.5rem 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: clip;
}

@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--bg-card);
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.25s var(--ease-out);
  position: relative;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 200px at 30% 20%, rgba(168,85,247,0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}

@media (hover: hover) {
  .service-card:hover {
    background: var(--bg-card-2);
  }
  .service-card:hover::before { opacity: 1; }
}

.service-icon-wrap {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--line-solid);
  border-radius: 10px;
  margin-bottom: 0.25rem;
}

.service-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-3);
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.service-card > p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
  flex: 1;
}

/* Expandable details */
.service-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s var(--ease-out), opacity 0.3s var(--ease-out);
}

.service-card.is-open .service-details {
  max-height: 260px;
  opacity: 1;
}

.service-details ul {
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--line);
}

.service-details li {
  font-size: 0.82rem;
  color: var(--ink-mute);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.service-details li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Toggle button */
.service-toggle {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.3rem 0;
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.75;
  letter-spacing: 0.02em;
}
.service-toggle:hover { opacity: 1; }
.service-card.is-open .service-toggle { opacity: 1; }

/* =============================================================
   11. Process
   ============================================================= */
.process {
  padding-block: 4rem;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Slider del proceso */
.process-slider {
  max-width: 920px;
  margin-inline: auto;
}

.process-viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  position: relative;
}

.process-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.process-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.process-num-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-right: 1px solid var(--line);
  padding-right: clamp(1rem, 3vw, 2rem);
  align-self: stretch;
}

.process-num {
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.process-num-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.process-content h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.process-desc {
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 60ch;
}

.process-points {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-left: 0;
}

.process-points li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.55;
}

.process-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Controles */
.process-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.process-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-solid);
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.process-arrow svg { width: 18px; height: 18px; }

@media (hover: hover) {
  .process-arrow:hover:not(:disabled) {
    background: rgba(168, 85, 247, 0.12);
    border-color: var(--accent);
    color: var(--accent-3);
  }
}

.process-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.process-dots {
  display: flex;
  gap: 0.6rem;
}

.process-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--line-solid);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s, width 0.3s;
}

.process-dot.is-active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

@media (hover: hover) {
  .process-dot:hover:not(.is-active) { background: var(--accent-3); }
}

@media (max-width: 640px) {
  .process-slide {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
  }
  .process-num-wrap {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 1rem;
    flex-direction: row;
    align-items: baseline;
    gap: 0.75rem;
  }
}

/* =============================================================
   12. About
   ============================================================= */
.about {
  padding-block: 4rem;
}

.about-inner {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}

.about-text-block {
  flex: 1;
  min-width: 0;
}

.about-photo-wrap {
  flex-shrink: 0;
  width: clamp(260px, 30vw, 380px);
  border-radius: 22px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: var(--bg-card);
  padding: 10px;
  box-shadow:
    0 0 60px rgba(168, 85, 247, 0.18),
    0 20px 50px rgba(0, 0, 0, 0.55);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
  will-change: transform;
}

@media (hover: hover) {
  .about-photo-wrap:hover {
    border-color: rgba(168, 85, 247, 0.75);
    box-shadow:
      0 0 100px rgba(168, 85, 247, 0.3),
      0 28px 64px rgba(0, 0, 0, 0.6);
  }
}

.about-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

@media (max-width: 680px) {
  .about-inner {
    flex-direction: column;
  }
  .about-photo-wrap {
    width: min(240px, 65vw);
    margin-inline: auto;
  }
}

.about-quote {
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin-block: 1.5rem 2rem;
  letter-spacing: -0.01em;
}

.about-body {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.accent-chip {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--line-solid);
  border-radius: 5px;
  font-size: 0.78rem;
  color: var(--accent-3);
  margin: 0 0.1rem;
}

/* =============================================================
   12b. FAQ
   ============================================================= */
.faq {
  padding-block: 3rem 4rem;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faq-list {
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding-block: 1.1rem;
}

.faq-item:last-of-type {
  border-bottom: none;
}

.faq-item summary {
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  padding-right: 0.25rem;
  transition: color 0.25s var(--ease-out);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

@media (hover: hover) {
  .faq-item summary:hover { color: var(--accent-3); }
}

.faq-item p {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 64ch;
}

/* =============================================================
   13. Contact
   ============================================================= */
.contact {
  padding-block: 3.5rem;
  text-align: center;
  position: relative;
  overflow: clip;
}

.contact::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(109, 40, 217, 0.2), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
}

.contact-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--ink);
  margin-block: 0.75rem 1.5rem;
  line-height: 1.1;
}
.contact-title em {
  font-style: italic;
  color: var(--accent-3);
}

.contact-email {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(1rem, 2.8vw, 1.65rem);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s;
}

.contact-email::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

@media (hover: hover) {
  .contact-email:hover { color: var(--accent-3); }
  .contact-email:hover::after { width: 100%; }
}

.contact-note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-mute);
}

/* =============================================================
   14. Footer
   ============================================================= */
.footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}

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

.footer-brand {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.footer-tag {
  font-size: 0.78rem;
  color: var(--ink-mute);
}

.footer-email {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
  transition: color 0.2s;
}
@media (hover: hover) {
  .footer-email:hover { color: var(--accent); }
}

/* =============================================================
   15. Reveal animations (JS adds .is-visible)
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

/* =============================================================
   16. Responsive adjustments
   ============================================================= */
@media (min-width: 720px) {
  .hero-title { max-width: 18ch; }
}

@media (min-width: 960px) {
  /* In 2-column layout, title must fit the left column */
  .hero-title {
    font-size: clamp(2.8rem, 4.5vw, 5.5rem);
    max-width: none;
  }
}

@media (max-width: 540px) {
  .hero-ctas { flex-direction: column; }
  .btn { justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .footer-tag { display: none; }
}

/* =============================================================
   17. Reduced-motion — ONLY intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  /* DO NOT disable: hover, tilt, fade, mesh, count-up, cursor */
}

/* =============================================================
   18. Contact form
   ============================================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 560px;
  margin-inline: auto;
  text-align: left;
  margin-top: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: #1e1838;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-mute);
  opacity: 0.55;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.form-submit {
  align-self: center;
  min-width: 210px;
  justify-content: center;
}

.form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin-top: -0.25rem;
}

/* Success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3.5rem 1rem;
  text-align: center;
}

.form-success:not([aria-hidden="true"]) { display: flex; }

.form-success-icon {
  width: 54px; height: 54px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.form-success-title {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

.form-success-body {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 36ch;
  line-height: 1.65;
}

.form-success-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
