/* ==========================================================================
   Ararlab — design tokens
   ========================================================================== */
:root {
  --ink: #14161a;
  --ink-2: #1d2026;
  --ink-3: #2a2e36;
  --paper: #f4f1ea;
  --paper-2: #fbfaf6;
  --line: rgba(20, 22, 26, 0.1);
  --line-dark: rgba(244, 241, 234, 0.12);
  --muted: #5d6068;
  --muted-dark: #a7a9ae;
  --apricot: #f07a3c;
  --apricot-deep: #c95a1f;

  /* product accents */
  --bragi-night: #15251f;
  --bragi-gold: #e7ae48;
  --bragi-bone: #ece7d8;
  --eegoo: #5b4b8a;
  --eegoo-soft: #ece8f6;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 18px 50px -20px rgba(20, 22, 26, 0.35);
  --wrap: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--serif); line-height: 1.02; }
h1 { font-size: clamp(3rem, 6.6vw, 5.6rem); }
h2 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h1 em, h2 em { font-style: italic; color: var(--apricot-deep); }
h3 { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.78rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--apricot); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); font-weight: 500; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--bg);
  background: var(--bg); color: var(--fg);
  font: 600 0.98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--gold { --bg: var(--bragi-gold); --fg: var(--bragi-night); }
.btn--violet { --bg: var(--eegoo); --fg: #fff; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: color 0.15s; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform 0.25s ease; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__art { position: relative; }
.peaks { width: 100%; height: auto; }
.peaks .line { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.2s 0.3s cubic-bezier(.6,.1,.2,1) forwards; }
.peaks .sun { transform-origin: 330px 96px; animation: rise 1.6s 1.2s ease-out both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { transform: translateY(60px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: var(--paper-2); box-shadow: var(--shadow);
  font-weight: 700; font-size: 0.95rem; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip b { font: 500 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--apricot-deep); }
.chip b.muted { color: var(--eegoo); }
.chip--a { left: 0; top: 18%; }
.chip--b { right: 0; bottom: 6%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.eegoo-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--eegoo); box-shadow: inset 0 0 0 5px #8c7cc0; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 56px; border-top: 1px solid var(--line);
}
.stats > div { padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 4px; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats strong { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 0.92rem; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 120px 0; }
.section__head { margin-bottom: 56px; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .eyebrow { color: var(--muted-dark); }
.section--dark h2 em { color: var(--apricot); }

/* ==========================================================================
   Product cards
   ========================================================================== */
.product {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
  padding: 56px; border-radius: var(--r-lg); margin-bottom: 32px; overflow: hidden;
  position: relative;
}
.product__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font: 500 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { to { transform: scale(2.8); opacity: 0; } }

.product__title { display: flex; align-items: center; gap: 16px; margin: 24px 0 8px; }
.product__title h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -0.02em; }
.product__tag { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.2; margin-bottom: 20px; }

.features { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.features li { position: relative; padding-left: 28px; font-size: 0.98rem; }
.features li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 2px; background: currentColor; opacity: 0.5; }
.product__cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.platforms { font: 500 0.8rem/1 var(--mono); letter-spacing: 0.06em; opacity: 0.7; }

/* Bragi — borrows its own Feast Hall palette */
.product--bragi { background: var(--bragi-night); color: var(--bragi-bone); }
.product--bragi::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -180px;
  background: radial-gradient(circle, rgba(231, 174, 72, 0.22), transparent 65%); pointer-events: none;
}
.product--bragi .product__badge { background: rgba(231, 174, 72, 0.14); color: var(--bragi-gold); }
.product--bragi .product__tag { color: var(--bragi-gold); }
.product--bragi p:not(.product__tag) { color: #bcc9c0; }
.product--bragi .features b { color: var(--bragi-bone); }
.product--bragi .features { color: #bcc9c0; }

.product__media { position: relative; }
.device {
  margin: 0; border-radius: 14px; overflow: hidden; background: #0e1914;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(236, 231, 216, 0.1);
}
.device__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1e342b; }
.device__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(236, 231, 216, 0.25); }
.device__bar span { margin-left: 12px; font: 400 0.72rem/1 var(--mono); color: rgba(236, 231, 216, 0.55); }
.device--float {
  position: absolute; width: 58%; right: -48px; bottom: -64px;
  transform: rotate(-3deg); border: 4px solid #1e342b;
}

/* eegoo */
.product--eegoo { background: var(--paper-2); border: 1px solid var(--line); }
.product--eegoo .product__badge { background: var(--eegoo-soft); color: var(--eegoo); }
.product--eegoo .product__tag { color: var(--eegoo); }
.product--eegoo p:not(.product__tag):not(.fine) { color: var(--muted); }
.eegoo-logo {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--eegoo); color: #fff; font: 700 1.9rem/1 var(--sans); padding-bottom: 4px;
}
.notify { display: flex; gap: 8px; max-width: 460px; }
.notify input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 0.95rem; color: var(--ink);
}
.notify input:focus { outline: none; border-color: var(--eegoo); }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

.booking {
  background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow);
  border: 1px solid var(--line); position: relative;
}
.booking__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.booking__head .mono { display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 4px; }
.booking__head strong { font-size: 1.15rem; }
.tag { white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--eegoo-soft); color: var(--eegoo); font: 600 0.78rem/1 var(--sans); }
.booking__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.col { display: flex; flex-direction: column; gap: 8px; min-height: 300px; padding: 10px; border-radius: 14px; background: #f7f6f2; }
.col__name { font: 600 0.78rem/1 var(--sans); color: var(--muted); padding: 4px 2px 6px; }
.slot { border-radius: 10px; padding: 10px; font-size: 0.78rem; line-height: 1.3; border-left: 3px solid; }
.slot b { display: block; font-size: 0.85rem; margin-bottom: 2px; }
.slot span { color: var(--muted); }
.s1, .s3 { background: #ece8f6; border-color: var(--eegoo); }
.s2 { background: #fdeee4; border-color: var(--apricot); min-height: 78px; }
.s4 { background: #e5f2ea; border-color: #3f8056; min-height: 70px; }
.s5 { background: #e5f2ea; border-color: #3f8056; margin-top: 30px; }
.s6 { background: #ece8f6; border-color: var(--eegoo); min-height: 64px; }
.is-free { border: 1.5px dashed var(--line); border-left-width: 1.5px; background: transparent; margin-top: 20px; }
.is-new { animation: glow 3s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(240, 122, 60, 0.18); } }
.booking__toast {
  position: absolute; left: 24px; right: 24px; bottom: -22px;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 12px;
  font-size: 0.85rem; font-weight: 500; box-shadow: var(--shadow);
}
.booking__toast span { width: 22px; height: 22px; border-radius: 50%; background: var(--apricot); display: grid; place-items: center; font-size: 0.75rem; flex: none; }

.next {
  display: flex; align-items: baseline; gap: 32px; flex-wrap: wrap;
  padding: 32px 56px; border-radius: var(--r-lg); border: 1.5px dashed rgba(20, 22, 26, 0.2);
}
.next .eyebrow { margin: 0; }
.next p:last-child { margin: 0; font-size: 1.1rem; }
.next a { color: var(--apricot-deep); font-weight: 600; }

/* ==========================================================================
   Principles
   ========================================================================== */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.principle { padding: 32px 28px 0 0; }
.principle + .principle { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.principle .num { font: 500 0.8rem/1 var(--mono); color: var(--apricot); display: block; margin-bottom: 40px; }
.principle h3 { margin-bottom: 12px; font-size: 1.2rem; }
.principle p { color: var(--muted-dark); font-size: 0.97rem; }

/* ==========================================================================
   About
   ========================================================================== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.about__body p { font-size: 1.2rem; color: var(--muted); }
.about__body em { font-family: var(--serif); font-size: 1.15em; color: var(--ink); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding-top: 0; }
.contact__inner {
  background: var(--apricot); color: var(--ink); border-radius: var(--r-lg);
  padding: 88px 56px; text-align: center; position: relative; overflow: hidden;
}
.contact__inner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200 L160 20 L250 120 L300 70 L480 200Z' fill='%23000' fill-opacity='.07'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.contact .eyebrow { color: rgba(20, 22, 26, 0.65); }
.contact h2 em { color: var(--paper-2); }
.contact .lead { margin: 20px auto 40px; color: rgba(20, 22, 26, 0.75); }
.contact__mail {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1;
  text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 6px;
  transition: gap 0.25s ease;
}
.contact__mail:hover { gap: 26px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: 40px 0 48px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; color: var(--muted); font-size: 0.92rem; }
.footer nav a:hover { color: var(--ink); }
.copy { margin: 0; color: var(--muted); font-size: 0.85rem; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .product { grid-template-columns: 1fr; padding: 40px; gap: 64px; }
  .device--float { right: -16px; width: 50%; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle { padding-bottom: 32px; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .mobile-menu {
    display: grid; overflow: hidden; max-height: 0; transition: max-height 0.3s ease;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .mobile-menu.is-open { max-height: 320px; }
  .mobile-menu a { padding: 16px 24px; text-decoration: none; font-weight: 600; border-top: 1px solid var(--line); }

  .hero { padding-top: 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__art { max-width: 460px; margin-inline: auto; width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stats > div { padding: 18px 0; }

  .section { padding: 80px 0; }
  .product { padding: 28px; border-radius: 22px; }
  .booking__cols { grid-template-columns: 1fr 1fr; }
  .booking__cols .col:nth-child(3) { display: none; }
  .device--float { display: none; }
  .next { padding: 28px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .principle .num { margin-bottom: 16px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .contact__inner { padding: 64px 24px; }
  .notify { flex-direction: column; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .peaks .line { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
