/* ============================================
   ClicksOffer — Trading Desk Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --ink:        #0A0A0C;
  --panel:      #121216;
  --panel-2:    #17171D;
  --hairline:   #2A2A32;
  --amber:      #FFB020;
  --amber-dim:  #8a5f1a;
  --cyan:       #3FD9C7;
  --paper:      #EDEAE3;
  --grey:       #8B8B93;
  --grey-dim:   #55555c;
  --good:       #4ADE80;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{ margin:0; padding:0; }

body{
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: inherit; text-decoration: none; }
img,svg{ display:block; max-width:100%; }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- background texture ---------- */
.grid-bg{
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

/* ---------- eyebrow / bracket labels ---------- */
.eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.eyebrow::before{ content:"["; color: var(--grey-dim); }
.eyebrow::after{ content:"]"; color: var(--grey-dim); }
.eyebrow .dot{
  width:6px; height:6px; border-radius:50%; background: var(--good);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:0.35; } }

/* ---------- nav ---------- */
.nav{
  position: sticky; top:0; z-index: 50;
  background: rgba(10,10,12,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; height:72px; }
.logo{ font-family: var(--display); font-weight:700; font-size:20px; letter-spacing:-0.01em; display:flex; align-items:center; gap:2px;}
.logo .bracket{ color: var(--amber); }
.nav-links{ display:flex; gap:32px; align-items:center; }
.nav-links a{
  font-family: var(--mono); font-size: 13px; color: var(--grey);
  letter-spacing:0.03em; transition: color .15s ease;
}
.nav-links a:hover{ color: var(--paper); }
.nav-cta{
  font-family: var(--mono); font-size:13px; padding:10px 18px;
  background: var(--amber); color: var(--ink); font-weight:600;
  border-radius: 3px; letter-spacing:0.03em; transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover{ transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,176,32,0.25); }
.nav-toggle{ display:none; }

/* ---------- ticker tape (signature element) ---------- */
.ticker{
  border-bottom: 1px solid var(--hairline);
  background: var(--panel);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker::before, .ticker::after{
  content:""; position:absolute; top:0; bottom:0; width:60px; z-index:2;
}
.ticker::before{ left:0; background: linear-gradient(90deg, var(--panel), transparent); }
.ticker::after{ right:0; background: linear-gradient(270deg, var(--panel), transparent); }
.ticker-track{
  display:inline-flex; gap:48px; padding: 11px 0;
  animation: scroll-left 38s linear infinite;
}
.ticker-item{
  font-family: var(--mono); font-size:12.5px; color: var(--grey);
  display:inline-flex; align-items:center; gap:10px; letter-spacing:0.03em;
}
.ticker-item b{ color: var(--cyan); font-weight:600; }
.ticker-item .up{ color: var(--good); }
@keyframes scroll-left{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ---------- hero ---------- */
.hero{ padding: 96px 0 64px; }
.hero-grid{ display:grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items:center; }
.hero h1{
  font-family: var(--display); font-weight:700; font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.06; letter-spacing:-0.015em; margin: 0 0 22px;
}
.hero h1 em{ font-style:normal; color: var(--amber); }
.hero p.lead{ font-size:17px; color: var(--grey); max-width: 520px; margin: 0 0 32px; }
.btn-row{ display:flex; gap:14px; flex-wrap:wrap; }
.btn{
  font-family: var(--mono); font-size:13.5px; padding:14px 24px; border-radius:3px;
  letter-spacing:0.02em; font-weight:500; transition: all .15s ease; display:inline-flex; align-items:center; gap:8px;
}
.btn-primary{ background: var(--amber); color: var(--ink); font-weight:600; }
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,176,32,0.25); }
.btn-ghost{ border:1px solid var(--hairline); color: var(--paper); }
.btn-ghost:hover{ border-color: var(--amber-dim); color: var(--amber); }

/* ---------- terminal panel (hero signature) ---------- */
.term{
  background: var(--panel); border:1px solid var(--hairline); border-radius: 6px;
  overflow:hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.term-head{
  display:flex; align-items:center; gap:8px; padding:11px 14px;
  border-bottom:1px solid var(--hairline); background: var(--panel-2);
}
.term-head .d{ width:9px; height:9px; border-radius:50%; background: var(--hairline); }
.term-head span{ font-family: var(--mono); font-size:11px; color: var(--grey-dim); margin-left:6px; letter-spacing:0.04em; }
.term-body{ padding: 22px 20px 24px; font-family: var(--mono); }
.term-row{ display:flex; justify-content:space-between; align-items:baseline; padding:9px 0; border-bottom:1px dashed var(--hairline); }
.term-row:last-child{ border-bottom:none; }
.term-row .k{ font-size:12px; color: var(--grey); letter-spacing:0.03em; }
.term-row .v{ font-size:15px; color: var(--paper); font-weight:600; }
.term-row .v.amber{ color: var(--amber); }
.term-row .v.cyan{ color: var(--cyan); }
.term-cursor{ display:inline-block; width:7px; height:14px; background: var(--amber); margin-left:2px; animation: blink 1s step-end infinite; vertical-align:middle; }
@keyframes blink{ 50%{ opacity:0; } }

/* ---------- stat bar ---------- */
.stats{ border-top:1px solid var(--hairline); border-bottom:1px solid var(--hairline); background: var(--panel); }
.stats-grid{ display:grid; grid-template-columns: repeat(4,1fr); }
.stat{ padding: 34px 24px; text-align:center; border-right:1px solid var(--hairline); }
.stat:last-child{ border-right:none; }
.stat .num{ font-family: var(--mono); font-size: clamp(24px,2.6vw,34px); font-weight:600; color: var(--amber); }
.stat .lbl{ font-family: var(--mono); font-size:11.5px; color: var(--grey); letter-spacing:0.06em; text-transform:uppercase; margin-top:6px; }

/* ---------- sections ---------- */
section{ padding: 88px 0; }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head h2{
  font-family: var(--display); font-weight:700; font-size: clamp(26px,3vw,36px);
  letter-spacing:-0.01em; margin: 0 0 14px;
}
.section-head p{ color: var(--grey); font-size:15.5px; margin:0; }

.divider{ height:1px; background: var(--hairline); border:none; margin:0; }

/* ---------- cards grid ---------- */
.cards{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.card{
  background: var(--panel); border:1px solid var(--hairline); border-radius:6px;
  padding: 26px 24px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover{ border-color: var(--amber-dim); transform: translateY(-2px); }
.card .icon{ width:36px; height:36px; margin-bottom:16px; color: var(--cyan); }
.card h3{ font-family: var(--display); font-size:17px; margin: 0 0 8px; font-weight:600; }
.card p{ font-size:14px; color: var(--grey); margin:0; }

/* ---------- vertical tags ---------- */
.tags{ display:flex; flex-wrap:wrap; gap:12px; }
.tag{
  font-family: var(--mono); font-size:12.5px; letter-spacing:0.03em; padding:11px 16px;
  border:1px solid var(--hairline); border-radius:3px; color: var(--paper); background: var(--panel);
}
.tag b{ color: var(--amber); }

/* ---------- compliance ---------- */
.compliance-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:start; }
.check-list{ list-style:none; margin:0; padding:0; }
.check-list li{
  display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--hairline);
  font-size:14.5px; color: var(--paper);
}
.check-list li:first-child{ padding-top:0; }
.check-list .mark{
  flex:none; width:20px; height:20px; border-radius:50%; border:1px solid var(--good);
  color: var(--good); display:flex; align-items:center; justify-content:center; font-size:12px; margin-top:1px;
}
.check-list .txt b{ display:block; color:var(--paper); margin-bottom:2px; font-family:var(--display); font-weight:600; font-size:15px; }
.check-list .txt span{ color: var(--grey); font-size:13.5px; }

.geo-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.geo{
  font-family: var(--mono); font-size:12px; padding:7px 12px; border:1px solid var(--hairline);
  border-radius:20px; color: var(--grey);
}

/* ---------- why partner ---------- */
.feat-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.feat{ padding:6px; }
.feat .idx{ font-family: var(--mono); font-size:11px; color: var(--amber-dim); letter-spacing:0.1em; }
.feat h3{ font-family: var(--display); font-size:16.5px; margin:10px 0 8px; font-weight:600; }
.feat p{ font-size:13.5px; color: var(--grey); margin:0; }

/* ---------- contact ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-family: var(--mono); font-size:11.5px; color: var(--grey); letter-spacing:0.05em; text-transform:uppercase; margin-bottom:8px; }
.field input, .field textarea, .field select{
  width:100%; background: var(--panel); border:1px solid var(--hairline); color: var(--paper);
  padding:12px 14px; border-radius:4px; font-family: var(--body); font-size:14px; outline:none;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color: var(--amber); }
.field textarea{ resize: vertical; min-height:100px; }
.submit-btn{
  font-family: var(--mono); background: var(--amber); color: var(--ink); border:none;
  padding:14px 26px; border-radius:3px; font-weight:600; font-size:13.5px; cursor:pointer;
  letter-spacing:0.02em; transition: transform .15s ease, box-shadow .15s ease;
}
.submit-btn:hover{ transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,176,32,0.25); }
.form-note{ font-size:12px; color: var(--grey-dim); margin-top:10px; }
.confirm{
  display:none; margin-top:16px; padding:14px 16px; background: rgba(74,222,128,0.08);
  border:1px solid rgba(74,222,128,0.35); border-radius:4px; font-size:13.5px; color: var(--good);
  font-family: var(--mono);
}
.direct-contact{ border-top:1px solid var(--hairline); margin-top:28px; padding-top:24px; }
.direct-contact .row{ display:flex; justify-content:space-between; padding:10px 0; font-family: var(--mono); font-size:13.5px; border-bottom: 1px dashed var(--hairline); }
.direct-contact .row:last-child{ border-bottom:none; }
.direct-contact .row span:first-child{ color: var(--grey); }
.direct-contact .row span:last-child{ color: var(--cyan); }

/* ---------- footer ---------- */
footer{ border-top:1px solid var(--hairline); padding: 48px 0 28px; }
.foot-grid{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:32px; margin-bottom:32px; }
.foot-col h4{ font-family: var(--mono); font-size:11.5px; color: var(--grey); letter-spacing:0.08em; text-transform:uppercase; margin: 0 0 14px; }
.foot-col a{ display:block; font-size:13.5px; color: var(--paper); margin-bottom:10px; }
.foot-col a:hover{ color: var(--amber); }
.foot-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:24px; border-top:1px solid var(--hairline); }
.foot-bottom p{ font-size:12.5px; color: var(--grey-dim); margin:0; font-family: var(--mono); }

/* ---------- legal pages ---------- */
.legal{ padding: 64px 0 100px; }
.legal .wrap{ max-width: 800px; }
.legal h1{ font-family: var(--display); font-size: clamp(28px,3.4vw,40px); margin-bottom:8px; }
.legal .updated{ font-family: var(--mono); font-size:12.5px; color: var(--grey-dim); margin-bottom:44px; }
.legal h2{ font-family: var(--display); font-size:19px; margin: 40px 0 12px; color: var(--amber); }
.legal p, .legal li{ color: var(--grey); font-size:14.5px; line-height:1.75; }
.legal ul{ padding-left: 20px; }
.legal a.inline{ color: var(--cyan); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 900px){
  .hero-grid, .compliance-grid, .contact-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: repeat(2,1fr); }
  .stats-grid{ grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2){ border-right:none; }
  .stat{ border-bottom:1px solid var(--hairline); }
  .feat-grid{ grid-template-columns: repeat(2,1fr); }
  .nav-links{ display:none; }
}
@media (max-width: 560px){
  .cards, .feat-grid{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: repeat(2,1fr); }
  .hero{ padding: 56px 0 40px; }
  section{ padding: 56px 0; }
}
