/* FirstCareer EU launch page. Follows Meridian's design rules exactly (assets/meridian/meridian.css):
   the same tokens, aurora sky, sunrise gradients, glass panels, typography, kickers, buttons, nav
   pill and footer. Script-free: the reveal on scroll uses CSS scroll-driven animations where the
   browser supports them, and everything is simply visible where it does not. */
:root {
  --night: #070a1f;
  --night-2: #110b31;
  --magenta: #ff3d8b;
  --coral: #ff7a45;
  --gold: #ffc93c;
  --aqua: #3ef0ff;
  --violet: #8b5cff;
  --lime: #5dffb0;
  --text: #f6f3ff;
  --muted: #aaa6cc;
  --glass: rgba(16, 13, 44, 0.58);
  --edge: rgba(255, 255, 255, 0.12);
  --sunrise: linear-gradient(100deg, var(--magenta), var(--coral) 55%, var(--gold));
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(60% 40% at 80% 10%, rgba(139, 92, 255, 0.28), transparent 70%),
    radial-gradient(50% 35% at 10% 30%, rgba(255, 61, 139, 0.18), transparent 70%),
    radial-gradient(80% 50% at 50% 110%, rgba(255, 122, 69, 0.22), transparent 70%),
    linear-gradient(180deg, var(--night-2), var(--night) 40%);
  background-attachment: fixed;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(42px, 6.2vw, 92px); }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.skip:focus { left: 8px; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(4, 4, 18, 0.65)); }
main, .site-footer { position: relative; z-index: 2; }
[id] { scroll-margin-top: 96px; } /* anchor jumps land below the sticky nav pill */

.grad, .kicker { background: var(--sunrise); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font-family: var(--mono); letter-spacing: .06em; font-size: 12px; font-weight: 600; text-transform: uppercase; margin: 0 0 18px; display: inline-block; }
.lede { max-width: 50ch; margin-top: 22px; font-size: clamp(17px, 1.35vw, 20px); color: #d7d3f2; }
.glass { background: var(--glass); border: 1px solid var(--edge); border-radius: 22px; backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8); }

.button { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; padding: 15px 26px; border-radius: 999px; color: #1a0b1f; background: var(--sunrise); box-shadow: 0 14px 40px -12px rgba(255, 61, 139, 0.7); transition: transform .25s var(--ease), box-shadow .25s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -12px rgba(255, 122, 69, 0.85); }

/* ---------- nav pill (Meridian's, without scripts) ---------- */
.nav { position: sticky; z-index: 50; top: 14px; margin: 14px auto 0; width: min(1220px, calc(100% - 2 * var(--gutter))); display: flex; align-items: center; gap: 22px; padding: 9px 9px 9px 18px; border-radius: 999px; background: rgba(12, 10, 36, 0.62); border: 1px solid var(--edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.studio-link { text-decoration: none; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 17px; margin-right: -10px; }
.studio-link span { margin-left: 6px; opacity: .4; font-style: normal; }
.studio-link:hover { color: var(--text); }
.brand { margin: 0; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-weight: 400; font-size: 15px; letter-spacing: 0; }
.nav-cta { margin-left: auto; text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; color: #1a0b1f; background: var(--sunrise); white-space: nowrap; }

/* ---------- sections ---------- */
section { padding: clamp(90px, 13vh, 150px) var(--gutter); }
.col { max-width: 1220px; margin: 0 auto; }

.hero { min-height: calc(100svh - 90px); display: grid; align-content: center; }
.hero h1 { font-size: clamp(54px, 8.6vw, 132px); line-height: .96; max-width: 12ch; }
.hero .grad { display: block; }

/* Cards: Meridian's checks cards. */
.cards { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 36px); }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--sunrise); opacity: .8; }
.card .tag { display: inline-block; font-family: var(--mono); letter-spacing: .06em; font-size: 11px; font-weight: 600; text-transform: uppercase; margin-bottom: 12px; }
.card:nth-child(1) .tag { color: var(--magenta); }
.card:nth-child(2) .tag { color: var(--coral); }
.card:nth-child(3) .tag { color: var(--aqua); }
.card h3 { margin-bottom: 12px; }
.card p { color: #d7d3f2; font-size: 15.5px; }

/* Principles: a glass panel, sunrise check marks. */
.principles { list-style: none; margin: 40px 0 0; padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; max-width: 860px; }
.principles li { position: relative; padding-left: 34px; color: #d7d3f2; font-size: 16.5px; }
.principles li strong { color: var(--text); }
.principles li::before { content: "✓"; position: absolute; left: 0; top: -1px; font-weight: 800; font-size: 19px; background: var(--sunrise); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Steps: glass panels numbered in mono; the current step glows lime to aqua, like Meridian's profit. */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { counter-increment: s; position: relative; padding: clamp(24px, 3vw, 32px); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; margin-bottom: 18px; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: #d7d3f2; font-size: 15.5px; }
.steps .now { border-color: rgba(93, 255, 176, 0.45); box-shadow: 0 0 0 1px rgba(93, 255, 176, 0.15), 0 30px 80px -40px rgba(0, 0, 0, 0.8); }
.steps .now::before { -webkit-text-stroke: 0; background: linear-gradient(100deg, var(--lime), var(--aqua)); -webkit-background-clip: text; background-clip: text; }

/* Contact: a glass panel with the sunrise button. */
.contact { margin-top: 40px; padding: clamp(26px, 3.4vw, 44px); max-width: 860px; }
.contact p { color: #d7d3f2; font-size: clamp(17px, 1.35vw, 20px); max-width: 52ch; }
.contact p + p { margin-top: 26px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---------- footer (Meridian's) ---------- */
.site-footer { padding: 44px var(--gutter); border-top: 1px solid var(--edge); color: var(--muted); font-size: 14px; background: rgba(7, 10, 31, 0.7); }
.site-footer p + p { margin-top: 6px; font-size: 12.5px; opacity: .8; }

/* ---------- reveal on scroll, CSS only ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .studio-link { display: none; }
  .brand span { display: none; }
  .nav-cta { padding: 9px 13px; font-size: 13px; }
  section { padding-top: 72px; padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
