/* Avioonys — "Eyespot" design system
   Deep teal-emerald base, bronze-gold foil, violet-blue shimmer. */

:root {
  --abyss: #041b1d;
  --deep: #062a2a;
  --teal: #0a3634;
  --teal-2: #0f4642;
  --emerald: #1f8a7a;
  --bronze: #b9823a;
  --bronze-lt: #e2b76b;
  --bronze-dk: #7c4f1d;
  --violet: #7b74e0;
  --violet-lt: #a9a3f2;
  --ivory: #f2ecdc;
  --mist: #b3c6bf;
  --mist-2: #86a19a;
  --garnet: #9b2335;
  --line: rgba(226, 183, 107, .22);
  --foil: linear-gradient(118deg, #7c4f1d 0%, #e2b76b 22%, #b9823a 44%, #f0d49a 62%, #9a6428 82%, #e2b76b 100%);
  --sheen: linear-gradient(90deg, transparent 0%, #1f8a7a 18%, #7b74e0 50%, #1f8a7a 82%, transparent 100%);
  --eyespot: url("/av-assets/img/eyespot.svg");
  --display: "Forum", "Didot", Georgia, serif;
  --body: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --curve: 56px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--abyss);
  background-image:
    radial-gradient(120% 60% at 85% -10%, rgba(123, 116, 224, .16), transparent 60%),
    radial-gradient(90% 50% at 0% 0%, rgba(31, 138, 122, .22), transparent 65%);
  background-repeat: no-repeat;
  color: var(--ivory);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--bronze-lt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--violet-lt); }
:focus-visible { outline: 2px solid var(--violet-lt); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.05em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.kicker {
  font: 600 .78rem/1.3 var(--body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze-lt);
  margin: 0 0 .9rem;
}
.lede { font-size: 1.2rem; color: var(--mist); max-width: 60ch; }
.muted { color: var(--mist); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Signature devices ---------- */

/* Shimmering teal-to-violet divider */
.sheen {
  height: 1px; border: 0; margin: 0;
  background: var(--sheen);
  background-size: 200% 100%;
  animation: sheen-drift 10s linear infinite;
}
.sheen--mark { position: relative; overflow: visible; margin-block: clamp(40px, 6vw, 72px); }
.sheen--mark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 22px; height: 28px; transform: translate(-50%, -52%);
  background: var(--abyss) var(--eyespot) center / 18px auto no-repeat;
  box-shadow: 0 0 0 10px var(--abyss);
}
@keyframes sheen-drift { to { background-position: -200% 0; } }

/* Bronze-foil curved edge on key panels */
.foil {
  position: relative;
  background: linear-gradient(160deg, var(--teal-2), var(--teal) 55%, var(--deep));
  border-radius: 6px var(--curve) 6px 6px;
  isolation: isolate;
}
.foil::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--foil);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none; z-index: 2;
}
.foil::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: calc(var(--curve) + 26px); height: calc(var(--curve) + 26px);
  border-top-right-radius: var(--curve);
  border-top: 4px solid var(--bronze-lt);
  border-right: 4px solid var(--bronze-lt);
  -webkit-mask: linear-gradient(225deg, #000 30%, transparent 70%);
  mask: linear-gradient(225deg, #000 30%, transparent 70%);
  pointer-events: none; z-index: 2;
}

/* Eye-spot emblem behind numerals */
.eyenum {
  position: relative; display: inline-grid; place-items: center;
  min-width: 2.2em; font-family: var(--display); line-height: 1;
}
.eyenum::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
  width: 1.9em; height: 2.45em; transform: translate(-50%, -54%);
  background: var(--eyespot) center / contain no-repeat;
  opacity: .32;
}

/* ---------- Buttons ---------- */
.btn {
  --b: var(--bronze-lt);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6em 1.35em;
  font: 600 .98rem/1 var(--body); letter-spacing: .02em;
  color: #1a1206; background: var(--foil); background-size: 180% 100%;
  border: 0; border-radius: 999px 999px 999px 6px;
  text-decoration: none; cursor: pointer;
  transition: background-position .5s ease, transform .15s ease, opacity .2s;
}
.btn:hover { background-position: 100% 0; color: #1a1206; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  color: var(--ivory); background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { color: var(--ivory); box-shadow: inset 0 0 0 1px var(--violet-lt); background: rgba(123,116,224,.1); }
.btn[disabled] { opacity: .38; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 27, 29, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sheen); background-size: 200% 100%; animation: sheen-drift 14s linear infinite; }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); margin-right: auto; }
.brand:hover { color: var(--ivory); }
.brand-mark { width: 26px; height: 34px; background: var(--eyespot) center / contain no-repeat; flex: none; }
.brand-word { font: 400 1.6rem/1 var(--display); letter-spacing: .06em; }
.primary { display: flex; gap: 4px; }
.primary a {
  position: relative; padding: .55em .9em; border-radius: 999px;
  color: var(--mist); text-decoration: none; font-weight: 500; font-size: .98rem;
}
.primary a:hover { color: var(--ivory); background: rgba(31,138,122,.16); }
.primary a[aria-current="page"] { color: var(--ivory); }
.primary a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 7px; height: 9px;
  transform: translateX(-50%); background: var(--eyespot) center / contain no-repeat;
}
.age-pill {
  flex: none; font: 700 .8rem/1 var(--body); letter-spacing: .08em;
  padding: .5em .7em; border-radius: 999px;
  color: var(--bronze-lt); box-shadow: inset 0 0 0 1px var(--bronze);
}
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .head-row { gap: 12px; min-height: 64px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px;
    font: 600 .92rem/1 var(--body); color: var(--ivory); cursor: pointer;
    background: rgba(31,138,122,.2); box-shadow: inset 0 0 0 1px var(--line);
  }
  .nav-toggle::after { content: ""; width: 12px; height: 15px; background: var(--eyespot) center / contain no-repeat; transition: transform .3s; }
  .nav-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
  .primary {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
    flex-direction: column; gap: 0; padding: 14px 18px 18px;
    background: linear-gradient(170deg, var(--teal-2), var(--deep));
    border-radius: 6px 6px 6px var(--curve);
    box-shadow: 0 0 0 1.5px var(--bronze), 0 24px 60px rgba(0,0,0,.55);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .primary.is-open { opacity: 1; transform: none; visibility: visible; }
  .primary a {
    display: flex; align-items: center; gap: 14px;
    font: 400 1.5rem/1.2 var(--display); color: var(--ivory);
    padding: .6em .2em; border-radius: 0; border-bottom: 1px solid var(--line);
  }
  .primary a:last-child { border-bottom: 0; }
  .primary a::before { content: ""; width: 12px; height: 16px; background: var(--eyespot) center / contain no-repeat; opacity: .55; flex: none; }
  .primary a[aria-current="page"]::before { opacity: 1; }
  .primary a[aria-current="page"]::after { display: none; }
}
@media (max-width: 420px) {
  .brand-word { font-size: 1.3rem; }
  .brand-mark { width: 20px; height: 27px; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }

/* Home hero */
.hero { padding-block: clamp(36px, 5vw, 68px) clamp(48px, 7vw, 88px); }
.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 280px);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.hero-copy { padding-top: 12px; }
.hero-copy h1 em { font-style: normal; background: linear-gradient(95deg, var(--bronze-lt), var(--violet-lt) 70%, #7fd6c6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-points { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: .75rem; }
.hero-points li { display: flex; gap: 12px; align-items: baseline; color: var(--mist); }
.hero-points li::before { content: ""; flex: none; width: 10px; height: 13px; background: var(--eyespot) center / contain no-repeat; transform: translateY(2px); }
.hero-points strong { color: var(--ivory); font-weight: 600; }
.age-notice {
  display: flex; gap: 16px; align-items: center;
  margin-top: 1.6rem; padding: 16px 18px;
  border-radius: 6px 6px 6px 28px;
  background: rgba(123,116,224,.1); box-shadow: inset 0 0 0 1px rgba(169,163,242,.3);
  font-size: .95rem; color: var(--mist);
}
.age-notice b { font: 400 1.8rem/1 var(--display); color: var(--violet-lt); flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-visual { margin: 0; width: min(100%, 280px); justify-self: end; }
.hero-visual a, .hero-visual img { display: block; width: 100%; height: auto; }
.hero-visual img {
  border-radius: 14px;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.65), 0 0 0 1px var(--line);
}
.hero-game { max-width: 920px; margin: 0 auto; }

@media (max-width: 900px) {
  .hero-intro { grid-template-columns: 1fr; gap: 22px; }
  .hero-visual { justify-self: start; width: min(100%, 240px); }
}

/* Three numbers */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.number { padding: 30px 26px 26px; border-top: 1px solid var(--line); }
.number .eyenum { font-size: clamp(2.8rem, 5vw, 3.8rem); color: var(--bronze-lt); margin: 12px 0 18px; }
.number h3 { margin-bottom: .35em; }
.number p { color: var(--mist); margin: 0; }
@media (max-width: 760px) { .numbers { grid-template-columns: 1fr; gap: 8px; } }

/* Split prose + panel */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split .prose p { color: var(--mist); }
.panel { padding: clamp(24px, 3.4vw, 38px); }
.panel h3 { color: var(--ivory); }
.panel ul { margin: 0 0 1.4rem; padding: 0; list-style: none; }
.panel li { padding: .55em 0; border-bottom: 1px solid var(--line); color: var(--mist); font-size: .98rem; }
.panel li:last-child { border-bottom: 0; }
.panel li b { color: var(--ivory); font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Trust strip */
.trust { background: linear-gradient(90deg, rgba(31,138,122,.14), rgba(123,116,224,.12)); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 28px 22px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; font: 400 1.35rem/1.2 var(--display); margin-bottom: .35em; color: var(--ivory); }
.trust-item span { color: var(--mist); font-size: .95rem; }
@media (max-width: 860px) {
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .trust-row { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid var(--line); padding-inline: 4px; }
  .trust-item:first-child { border-top: 0; }
}

/* Inner page head */
.page-head { padding-block: clamp(44px, 7vw, 92px) clamp(28px, 4vw, 48px); }
.page-head h1 { max-width: 18ch; }

/* Long-form text pages */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); }
.doc-side { position: sticky; top: 100px; align-self: start; font-size: .92rem; color: var(--mist-2); }
.doc-side .eyenum { font-size: 2.6rem; color: var(--bronze-lt); margin-bottom: 14px; }
.doc-body { max-width: 70ch; }
.doc-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.6em; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: var(--mist); }
.doc-body ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.doc-body ul li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.doc-body ul li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 13px; background: var(--eyespot) center / contain no-repeat; }
.doc-body strong { color: var(--ivory); }
.callout-box { margin: 1.8em 0; padding: 22px 24px; }
.callout-box p:last-child { margin-bottom: 0; }
@media (max-width: 820px) {
  .doc { grid-template-columns: 1fr; }
  .doc-side { position: static; display: flex; gap: 16px; align-items: center; }
  .doc-side .eyenum { margin: 0; }
}

/* FAQ (all answers visible) */
.faq { margin: 0; }
.faq div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq dt { font: 400 1.35rem/1.25 var(--display); color: var(--ivory); margin-bottom: .45em; }
.faq dd { margin: 0; color: var(--mist); }
.contact-card { padding: clamp(24px, 3.4vw, 36px); margin-top: 2.2em; }
.contact-card .mail { font: 400 clamp(1.4rem, 3vw, 1.9rem)/1.2 var(--display); word-break: break-all; }

/* ---------- Footer ---------- */
.site-foot { margin-top: 0; background: var(--deep); position: relative; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--sheen); }
.foot-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: clamp(28px, 4vw, 56px); padding-block: 56px 40px; }
.foot-grid h2 { font-size: 1.25rem; color: var(--bronze-lt); margin-bottom: .8em; }
.foot-grid p { color: var(--mist); font-size: .95rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.foot-links a { color: var(--ivory); text-decoration: none; }
.foot-links a:hover { color: var(--violet-lt); text-decoration: underline; }
.foot-age { display: flex; gap: 14px; align-items: flex-start; }
.foot-age .badge {
  flex: none; display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 50% 50% 50% 8px; font: 400 1.35rem/1 var(--display);
  color: #1a1206; background: var(--foil);
}
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding-block: 20px 28px; border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--mist-2);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
