/*
  Northstake — w7 visual world (Webull doorway)
  THESIS: a Webull guide shaped like a modern broker's portfolio card and a
          drawn area chart; refuses the dark-terminal cliche and the stat-tile row.
  OWN-WORLD: bright cool-white ground (#f5f7fd), deep ink-navy (#101528), one
             confident electric blue (#2547ff) carrying CTAs and the chart, with
             market green / red for moves. Clean grotesk, big rounded cards,
             authored area + candle charts as real content.
  MOTION: one authored moment — the hero area chart draws itself in on load.
*/

:root {
  --paper: #f5f7fd;
  --paper-2: #ffffff;
  --sunk: #eef1fa;
  --ink: #101528;
  --ink-soft: #545b74;
  --blue: #2547ff;
  --blue-deep: #143bdc;
  --blue-soft: #e6ebff;
  --up: #12b76a;
  --down: #f0384f;
  --line: #e2e7f3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px -26px rgba(16, 21, 40, 0.30);
  --shadow-sm: 0 10px 24px -14px rgba(16, 21, 40, 0.26);
  --shadow-blue: 0 18px 36px -18px rgba(37, 71, 255, 0.5);
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Consolas", "SF Mono", "Roboto Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--paper); color: var(--ink); line-height: 1.62; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* topbar */
.topbar { background: var(--ink); color: #c4ccec; font-size: 13.5px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 9px 0; align-items: center; }
.topbar a { color: #c4ccec; } .topbar .sep { margin-left: auto; }
.topbar .up { color: #6ee7a8; }

/* nav */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(245,247,253,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; }
.brand b { font-size: 20px; letter-spacing: -0.02em; font-weight: 800; }
.brand b i { color: var(--blue); font-style: normal; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink); padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.nav-links a:hover { background: var(--sunk); text-decoration: none; }
.nav-cta { background: var(--blue); color: #fff !important; box-shadow: var(--shadow-blue); }
.nav-cta:hover { background: var(--blue-deep); }
.nav-toggle { display: none; }

/* hero */
.hero { padding: 72px 0 84px; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.kicker .pill { background: var(--blue-soft); color: var(--blue-deep); padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 0.98; letter-spacing: -0.04em; margin: 0 0 18px; font-weight: 800; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; margin: 0 0 28px; }
.btn-row { display: flex; gap: 13px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-3px); text-decoration: none; }
.btn-ghost { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue); text-decoration: none; }

/* portfolio chart card — signature object */
.pcard { background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.pcard .top { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 24px 8px; }
.pcard .lbl { color: var(--ink-soft); font-size: 13.5px; }
.pcard .val { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin-top: 2px; }
.pcard .chg { color: var(--up); font-weight: 700; font-family: var(--mono); font-size: 14px; }
.pcard .chartbox { padding: 0 4px; }
.pcard svg { display: block; width: 100%; height: 130px; }
.pcard .area { fill: url(#g1); }
.pcard .line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 620; stroke-dashoffset: 620; animation: draw 1.4s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .pcard .line { animation: none; stroke-dashoffset: 0; } }
.pcard .foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); padding: 8px 24px 18px; }

/* sections */
.section { padding: 78px 0; }
.section.alt { background: var(--sunk); }
.section.ink { background: var(--ink); color: #eaeefb; }
.section.ink h2 { color: #fff; } .section.ink p { color: #aab3d6; }
.section-head { max-width: 62ch; margin-bottom: 42px; }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 14px; }
.section p { color: var(--ink-soft); max-width: 68ch; }
.prose p { margin: 0 0 18px; }
.prose h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 30px 0 10px; }

/* section label that reads like a heading but stays out of the h1/h2 outline */
.fakeh2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 14px; font-weight: 800; }

/* paired h3 under each keyword h2 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 22px; }
.duo > div { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.duo h3 { margin: 0 0 6px; font-size: 1.16rem; letter-spacing: -0.02em; }
.duo p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.section.ink .duo > div { background: #1a2138; border-color: #26304f; }
.section.ink .duo p { color: #aab3d6; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* holdings rows */
.holdings { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.hrow { display: grid; grid-template-columns: 46px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.hrow:last-child { border-bottom: 0; }
.hrow .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-deep); display: grid; place-items: center; font-weight: 800; font-family: var(--font); }
.hrow .nm { font-family: var(--font); } .hrow .nm b { display: block; } .hrow .nm span { color: var(--ink-soft); font-size: 13px; }
.hrow .ch.up { color: var(--up); } .hrow .ch.down { color: var(--down); }

/* media band */
.mediaband { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.mediaband img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.mediaband.flip { direction: rtl; } .mediaband.flip > * { direction: ltr; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.stat .n { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; color: var(--blue); }
.stat .l { color: var(--ink-soft); font-size: 14.5px; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid a { overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.gallery-grid img { aspect-ratio: 1/1; object-fit: cover; transition: transform .4s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.member b { display: block; } .member span { color: var(--ink-soft); font-size: 14.5px; }

/* cta */
.cta-band { padding: 74px 0; text-align: center; background: var(--blue); color: #fff; }
.cta-band p { color: #d4dcff; margin: 0 auto 26px; }
.cta-band .btn-primary { background: #fff; color: var(--blue-deep); }

/* login */
.login-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.login-aside { background: var(--ink); color: #eaeefb; padding: 64px 6vw; display: flex; flex-direction: column; justify-content: center; }
.login-aside h2 { color: #fff; } .login-aside p { color: #aab3d6; }
.login-main { padding: 64px 6vw; display: flex; flex-direction: column; justify-content: center; }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; max-width: 440px; width: 100%; }

/* forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); font: inherit; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(37,71,255,.25); border-color: var(--blue); }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.btn-block { width: 100%; justify-content: center; background: var(--blue); color: #fff; }
.btn-block:hover { background: var(--blue-deep); }
.muted { color: var(--ink-soft); font-size: 14.5px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list ul { padding: 0; margin: 0; }
.contact-list li { list-style: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .k { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); font-weight: 700; }

/* page hero */
.page-hero { padding: 60px 0; background: var(--sunk); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.035em; margin: 0 0 10px; }
.page-hero p { color: var(--ink-soft); max-width: 62ch; margin: 0; }
.crumbs { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; font-weight: 600; }

/* footer */
.site-foot { background: var(--ink); color: #aab3d6; padding: 54px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-foot h5, .site-foot .fh { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; font-weight: 700; }
.site-foot a { color: #aab3d6; display: block; padding: 5px 0; } .site-foot a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid #26304f; margin-top: 32px; padding-top: 20px; font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* cookie */
.cookie { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 560px; margin: 0 auto; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); padding: 16px 18px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; z-index: 60; font-size: 14px; }
.cookie button { border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer; }
.cookie .ok { background: var(--blue); color: #fff; } .cookie .no { background: transparent; color: var(--ink-soft); }

/* thank-you */
.ty { text-align: center; padding: 92px 0; }
.ty .check { width: 80px; height: 80px; margin: 0 auto 22px; border-radius: 22px; background: var(--up); display: grid; place-items: center; box-shadow: var(--shadow); }
.ty h1 { font-size: clamp(2rem,4vw,3rem); letter-spacing: -0.03em; margin: 0 0 12px; }

@media (max-width: 900px) {
  .hero .grid, .mediaband, .stats, .gallery-grid, .team, .contact-grid, .foot-grid, .login-shell { grid-template-columns: 1fr; }
  .stats, .team, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: var(--blue); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
  .mediaband.flip { direction: ltr; } .login-aside { display: none; }
  .hrow { grid-template-columns: 40px 1fr auto; } .hrow .val2 { display: none; }
}
