/* GTA landing: the Anecdotes brand (navy, blurred brand shapes, Merriweather + Mulish).
   Colors and fonts are the brand guidelines' exact values. Fonts are Latin subsets in WOFF2. */

@font-face { font-family: "Merriweather"; src: url("/fonts/Merriweather-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("/fonts/Merriweather-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("/fonts/Merriweather-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/fonts/mulish-v18-latin-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/fonts/mulish-v18-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/fonts/mulish-v18-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #031926;
  --white: #ffffff;
  --blue: #00dce8;
  --pink: #ff3499;
  --orange: #ffa84f;
  --ink-soft: rgba(255, 255, 255, 0.74);
  --ink-faint: rgba(255, 255, 255, 0.46);
  --line: rgba(192, 205, 212, 0.2);
  --gutter: clamp(20px, 6vw, 96px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --serif: "Merriweather", Georgia, serif;
  --sans: "Mulish", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--navy); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--navy); color: var(--white);
  font-family: var(--sans); font-size: clamp(17px, 1.15vw, 19px); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }

/* Two-color brand blends on a word or two (never the three-color gradient on text). */
.grad-pink-blue, .grad-orange-pink, .grad-orange-blue { -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; }
.grad-pink-blue { background-image: linear-gradient(90deg, var(--pink), var(--blue), var(--pink)); }
.grad-orange-pink { background-image: linear-gradient(90deg, var(--orange), var(--pink), var(--orange)); }
.grad-orange-blue { background-image: linear-gradient(90deg, var(--orange), var(--blue), var(--orange)); }
.moving .grad-pink-blue, .moving .grad-orange-pink, .moving .grad-orange-blue { animation: sheen 8s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }

/* The blurred brand shapes, fixed behind the page, drifting slowly. */
.atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.shape { position: absolute; overflow: visible; }
.drift-a { transform: rotate(18deg); } .drift-b { transform: rotate(-24deg); } .drift-c { transform: rotate(40deg); }
.moving .drift-a { animation: drift-a 26s ease-in-out infinite alternate; }
.moving .drift-b { animation: drift-b 32s ease-in-out infinite alternate; }
.moving .drift-c { animation: drift-c 22s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: rotate(18deg); } to { transform: rotate(40deg) translate(-6vw, 7vh); } }
@keyframes drift-b { from { transform: rotate(-24deg); } to { transform: rotate(-4deg) translate(7vw, -10vh); } }
@keyframes drift-c { from { transform: rotate(40deg); } to { transform: rotate(12deg) translate(-8vw, -6vh); } }

header, main, footer { position: relative; z-index: 1; }

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  background: linear-gradient(180deg, rgba(3, 25, 38, 0.94), rgba(3, 25, 38, 0));
}
.logo img { display: block; width: clamp(140px, 13vw, 180px); height: auto; }

/* Buttons: uppercase Mulish Bold. The primary is the brightest thing on the screen. */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 19px 36px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  isolation: isolate;
}
.button.primary { color: var(--navy); background: var(--white); box-shadow: 0 10px 40px rgba(0, 220, 232, 0.18); }
.button.primary::before {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; z-index: -1;
  background: linear-gradient(90deg, var(--blue), var(--pink) 72%, var(--orange));
  opacity: 0.55; filter: blur(16px); transition: opacity 0.3s;
}
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(255, 52, 153, 0.25); }
.button.primary:hover::before { opacity: 0.95; }
.button.big { padding: 24px 54px; font-size: 16px; }

/* Hero: the headline, one sentence, one action, one signal. */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 104px var(--gutter) 64px; }
.headline {
  font-family: var(--serif); font-weight: 700; letter-spacing: 0;
  font-size: clamp(42px, min(6.8vw, 11.5vh), 124px); line-height: 1.04;
  margin: 0; max-width: 16ch; text-wrap: balance;
}
.headline .word { display: inline-block; }
.moving .headline .word { opacity: 0; transform: translateY(0.4em); filter: blur(8px); animation: rise 0.95s var(--ease) forwards; animation-delay: calc(0.15s + var(--i) * 0.055s); }
.moving .headline .grad-pink-blue { animation: rise 0.95s var(--ease) forwards, sheen 8s linear 1.6s infinite; animation-delay: calc(0.15s + var(--i) * 0.055s), 1.6s; }
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }
.lede { max-width: 50ch; margin: clamp(22px, 3.2vh, 36px) 0 0; font-size: clamp(18px, 1.45vw, 22px); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(26px, 4vh, 40px); }
.hero-note { margin: 0; max-width: 34ch; font-size: 15px; line-height: 1.5; color: var(--ink-faint); }
.moving .lede, .moving .hero-actions { opacity: 0; transform: translateY(18px); animation: fade-up 0.9s var(--ease) forwards; }
.moving .lede { animation-delay: 0.7s; }
.moving .hero-actions { animation-delay: 0.85s; }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* The signal: one crisp line, drawn once, read by a cursor that sweeps across it. */
.signal { position: relative; margin-top: clamp(28px, 5vh, 56px); height: clamp(56px, 10vh, 110px); }
.signal svg { display: block; width: 100%; height: 100%; overflow: visible; }
.signal-line { fill: none; stroke: url(#sig); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.moving .signal-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.2s var(--ease) 0.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.signal-cursor {
  position: absolute; top: -12%; bottom: -12%; left: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7) 35%, rgba(255, 255, 255, 0.7) 65%, transparent);
  opacity: 0;
}
.moving .signal-cursor { animation: sweep 5.5s cubic-bezier(0.45, 0, 0.55, 1) 3.2s infinite; }
@keyframes sweep { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* Pillars: three short statements, revealed together, fast. */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); padding: clamp(64px, 12vh, 140px) var(--gutter); }
.pillar { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: 0; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.22; }
.pillar-rule { display: block; width: 48px; height: 2px; margin-bottom: 22px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--pink)); transform-origin: left; }
.moving .pillar .pillar-rule { transform: scaleX(0); transition: transform 0.8s var(--ease) calc(var(--d, 0s) + 0.2s); }
.moving .pillar.in .pillar-rule { transform: scaleX(1); }

/* Facts: three numbers that link to where they come from. */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 var(--gutter); }
.fact { display: flex; flex-direction: column; gap: 8px; padding: clamp(28px, 4vh, 44px) clamp(8px, 2vw, 32px); text-decoration: none; border-left: 1px solid var(--line); transition: background 0.3s; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact:hover { background: rgba(255, 255, 255, 0.03); }
.fact strong { font-family: var(--serif); font-weight: 900; font-size: clamp(40px, 4.6vw, 72px); line-height: 1; letter-spacing: 0; }
.fact span { color: var(--ink-soft); font-size: 16px; max-width: 30ch; }

/* Reveal on scroll. */
.moving .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.moving .reveal.in { opacity: 1; transform: none; }

/* Settled: the entrance is over (or never ran); everything above the fold shows. */
html.settled .headline .word, html.settled .lede, html.settled .hero-actions { animation: none; opacity: 1; transform: none; filter: none; }
html.settled .headline .grad-pink-blue { animation: sheen 8s linear infinite; }
html.settled .signal-line { stroke-dashoffset: 0; }

.glass { background: linear-gradient(180deg, rgba(66, 107, 132, 0.2), rgba(151, 192, 217, 0.05)); border: 1px solid rgba(192, 205, 212, 0.24); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28); }

.section-title { font-family: var(--serif); font-weight: 700; letter-spacing: 0; font-size: clamp(32px, 4.2vw, 68px); line-height: 1.1; margin: 0; max-width: 22ch; text-wrap: balance; }
.section-title.small { font-size: clamp(28px, 3vw, 46px); }

.changes { padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(40px, 8vh, 80px); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(36px, 6vh, 64px); }
.card { padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 26px; transition: transform 0.4s var(--ease), border-color 0.4s; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.4); }
.card p { margin: 0; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.5; }

.built { padding: clamp(80px, 14vh, 160px) var(--gutter); display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.built-copy p { color: var(--ink-soft); font-size: clamp(18px, 1.35vw, 21px); max-width: 44ch; margin: 28px 0 36px; }
.built-list h3 { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin: 12px 0 16px; }
.built-list ul { list-style: none; margin: 0; padding: 0; }
.built-list li { position: relative; padding: 20px 0 20px 40px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: clamp(19px, 1.7vw, 26px); line-height: 1.3; }
.built-list li:last-child { border-bottom: 1px solid var(--line); }
.built-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--pink)); }

/* FAQ: native disclosure, so every answer is in the page for readers and answer engines alike. */
.faq { padding: clamp(60px, 10vh, 120px) var(--gutter); display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq .section-title { font-size: clamp(30px, 3.2vw, 52px); position: sticky; top: 110px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 300; line-height: 1; color: var(--ink-soft); transition: transform 0.3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa h3 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 1.5vw, 24px); line-height: 1.35; }
.qa p { margin: 0 0 26px; color: var(--ink-soft); max-width: 62ch; }
.qa p a { color: var(--white); font-weight: 600; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 4px; white-space: nowrap; }

.resources { padding: clamp(40px, 8vh, 100px) var(--gutter); }
.res-list { list-style: none; margin: clamp(28px, 5vh, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.res-list a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease); }
.res-list a:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.03); transform: translateY(-3px); }
.res-list strong { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.3; }
.res-list span { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

.closing { min-height: 80svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 10vh var(--gutter); text-align: center; }
.closing-line { margin: 0; font-family: var(--serif); font-weight: 900; letter-spacing: 0; font-size: clamp(54px, 11vw, 190px); line-height: 0.98; }

.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding: 32px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-faint); }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }

@media (max-width: 1100px) { .res-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .pillars, .facts, .cards, .built, .faq { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .fact:first-child { border-top: 0; }
  .faq .section-title { position: static; }
  .hero-actions .button { width: 100%; }
}
@media (max-width: 560px) { .res-list { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
