/*
  Tickline — t2 visual world (TradingView doorway, 05.08 build)
  THESIS: a pro charting terminal — near-black navy, a fine grid, electric blue,
          monospace chrome, and a two-pane terminal (price + a sub-study) as the
          signature object. A power-user's console, distinct from the light t1
          studio and the gold r2 world.
  OWN-WORLD: deep navy (#080c16), soft blue-white text (#dbe4f2), electric blue
             (#3b82f6 / #60a5fa) on CTAs and lines, market green / red candles.
             Monospace for chrome and numbers, clean sans for prose.
  MOTION: one authored moment — the terminal line sweeps in on load.
*/

:root {
  --bg: #080c16;
  --bg-2: #0f1524;
  --raise: #141b2e;
  --ink: #dbe4f2;
  --ink-soft: #8592ab;
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --blue-deep: #2563eb;
  --blue-soft: rgba(59, 130, 246, 0.14);
  --up: #2bd4a0;
  --down: #ff6a6a;
  --line: #1e2740;
  --line-soft: #161d30;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 28px 56px -30px rgba(0, 0, 0, 0.8);
  --shadow-sm: 0 14px 30px -18px rgba(0, 0, 0, 0.65);
  --shadow-blue: 0 16px 36px -16px rgba(59, 130, 246, 0.4);
  --sans: "Segoe UI", system-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(--sans); background: var(--bg); color: var(--ink); line-height: 1.62; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1160px, 92vw); margin: 0 auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-bright); }

/* ticker tape */
.tape { background: #05070d; color: #9aa6bd; overflow: hidden; border-bottom: 1px solid var(--line); }
.tape .row { display: flex; gap: 28px; padding: 7px 0; white-space: nowrap; width: max-content; font-family: var(--mono); font-size: 12.5px; animation: slide 28s linear infinite; }
.tape .row b { color: var(--ink); } .tape .up { color: var(--up); } .tape .down { color: var(--down); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape .row { animation: none; } }

/* topbar */
.topbar { background: #05070d; color: #7986a0; font-size: 12.5px; border-bottom: 1px solid var(--line-soft); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 9px 0; align-items: center; }
.topbar a { color: var(--blue-bright); font-weight: 600; } .topbar .sep { margin-left: auto; }

/* nav */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(8,12,22,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 14px; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 32px; height: 32px; }
.brand b { font-family: var(--mono); font-size: 20px; letter-spacing: -0.01em; font-weight: 700; }
.brand b i { color: var(--blue-bright); font-style: normal; }
.nav-links { display: flex; gap: 1px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink); padding: 8px 11px; border-radius: 7px; font-weight: 600; font-size: 14px; }
.nav-links a:hover { background: var(--blue-soft); color: var(--blue-bright); 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 — the authored terminal card carries the charting identity; plain ground */
.hero { padding: 72px 0 82px; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 16px; }
.kicker .pill { background: var(--blue-soft); color: var(--blue-bright); padding: 3px 10px; border-radius: 999px; font-size: 11px; }
.hero h1 { font-size: clamp(2.7rem, 5.8vw, 4.5rem); line-height: 0.98; letter-spacing: -0.04em; margin: 0 0 18px; font-weight: 800; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 47ch; margin: 0 0 26px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: 8px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s, background .16s; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-2px); background: var(--blue-deep); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-bright); text-decoration: none; }

/* terminal card — signature object */
.term { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.term .thead { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.term .thead .sym { color: var(--ink); font-weight: 700; } .term .thead .px { color: var(--up); }
.term .tmain { padding: 4px 4px 0; }
.term svg { display: block; width: 100%; }
.term .price svg { height: 150px; } .term .study svg { height: 46px; border-top: 1px solid var(--line-soft); }
.term .ln { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.7s cubic-bezier(.4,0,.2,1) forwards; filter: drop-shadow(0 0 5px rgba(59,130,246,.6)); }
.term .area { fill: url(#tg); }
.term .bar { fill: var(--blue-soft); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .term .ln { animation: none; stroke-dashoffset: 0; } }
.term .tfoot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); padding: 6px 16px 14px; }

/* sections */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section.glow { background: linear-gradient(160deg, #0a1224, #080c16); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -0.035em; line-height: 1.08; margin: 8px 0 14px; font-weight: 800; }
.section p { color: var(--ink-soft); max-width: 68ch; }
.prose p { margin: 0 0 18px; }
.prose h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 30px 0 10px; font-weight: 700; }

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

/* paired h3 under each keyword h2 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.duo > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.duo > div::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 2px; background: var(--blue); border-radius: 2px; }
.duo h3 { margin: 0 0 6px 12px; font-size: 1.14rem; letter-spacing: -0.02em; font-weight: 700; }
.duo p { margin: 0 0 0 12px; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* watch rows */
.watch { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wrow { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 15px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); }
.wrow:last-child { border-bottom: 0; }
.wrow .tk { width: 32px; height: 32px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-bright); display: grid; place-items: center; font-weight: 800; font-family: var(--sans); }
.wrow .nm { font-family: var(--sans); } .wrow .nm b { display: block; } .wrow .nm span { color: var(--ink-soft); font-size: 12.5px; }
.wrow .ch.up { color: var(--up); } .wrow .ch.down { color: var(--down); }

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

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat .n { font-family: var(--mono); font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--blue-bright); }
.stat .l { color: var(--ink-soft); font-size: 14px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); color: var(--blue-bright); font-weight: 700; display: block; margin-bottom: 8px; font-size: 1.1rem; }
.step b { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

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

/* team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; border: 1px solid var(--line); }
.member b { display: block; font-size: 1.02rem; } .member span { color: var(--ink-soft); font-size: 14px; }

/* faq */
.faq { max-width: 78ch; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-size: 1.08rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue-bright); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 12px 0 0; color: var(--ink-soft); }

/* cta */
.cta-band { padding: 74px 0; text-align: center; background: linear-gradient(160deg, #0c1730, #080c16); border-top: 1px solid var(--line); }
.cta-band .fakeh2 { color: var(--blue-bright); }
.cta-band p { color: var(--ink-soft); margin: 0 auto 26px; max-width: 54ch; }

/* login */
.login-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; }
.login-aside { background: linear-gradient(160deg, #0b1428, #080c16); color: var(--ink); padding: 64px 6vw; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.login-aside .lead-big { font-size: clamp(1.9rem,3vw,2.5rem); letter-spacing: -0.03em; font-weight: 800; margin-bottom: 12px; line-height: 1.05; color: #fff; }
.login-aside p { color: var(--ink-soft); max-width: 40ch; }
.login-main { padding: 64px 6vw; display: flex; flex-direction: column; justify-content: center; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; max-width: 440px; width: 100%; }
.card h1 { font-size: 1.7rem; letter-spacing: -0.03em; margin: 0 0 6px; }

/* forms */
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font: inherit; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #5b6784; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(59,130,246,.22); 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; box-shadow: var(--shadow-blue); }
.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: 38px; }
.contact-list ul { padding: 0; margin: 0; }
.contact-list li { list-style: none; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.contact-list .k { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue-bright); font-weight: 700; }

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

/* footer */
.site-foot { background: #05070d; color: var(--ink-soft); padding: 54px 0 26px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 26px; }
.site-foot .fh { color: var(--blue-bright); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 14px; font-weight: 700; }
.site-foot a { color: var(--ink-soft); display: block; padding: 5px 0; } .site-foot a:hover { color: var(--blue-bright); }
.site-foot .brand b { color: var(--ink); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; font-size: 12.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(--bg-2); border: 1px solid var(--line); color: var(--ink); padding: 15px 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: 8px; padding: 9px 15px; 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: 78px; height: 78px; margin: 0 auto 22px; border-radius: 16px; background: var(--blue); display: grid; place-items: center; box-shadow: var(--shadow-blue); }
.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: 62px; left: 0; right: 0; background: var(--bg); 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: 8px; padding: 10px 15px; font-weight: 700; cursor: pointer; }
  .mediaband.flip { direction: ltr; } .login-aside { display: none; }
  .wrow { grid-template-columns: 38px 1fr auto; } .wrow .val2 { display: none; }
}
