:root {
  color-scheme: dark;
  --ink: #07111f;
  --ink-soft: #0d1a2b;
  --paper: #f6f1e8;
  --muted: #aab6c5;
  --line: rgba(255, 255, 255, .12);
  --amber: #f3b447;
  --teal: #39d6c5;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 14%, rgba(243, 180, 71, .08), transparent 30rem),
    radial-gradient(circle at 88% 34%, rgba(57, 214, 197, .08), transparent 32rem),
    var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: 1rem; transform: translateY(-150%); padding: .7rem 1rem; border-radius: .5rem; background: var(--paper); color: var(--ink); }
.skip-link:focus { transform: none; }

.ambient { position: fixed; z-index: -1; width: 22rem; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; pointer-events: none; }
.ambient::after { content: ""; position: absolute; inset: 18%; border: 1px solid rgba(255,255,255,.05); border-radius: inherit; }
.ambient--one { left: -12rem; top: 16rem; }
.ambient--two { right: -11rem; bottom: 5rem; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; color: var(--paper); text-decoration: none; font-weight: 800; letter-spacing: .18em; }
.brand-mark { width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid var(--amber); border-radius: 50%; color: var(--amber); font-size: .82rem; letter-spacing: 0; }
.main-nav { display: flex; gap: 2rem; }
.main-nav a, .site-footer a { position: relative; color: var(--muted); text-decoration: none; font-size: .9rem; transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible, .site-footer a:hover, .site-footer a:focus-visible { color: var(--paper); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.language-switch { display: flex; align-items: center; gap: .35rem; color: #66758a; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.language-switch a { color: #7f8da1; text-decoration: none; }
.language-switch a[aria-current="page"] { color: var(--teal); }
.menu-toggle span:not(.sr-only) { display: block; width: 100%; height: 1px; margin: 5px 0; background: var(--paper); transition: transform .2s ease, opacity .2s ease; }

.hero { padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem); animation: rise-in .7s ease both; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: .65rem; color: var(--teal); font-size: .74rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 2.5rem; height: 1px; background: currentColor; }
h1 { max-width: 970px; margin: 1.25rem 0 1.4rem; font-size: clamp(2.8rem, 6.8vw, 6.5rem); line-height: .98; letter-spacing: -.055em; font-weight: 650; }
h1 em { color: var(--amber); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-copy { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(1.03rem, 1.7vw, 1.24rem); }
.route-hint { margin-top: 2.8rem; display: flex; align-items: center; gap: .75rem; color: #708096; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.route-hint span { width: 42px; height: 1px; background: #405066; }

.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.route-card { position: relative; min-height: 510px; padding: clamp(1.5rem, 3.5vw, 2.5rem); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 1.2rem; background: rgba(13, 26, 43, .78); box-shadow: 0 24px 70px rgba(0,0,0,.18); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.route-card::before { content: ""; position: absolute; width: 18rem; aspect-ratio: 1; right: -8rem; top: -9rem; border-radius: 50%; opacity: .12; }
.route-card--craft::before { background: var(--amber); }
.route-card--chance::before { background: var(--teal); }
.route-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.25); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.card-topline { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.card-number { color: var(--paper); }
.card-icon { width: 82px; height: 82px; margin: 3rem 0 2.2rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.craft-icon span { width: 28px; height: 38px; border: 2px solid var(--amber); transform: rotate(45deg); border-radius: 40% 0 40% 0; }
.chance-icon span { width: 36px; height: 36px; border: 2px solid var(--teal); border-radius: 50%; background: conic-gradient(var(--teal) 0 25%, transparent 25% 50%, var(--teal) 50% 75%, transparent 75%); }
.route-card h2 { max-width: 520px; margin: 0 0 1rem; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.06; letter-spacing: -.035em; }
.route-card p { max-width: 540px; margin: 0; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.tag-list li { padding: .42rem .72rem; border: 1px solid var(--line); border-radius: 999px; color: #c9d1dc; font-size: .76rem; }
.card-action { margin-top: auto; min-height: 52px; padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: .6rem; color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 800; }
.route-card--craft .card-action { background: var(--amber); }
.route-card--chance .card-action { background: var(--teal); }
.card-action span { font-size: 1.35rem; transition: transform .2s ease; }
.card-action:hover span, .card-action:focus-visible span { transform: translateX(4px); }

.about { padding-block: clamp(5rem, 10vw, 9rem); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 8rem); border-bottom: 1px solid var(--line); }
.about h2 { margin: .9rem 0 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: -.04em; }
.about-copy { color: var(--muted); font-size: 1.03rem; }
.about-copy p:first-child { margin-top: 0; color: var(--paper); font-size: 1.2rem; }

.footer-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; color: #7f8da1; font-size: .83rem; }
.footer-inner nav { display: flex; gap: 1.5rem; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 68px; }
  .menu-toggle { display: block; }
  .language-switch { margin-left: auto; }
  .main-nav { position: absolute; inset: 68px 14px auto; display: none; flex-direction: column; gap: 0; padding: .7rem; border: 1px solid var(--line); border-radius: .8rem; background: #0c1929; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .8rem; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
  .hero { padding-top: 4.2rem; }
  .routes, .about { grid-template-columns: 1fr; }
  .route-card { min-height: 490px; }
  .about { gap: 2rem; }
  .footer-inner { padding-block: 1.6rem; align-items: flex-start; flex-direction: column; }
}

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