:root {
    color-scheme: dark light;
    --bg: #0b0b0e;
    --surface: rgba(25, 25, 31, .72);
    --surface-strong: #19191f;
    --text: #f7f7fa;
    --muted: #9b9ba7;
    --line: rgba(255, 255, 255, .09);
    --chip: rgba(255, 255, 255, .07);
    --header: rgba(11, 11, 14, .76);
    --shadow: 0 24px 70px rgba(0, 0, 0, .28);
    --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100%; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; width: min(62vw, 760px); aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: .16; animation: orb-drift 16s var(--ease) infinite alternate; }
.orb-a { top: -32%; left: -15%; background: #516cff; }
.orb-b { right: -20%; bottom: -40%; background: #b34dff; animation-delay: -8s; animation-direction: alternate-reverse; }
.noise { position: absolute; inset: 0; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
@keyframes orb-drift { to { transform: translate3d(10%, 8%, 0) scale(1.12); } }

.page-shell { width: min(1120px, 100%); margin: 0 auto; padding: 76px 24px calc(54px + env(safe-area-inset-bottom)); }
.hero { max-width: 790px; padding-bottom: 72px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .16em; animation: intro-up .7s .06s var(--ease) both; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #7588ff; box-shadow: 0 0 0 6px rgba(117, 136, 255, .12); animation: pulse-dot 2.4s ease-in-out infinite; }
.hero h1 { max-width: 760px; margin: 22px 0 14px; font-size: clamp(42px, 7vw, 82px); line-height: .98; letter-spacing: -.065em; text-wrap: balance; animation: intro-up .8s .12s var(--ease) both; }
.hero > p { max-width: 610px; margin: 0; color: var(--muted); font-size: clamp(15px, 2vw, 18px); line-height: 1.65; letter-spacing: -.02em; animation: intro-up .8s .2s var(--ease) both; }
.hero-meta { margin-top: 28px; display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 12px; animation: intro-up .8s .28s var(--ease) both; }
.hero-meta > span { display: inline-flex; align-items: baseline; gap: 5px; }
.hero-meta b { color: var(--text); font-size: 15px; }
@keyframes intro-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 10px rgba(117, 136, 255, 0); } }

.link-section + .link-section { margin-top: 72px; }
.section-heading { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading > div { display: flex; align-items: baseline; gap: 11px; }
.section-heading span { color: #7588ff; font-size: 11px; font-weight: 900; }
.section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.link-card { --x: 50%; --y: 50%; position: relative; min-height: 112px; padding: 19px 60px 19px 19px; display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 15px; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 1px 0 rgba(255, 255, 255, .025) inset; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: transform .35s var(--ease), border-color .3s ease, box-shadow .35s var(--ease), background .3s ease; }
.link-card::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: 0; background: radial-gradient(340px circle at var(--x) var(--y), rgba(var(--brand-rgb), .18), transparent 62%); transition: opacity .3s ease; }
.link-card::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; background: linear-gradient(115deg, rgba(var(--brand-rgb), .09), transparent 42%); }
.link-card:hover { transform: translateY(-5px); border-color: rgba(var(--brand-rgb), .4); background: var(--surface-strong); box-shadow: 0 22px 55px rgba(0, 0, 0, .2), 0 0 0 1px rgba(var(--brand-rgb), .07) inset; }
.link-card:hover::before { opacity: 1; }
.link-card:focus-visible { outline: 3px solid rgba(var(--brand-rgb), .34); outline-offset: 3px; }
.link-card:active { transform: translateY(-1px) scale(.99); transition-duration: .1s; }
.featured { min-height: 160px; grid-template-rows: 1fr auto; }
.featured .card-handle { grid-column: 1 / -1; align-self: end; color: var(--muted); font-size: 11px; letter-spacing: .01em; }
.card-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: rgba(var(--brand-rgb), .13); color: var(--brand); font-size: 19px; font-weight: 900; letter-spacing: -.04em; box-shadow: 0 0 0 1px rgba(var(--brand-rgb), .1) inset; transition: transform .4s var(--ease), background .3s ease; }
.card-icon svg { width: 30px; height: 30px; stroke-width: 1.6; }
.wide-mark { font-size: 14px; letter-spacing: -.02em; }
.link-card:hover .card-icon { transform: translateY(-3px) rotate(-3deg) scale(1.06); background: rgba(var(--brand-rgb), .2); }
.card-copy { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card-copy strong { overflow: hidden; font-size: 16px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.featured .card-copy strong { font-size: 20px; }
.card-copy small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.open-icon { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--chip); transition: color .25s ease, transform .35s var(--ease), background .25s ease; }
.open-icon svg { width: 18px; height: 18px; }
.link-card:hover .open-icon { color: var(--brand); background: rgba(var(--brand-rgb), .12); transform: translate(2px, -2px) rotate(3deg); }

.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .65s var(--ease), transform .65s var(--ease); transition-delay: var(--delay, 0ms); }

@media (max-width: 760px) {
    .page-shell { padding: 52px 14px calc(38px + env(safe-area-inset-bottom)); }
    .hero { padding: 0 3px 54px; }
    .hero h1 { margin-top: 18px; font-size: clamp(39px, 13vw, 58px); }
    .hero > p { max-width: 34rem; font-size: 14px; }
    .hero-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
    .link-section + .link-section { margin-top: 52px; }
    .section-heading { margin: 0 3px 14px; align-items: flex-start; flex-direction: column; gap: 5px; }
    .section-heading p { padding-left: 27px; }
    .link-grid { grid-template-columns: 1fr; gap: 9px; }
    .link-card, .featured { min-height: 96px; padding: 15px 54px 15px 15px; grid-template-columns: 50px minmax(0, 1fr); grid-template-rows: auto; border-radius: 20px; }
    .featured .card-handle { grid-column: 2; margin-top: -1px; }
    .card-icon { width: 50px; height: 50px; border-radius: 15px; }
    .featured .card-copy strong { font-size: 17px; }
    .open-icon { top: 50%; right: 13px; transform: translateY(-50%); background: transparent; }
    .link-card:hover .open-icon { transform: translate(2px, calc(-50% - 2px)); }
}

@media (hover: none) {
    .link-card:hover { transform: none; background: var(--surface); border-color: var(--line); box-shadow: none; }
    .link-card:hover .card-icon { transform: none; }
    .link-card:hover::before { opacity: 0; }
}

@media (prefers-color-scheme: light) {
    :root { --bg: #f5f5f7; --surface: rgba(255, 255, 255, .74); --surface-strong: #fff; --text: #17171b; --muted: #71717c; --line: rgba(20, 20, 30, .09); --chip: rgba(20, 20, 30, .055); --header: rgba(245, 245, 247, .78); --shadow: 0 24px 70px rgba(25, 25, 40, .11); }
    .orb { opacity: .12; }
    .noise { opacity: .018; }
    .link-card:hover { box-shadow: var(--shadow); }
}

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