/* GOTO Landing — twilight palette (between white and dark)
   Inspired by: Korean dusk + worn paper. Warm dim background, soft ink, generous breathing room. */
:root {
  /* Twilight: deeper than slate, lighter than navy. Warm dusk. */
  --bg:        #2a3447;   /* base — warm slate */
  --bg-2:      #313c52;   /* one step lighter */
  --bg-3:      #38445c;   /* card/panel base */
  --bg-deep:   #1f2738;   /* footer / accent dark */
  --surface:   #3d4a64;   /* surface raised */

  --line:      rgba(245,241,232,0.09);
  --line-2:    rgba(245,241,232,0.16);

  --ink:       #f4ede0;    /* warm cream — readable but not stark white */
  --ink-2:     #d8d0bf;    /* secondary text */
  --muted:     #9ba2b3;    /* tertiary */
  --muted-2:   #707788;    /* labels */

  --accent:      #2ea866;  /* halal green — slightly brighter for twilight bg */
  --accent-soft: #43c483;
  --gold:        #e9b949;
  --gold-soft:   #f3cc6b;
  --kr-red:      #cd2e3a;
  --kr-blue:     #4a8ed3;

  --shadow-1: 0 1px 2px rgba(20,28,44,.2), 0 4px 12px rgba(20,28,44,.18);
  --shadow-2: 0 12px 32px rgba(20,28,44,.28);
  --shadow-3: 0 30px 80px -20px rgba(20,28,44,.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'ss01','cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Subtle ambient gradient on the page itself */
  background:
    radial-gradient(ellipse 1100px 600px at 80% -10%, rgba(233,185,73,0.06), transparent 60%),
    radial-gradient(ellipse 800px 500px at 0% 30%, rgba(46,168,102,0.05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

.serif { font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif; font-optical-sizing: auto; font-variation-settings: "SOFT" 30, "WONK" 0; }
.mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Layout */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font-weight: 500; font-size: 14px; letter-spacing: -0.01em; transition: all .35s cubic-bezier(.2,.8,.2,1); cursor: pointer; border: 1px solid transparent; text-decoration: none; white-space: nowrap; will-change: transform; }
.btn-primary { background: var(--ink); color: var(--bg-deep); }
.btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px -8px rgba(244,237,224,.22); }
.btn-ghost { background: rgba(244,237,224,0.02); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(244,237,224,.05); border-color: rgba(244,237,224,.28); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-soft); }
.btn:active { transform: translateY(0); transition-duration: .1s; }

/* Eyebrow tag */
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(244,237,224,0.03); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-2); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(67,196,131,.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(67,196,131,0); } }

/* Hairline */
.hr { height: 1px; background: var(--line); }

/* Section heading conventions */
.section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 80px 0; } }
.section-eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; }
.section-eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.section-h2 { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.02; letter-spacing: -0.03em; margin: 16px 0 0; max-width: 24ch; text-wrap: balance; }
.section-lede { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 56ch; margin-top: 16px; }

/* Grain overlay — softer for twilight */
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .04; mix-blend-mode: overlay; z-index: 1; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }

/* Reveal animation — buttery cubic */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s cubic-bezier(.16,.84,.32,1), transform 1.1s cubic-bezier(.16,.84,.32,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .9s cubic-bezier(.16,.84,.32,1), transform .9s cubic-bezier(.16,.84,.32,1); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.in > * { opacity: 1; transform: none; }

/* Scroll-driven marquee */
.marquee { display: flex; gap: 64px; white-space: nowrap; animation: scroll 40s linear infinite; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Card — twilight surface */
.card {
  background: linear-gradient(180deg, rgba(244,237,224,0.04), rgba(244,237,224,0.01));
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color .4s cubic-bezier(.2,.8,.2,1), transform .4s cubic-bezier(.2,.8,.2,1), background .4s ease;
  will-change: transform, border-color;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }

/* Selection */
::selection { background: var(--gold); color: var(--bg-deep); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(244,237,224,.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(244,237,224,.18); }

/* Floaty ambient blobs */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -30px) scale(1.05); }
}
@keyframes float-slow-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, 20px) scale(1.07); }
}
.float-blob   { animation: float-slow 14s ease-in-out infinite; }
.float-blob-2 { animation: float-slow-2 18s ease-in-out infinite; }

/* Soft idle hover for phone mocks */
@keyframes idle-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.idle-float { animation: idle-float 6s ease-in-out infinite; }

/* Link underline — for nav hover */
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover { color: var(--gold-soft) !important; }

/* Fraunces variation hover for h1 */
.headline-wonk em { transition: font-variation-settings .8s ease; }
.headline-wonk:hover em { font-variation-settings: "SOFT" 100, "WONK" 1; }

/* Disable animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
