/* Aether Labs — site institucional.
   Fundo: o preto absoluto do "éter". Cada produto mantém a própria cor; a Aether Labs é a luz branca que se divide
   nelas (o prisma do topo da página). Uma família tipográfica: Familjen Grotesk. */

:root {
  --void: #000000;
  --air: #080a12;            /* brilho frio quase imperceptível no alto da página */
  --paper: #eceef2;
  --mist: #8d909b;
  --dim: #5b5e69;
  --hair: #1b1c23;
  --orchestra: #ff1a1a;
  --orchestra-deep: #7a0000;
  --cosmo-a: #8b5cf6;
  --cosmo-b: #22d3ee;
  --all: #ff1f4b;
  --all-wine: #6b1530;

  --font: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;
  /* escala 1,25 */
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.25rem;
  --t-lg: 1.5625rem;
  --t-xl: 1.953rem;
  --t-2xl: 2.441rem;
  --t-hero: clamp(2.6rem, 6.2vw, 4.77rem);

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --product: var(--paper);  /* cor do produto da página atual */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  background-image: radial-gradient(120% 60% at 50% -10%, var(--air), var(--void) 60%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.55;
  font-feature-settings: "ss01", "kern";
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 64ch; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: var(--t-hero); letter-spacing: -0.035em; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); letter-spacing: -0.015em; }

:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); color: var(--void); padding: .5rem .8rem; z-index: 10; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--mist); }

/* ---------------------------------------------------------------- navegação */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(0, 0, 0, .72); backdrop-filter: blur(14px);
       border-bottom: 1px solid var(--hair); }
.nav .wrap { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 600; font-size: 1.06rem;
         letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { text-decoration: none; color: var(--mist); font-size: .95rem; transition: color .15s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--paper); }
.nav .btn { padding: .55rem 1rem; font-size: .92rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--hair); color: var(--paper);
               border-radius: 8px; padding: .45rem .7rem; font: inherit; }

/* ---------------------------------------------------------------- botões */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.35rem; border-radius: 999px;
       font: 600 1rem var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent;
       transition: background .15s, border-color .15s, color .15s; }
.btn-light { background: var(--paper); color: var(--void); }
.btn-light:hover { background: #ffffff; }
.btn-line { border-color: #34363f; color: var(--paper); background: transparent; }
.btn-line:hover { border-color: var(--paper); }
.btn svg { width: 18px; height: 18px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------------------------------------------------------------- hero com o prisma */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem);
              align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lede { font-size: var(--t-md); color: var(--mist); margin: 1.4rem 0 2rem; max-width: 34ch; line-height: 1.45; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.prism { width: 100%; height: auto; overflow: visible; }
.prism .beam-in { stroke: var(--paper); stroke-width: 2.5; stroke-linecap: round; }
.prism .glass { fill: rgba(236, 238, 242, .035); stroke: var(--paper); stroke-width: 1.6; stroke-linejoin: round; }
.prism .ray { stroke-width: 7; stroke-linecap: round; fill: none; mix-blend-mode: screen; }
.prism .ray-glow { stroke-width: 22; stroke-linecap: round; fill: none; opacity: .22; filter: blur(8px); }
.prism a { text-decoration: none; }
.prism .label { fill: var(--paper); font: 600 22px var(--font); letter-spacing: -0.01em; }
.prism .sub { fill: var(--mist); font: 400 13.5px var(--font); }
.prism a:hover .label, .prism a:focus-visible .label { fill: #ffffff; }
.prism a:focus-visible { outline: none; }
.prism a:focus-visible .label { text-decoration: underline; }
.prism a .end { transition: r .2s; }
.prism a:hover .end { r: 9; }

/* único momento de animação: a luz entra, atravessa o prisma e se divide */
@media (prefers-reduced-motion: no-preference) {
  .prism .beam-in { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw .7s .15s ease-in forwards; }
  .prism .glass { opacity: 0; animation: appear .5s .55s ease-out forwards; }
  .prism .ray, .prism .ray-glow { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1s .85s cubic-bezier(.2,.7,.2,1) forwards; }
  .prism .ray:nth-of-type(2), .prism .ray-glow:nth-of-type(2) { animation-delay: .95s; }
  .prism .ray:nth-of-type(3), .prism .ray-glow:nth-of-type(3) { animation-delay: 1.05s; }
  .prism .tag { opacity: 0; animation: appear .6s 1.55s ease-out forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* ---------------------------------------------------------------- seções */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; align-items: end;
                margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { color: var(--mist); font-size: var(--t-md); line-height: 1.45; margin: 0; }

/* produtos: faixas, cada uma na cor do produto */
.products { border-top: 1px solid var(--hair); }
.product { --c1: var(--paper); --c2: var(--paper); position: relative; display: grid;
           grid-template-columns: 72px minmax(0, 4fr) minmax(0, 5fr) auto; gap: clamp(1rem, 3vw, 2.5rem);
           align-items: start; padding: 2.4rem 0; border-bottom: 1px solid var(--hair); }
.product::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
                   background: linear-gradient(90deg, var(--c1), var(--c2) 35%, transparent 70%); opacity: .9; }
.product.orchestra { --c1: var(--orchestra); --c2: var(--orchestra-deep); }
.product.cosmo { --c1: var(--cosmo-a); --c2: var(--cosmo-b); }
.product.all { --c1: var(--all); --c2: var(--all-wine); }
.product img { width: 72px; height: 72px; border-radius: 18px; }
.product h3 { margin-bottom: .45rem; }
.product .what { color: var(--mist); margin: 0; }
.product ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.product li { padding-left: 1.1rem; position: relative; color: #c9cbd2; }
.product li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%;
                      background: linear-gradient(135deg, var(--c1), var(--c2)); }
.product .more { align-self: center; white-space: nowrap; }

/* como começar: sequência real, então numerada */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
         gap: clamp(1.5rem, 4vw, 3rem); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid #2a2c35; padding-top: 1.4rem; }
.steps li::before { content: counter(step); display: block; font-size: var(--t-2xl); font-weight: 600; line-height: 1;
                    margin-bottom: 1rem; color: var(--dim); }
.steps h3 { font-size: var(--t-md); margin-bottom: .5rem; }
.steps p { color: var(--mist); margin: 0; }

/* download */
.download { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.download .facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 1.5rem 0 2rem; }
.download dt { color: var(--dim); }
.download dd { margin: 0; color: #c9cbd2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.download .note { font-size: var(--t-sm); color: var(--mist); border-left: 2px solid var(--all); padding: .2rem 0 .2rem .9rem; max-width: 52ch; }
.shot { border-radius: 14px; border: 1px solid #262833; box-shadow: 0 30px 80px -30px rgba(255, 31, 75, .35); }

/* páginas de produto */
.page-hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem); }
.page-hero .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.25rem); align-items: center; }
.page-hero img { width: clamp(72px, 10vw, 112px); height: auto; border-radius: 26px; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.page-hero .lede { font-size: var(--t-md); color: var(--mist); margin: .8rem 0 0; max-width: 46ch; line-height: 1.45; }
.accent-line { height: 2px; background: linear-gradient(90deg, var(--c1, var(--paper)), var(--c2, var(--paper)) 40%, transparent 85%); }
body.p-orchestra { --c1: var(--orchestra); --c2: var(--orchestra-deep); }
body.p-cosmo { --c1: var(--cosmo-a); --c2: var(--cosmo-b); }
body.p-all { --c1: var(--all); --c2: var(--all-wine); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 6vw, 5rem); }
.features h3 { font-size: var(--t-md); margin-bottom: .5rem; }
.features p { color: var(--mist); margin: 0; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair);
         border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.modes div { background: var(--void); padding: 1.6rem 1.5rem; }
.modes b { display: block; font-size: var(--t-md); margin-bottom: .2rem; }
.modes span { color: var(--mist); }
.req { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; margin: 0; }
.req dt { color: var(--dim); }
.req dd { margin: 0; color: #c9cbd2; }
.cta-band { border-top: 1px solid var(--hair); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between; }
.cta-band p { margin: 0; color: var(--mist); }

/* sobre */
.prose { max-width: 64ch; }
.prose-indent { margin-left: calc(clamp(72px, 10vw, 112px) + clamp(1.25rem, 3vw, 2.25rem)); }
.prose p { font-size: 1.075rem; color: #c9cbd2; }
.prose h2 { margin: 2.5rem 0 1rem; font-size: var(--t-xl); }

/* rodapé */
footer { border-top: 1px solid var(--hair); padding: 2.5rem 0 3rem; color: var(--dim); font-size: var(--t-sm); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
footer a { text-decoration: none; color: var(--mist); }
footer a:hover { color: var(--paper); }

/* ---------------------------------------------------------------- telas menores */
[hidden] { display: none !important; }

/* conta */
.account { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 9vw, 7rem); }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.account-intro img { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 1.6rem; }
.account-intro h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.account-intro .lede { font-size: var(--t-md); color: var(--mist); margin: .8rem 0 1rem; max-width: 40ch; line-height: 1.45; }
.account-card { background: var(--air); border: 1px solid var(--hair); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.account-card h2 { font-size: var(--t-lg); margin: 0 0 1.2rem; }
.account-card form { display: grid; gap: .7rem; }
.account-card label { font-weight: 600; font-size: .95rem; margin-top: .3rem; }
.account-card input { font: 500 1.05rem var(--font); color: var(--paper); background: var(--void); border: 1px solid #2c2e38;
  border-radius: 12px; padding: .85rem 1rem; width: 100%; }
.account-card input#f-code { font-size: 1.6rem; letter-spacing: .35em; text-align: center; }
.account-card input:focus { outline: none; border-color: var(--cosmo-b); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
.account-card .btn { justify-content: center; margin-top: .4rem; }
.account-card .btn:disabled { opacity: .55; cursor: progress; }
.account-card .facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; margin: 0 0 1.2rem; }
.account-card dt { color: var(--dim); }
.account-card dd { margin: 0; color: #c9cbd2; overflow-wrap: anywhere; }
.account-card .note { font-size: var(--t-sm); color: var(--paper); border-left: 2px solid var(--cosmo-b); padding: .2rem 0 .2rem .9rem; margin: 0; }
.form-error { color: #ff8a8a; margin: .2rem 0 0; }
.form-links { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin: .6rem 0 0; }
.link { background: none; border: 0; padding: 0; font: 500 .95rem var(--font); color: var(--mist); text-decoration: underline; cursor: pointer; }
.link:hover { color: var(--paper); }

@media (max-width: 960px) {
  .hero .wrap, .section-head, .download { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .product { grid-template-columns: 56px minmax(0, 1fr); }
  .product img { width: 56px; height: 56px; border-radius: 14px; }
  .product ul, .product .more { grid-column: 2; }
  .product .more { justify-self: start; }
  .steps, .features { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav .wrap { flex-wrap: wrap; height: auto; padding-top: .8rem; padding-bottom: .8rem; }
  .nav ul, .nav .nav-cta { display: none; width: 100%; }
  .nav.open ul { display: grid; gap: .9rem; margin: .6rem 0 .2rem; }
  .nav.open .nav-cta { display: inline-flex; width: auto; margin-bottom: .4rem; }
  .page-hero .wrap { grid-template-columns: 1fr; }
  .prism .sub { display: none; }
  .prose-indent { margin-left: 0; }
  .account-grid { grid-template-columns: 1fr; }
  .prism .label { font-size: 30px; }
}
