/* ── Kinetic Protocol — Shared Styles ───────────────────────────────────── */

:root {
  --amber: #F5A623; --amber2: #D4891A; --amber3: #7a4d0a;
  --amber-glow: rgba(245,166,35,0.15); --amber-glow2: rgba(245,166,35,0.07);
  --bg: #060608; --surface: rgba(255,255,255,0.04); --surface2: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08); --border2: rgba(245,166,35,0.25);
  --text: #f0f0f0; --muted: #6b7280; --muted2: #374151;
  --green: #10b981; --red: #ef4444;
  --font: 'Outfit', sans-serif; --mono: 'DM Mono', monospace;
}

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--amber3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber2); }
* { scrollbar-width: thin; scrollbar-color: var(--amber3) transparent; }

body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); overflow-x: hidden; line-height: 1.6;
}

/* Blobs */
.blob { position:fixed; border-radius:50%; filter:blur(120px); pointer-events:none; z-index:0; }
.blob-1 { width:600px; height:600px; background:rgba(245,166,35,0.07); top:-100px; right:-100px; }
.blob-2 { width:400px; height:400px; background:rgba(245,166,35,0.04); bottom:200px; left:-100px; }
* { position:relative; z-index:1; }

/* ── BASE PAGE OFFSET (nav is floating at top:20px, height ~58px → bottom ~78px) ── */
.page-wrap { padding-top: 116px; }
.hero { padding-top: 130px; }

/* ── PREVIEW BAR ── */
.preview-bar {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(245,166,35,0.12); border-bottom: 1px solid var(--border2);
  text-align: center; padding: 8px 20px;
  font-size: 12px; font-weight: 600; color: var(--amber); letter-spacing: 0.5px;
}
.preview-bar.show { display: block; }
body.has-preview-bar nav { top: 52px; }
body.has-preview-bar .page-top { padding-top: 156px; }
/* push ALL page content down when preview bar is active */
body.has-preview-bar .page-wrap { padding-top: 156px !important; }
body.has-preview-bar .hero { padding-top: 168px !important; }
body.has-preview-bar .docs-layout { padding-top: 100px !important; }
body.has-preview-bar .mobile-menu { top: 132px; }

/* ── NAV ── */
nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: calc(100% - 48px); max-width: 1100px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(10,10,12,0.75); backdrop-filter: blur(24px);
  border: 1px solid var(--border); border-radius: 100px;
  transition: top 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
nav.scrolled { background: rgba(10,10,12,0.95); box-shadow: 0 8px 40px rgba(0,0,0,0.4); }

.nav-logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.logo-hex { width:28px; height:28px; background:var(--amber); clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%); flex-shrink:0; }
.logo-name { font-size:16px; font-weight:800; color:var(--text); letter-spacing:1px; }

.nav-links { display:flex; gap:2px; }
.nav-links a { color:var(--muted); font-size:13px; font-weight:500; text-decoration:none; padding:6px 14px; border-radius:100px; transition:all 0.2s; }
.nav-links a:hover, .nav-links a.active { color:var(--text); background:var(--surface2); }
.nav-links a.active { color:var(--amber); }

.nav-right { display:flex; align-items:center; gap:8px; }
.btn-connect { background:var(--amber); color:#000; font-family:var(--font); font-size:13px; font-weight:700; padding:8px 18px; border:none; border-radius:100px; cursor:pointer; transition:all 0.2s; }
.btn-connect:hover { background:#f8b93a; transform:scale(1.03); }
.btn-connect.connected { background:var(--surface2); color:var(--green); border:1px solid rgba(16,185,129,0.3); }
.btn-connect.wrong-net { background:rgba(239,68,68,0.1); color:var(--red); border:1px solid rgba(239,68,68,0.3); }
.btn-launch-nav { background:transparent; color:var(--amber); border:1px solid var(--border2); font-family:var(--font); font-size:13px; font-weight:600; padding:8px 18px; border-radius:100px; cursor:pointer; transition:all 0.2s; text-decoration:none; display:inline-block; }
.btn-launch-nav:hover { background:var(--amber-glow); }

.hamburger { display:none; flex-direction:column; gap:4px; cursor:pointer; background:none; border:none; padding:6px; }
.hamburger span { width:18px; height:2px; background:var(--amber); border-radius:2px; display:block; }
.mobile-menu { display:none; position:fixed; top:90px; left:24px; right:24px; background:rgba(10,10,12,0.97); border:1px solid var(--border); border-radius:20px; padding:16px; z-index:98; flex-direction:column; gap:2px; }
.mobile-menu.open { display:flex; }
.mobile-menu a { color:var(--muted); font-size:14px; text-decoration:none; padding:10px 14px; border-radius:10px; transition:all 0.2s; }
.mobile-menu a:hover { background:var(--surface); color:var(--text); }
body.has-preview-bar .mobile-menu { top:132px; }

/* ── COMMON BUTTONS ── */
.btn-primary { background:var(--amber); color:#000; font-family:var(--font); font-weight:800; font-size:15px; padding:14px 32px; border-radius:100px; border:none; cursor:pointer; transition:all 0.2s; text-decoration:none; display:inline-block; }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 12px 40px rgba(245,166,35,0.4); }
.btn-secondary { background:transparent; color:var(--text); font-family:var(--font); font-weight:600; font-size:15px; padding:14px 32px; border-radius:100px; border:1px solid var(--border2); cursor:pointer; transition:all 0.2s; text-decoration:none; display:inline-block; }
.btn-secondary:hover { background:var(--amber-glow); color:var(--amber); }
.btn-action { width:100%; padding:14px; border-radius:14px; background:var(--amber); color:#000; font-family:var(--font); font-size:15px; font-weight:800; border:none; cursor:pointer; transition:all 0.2s; }
.btn-action:hover:not(:disabled) { background:#f8b93a; transform:translateY(-1px); box-shadow:0 8px 30px rgba(245,166,35,0.4); }
.btn-action:disabled { opacity:0.4; cursor:not-allowed; }
.btn-action.ghost { background:var(--surface2); color:var(--amber); border:1px solid var(--border2); }
.btn-action.ghost:hover:not(:disabled) { background:var(--amber-glow); box-shadow:none; transform:none; }

/* ── COMMON INPUTS ── */
.input-box { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:14px 16px; display:flex; align-items:center; gap:12px; transition:border-color 0.2s; }
.input-box:focus-within { border-color:var(--border2); }
.input-box input { flex:1; background:none; border:none; outline:none; color:var(--text); font-size:22px; font-family:var(--mono); font-weight:500; min-width:0; }
.input-box input::placeholder { color:var(--muted2); }
.token-badge { display:flex; align-items:center; gap:7px; background:var(--surface2); border-radius:100px; padding:5px 12px 5px 5px; flex-shrink:0; }
.token-icon { width:26px; height:26px; border-radius:50%; background:linear-gradient(135deg,#F0B90B,#e8821a); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; color:#000; }
.token-sym { font-size:13px; font-weight:700; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom:16px; }
.form-label { display:block; font-size:11px; font-weight:700; letter-spacing:1.5px; color:var(--muted); text-transform:uppercase; margin-bottom:7px; }
.form-input { width:100%; background:rgba(255,255,255,0.04); border:1px solid var(--border); border-radius:12px; padding:12px 16px; color:var(--text); font-family:var(--font); font-size:15px; outline:none; transition:border-color 0.2s; }
.form-input:focus { border-color:var(--border2); }
.form-input::placeholder { color:var(--muted2); }
textarea.form-input { resize:vertical; min-height:80px; }

/* ── WIDGET ── */
.widget { background:rgba(12,12,15,0.9); border:1px solid var(--border); border-radius:20px; overflow:hidden; }
.widget-tabs { display:flex; border-bottom:1px solid var(--border); }
.widget-tab { flex:1; padding:14px; text-align:center; font-size:14px; font-weight:600; cursor:pointer; color:var(--muted); transition:all 0.2s; background:none; border:none; font-family:var(--font); }
.widget-tab.active { color:var(--amber); background:var(--amber-glow); }
.widget-body { padding:22px; }
.widget-rate { background:var(--surface); border-radius:11px; padding:11px 15px; display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.wr-label { font-size:12px; color:var(--muted); }
.wr-val { font-family:var(--mono); font-size:13px; color:var(--amber); }
.info-panel { background:var(--surface); border-radius:12px; padding:12px 15px; display:flex; flex-direction:column; gap:8px; }
.info-row { display:flex; justify-content:space-between; font-size:13px; }
.info-row .k { color:var(--muted); }
.info-row .v { color:var(--text); font-family:var(--mono); }
.info-row .v.g { color:var(--green); }
.info-row .v.a { color:var(--amber); }
.output-box { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:14px 16px; display:flex; align-items:center; justify-content:space-between; }
.output-amount { font-family:var(--mono); font-size:22px; font-weight:500; color:var(--amber); }
.output-sub { font-size:12px; color:var(--muted); margin-top:2px; }
.input-top { display:flex; justify-content:space-between; margin-bottom:7px; font-size:12px; color:var(--muted); }
.input-top .clickable { cursor:pointer; color:var(--text); }
.input-top .clickable:hover { color:var(--amber); }
.swap-btn-wrap { display:flex; justify-content:center; margin:7px 0; }
.swap-btn-wrap button { background:var(--surface2); border:1px solid var(--border); width:34px; height:34px; border-radius:9px; cursor:pointer; color:var(--muted); font-size:15px; transition:all 0.2s; display:flex; align-items:center; justify-content:center; }
.swap-btn-wrap button:hover { background:var(--amber-glow); color:var(--amber); border-color:var(--border2); }
.yield-hint { background:rgba(16,185,129,0.08); border:1px solid rgba(16,185,129,0.18); border-radius:10px; padding:10px 14px; display:flex; align-items:flex-start; gap:10px; margin-top:14px; }
.yield-hint .yh-icon { font-size:17px; }
.yield-hint .yh-text { font-size:12px; color:var(--muted); line-height:1.55; }
.yield-hint .yh-text strong { color:var(--green); }

/* ── PAGE SECTION ── */
.section { padding:90px 6%; max-width:1200px; margin:0 auto; }
.section-tag { font-size:11px; font-weight:700; letter-spacing:3px; color:var(--amber); text-transform:uppercase; display:block; margin-bottom:14px; }
.section-title { font-size:clamp(1.8rem,3.5vw,2.8rem); font-weight:800; letter-spacing:-1px; line-height:1.1; margin-bottom:14px; }
.section-title span { color:var(--amber); }
.section-sub { color:var(--muted); font-size:15px; line-height:1.7; max-width:500px; }

/* ── TOKEN CARD ── */
.token-card { background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:20px; transition:all 0.25s; cursor:pointer; text-decoration:none; color:var(--text); display:block; }
.token-card:hover { border-color:var(--border2); transform:translateY(-3px); background:var(--surface2); }
.tc-head { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.tc-icon { width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; font-weight:800; }
.tc-name { font-size:15px; font-weight:700; }
.tc-sym { font-size:12px; color:var(--muted); }
.tc-stats { display:flex; flex-direction:column; gap:6px; }
.tc-stat { display:flex; justify-content:space-between; font-size:12px; }
.tc-stat .k { color:var(--muted); }
.tc-stat .v { font-family:var(--mono); color:var(--text); }
.tc-stat .v.a { color:var(--amber); }
.tc-stat .v.g { color:var(--green); }
.progress-bar { height:5px; background:var(--muted2); border-radius:3px; margin-top:10px; }
.progress-fill { height:100%; background:linear-gradient(90deg, var(--amber2), var(--amber)); border-radius:3px; transition:width 0.4s ease; }
.tc-footer { display:flex; justify-content:space-between; align-items:center; margin-top:12px; }
.grad-badge { font-size:10px; font-weight:700; letter-spacing:1px; padding:3px 9px; border-radius:100px; }
.grad-badge.live { background:rgba(16,185,129,0.15); color:var(--green); border:1px solid rgba(16,185,129,0.25); }
.grad-badge.graduated { background:var(--amber-glow); color:var(--amber); border:1px solid var(--border2); }

/* ── FOOTER ── */
footer { border-top:1px solid var(--border); padding:30px 6%; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; max-width:1400px; margin:0 auto; }
.foot-logo { font-size:14px; font-weight:800; color:var(--amber); letter-spacing:1px; }
.foot-links { display:flex; gap:20px; }
.foot-links a { color:var(--muted); font-size:12px; text-decoration:none; transition:color 0.2s; }
.foot-links a:hover { color:var(--amber); }
footer p { color:var(--muted2); font-size:11px; }

/* ── TOAST ── */
.toast { position:fixed; bottom:28px; right:28px; z-index:300; background:#0e0e12; border:1px solid var(--border2); border-radius:14px; padding:14px 18px; max-width:300px; animation:slideUp 0.3s ease; display:none; }
.toast.show { display:block; }
.toast-title { font-size:13px; font-weight:700; margin-bottom:3px; }
.toast-body { font-size:11px; color:var(--muted); line-height:1.5; }
.toast-body a { color:var(--amber); }
.toast.success .toast-title { color:var(--green); }
.toast.error .toast-title { color:var(--red); }
.toast.info .toast-title { color:var(--amber); }

/* ── SPINNER ── */
.spinner { display:inline-block; width:14px; height:14px; border:2px solid rgba(0,0,0,0.25); border-top-color:#000; border-radius:50%; animation:spin 0.7s linear infinite; vertical-align:middle; margin-right:7px; }
.ghost-spin { border-top-color:var(--amber); border-color:rgba(245,166,35,0.2); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:none} }
@keyframes fadeInRight { from{opacity:0;transform:translateX(28px)} to{opacity:1;transform:none} }
@keyframes slideUp { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:none} }
@keyframes spin { to{transform:rotate(360deg)} }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.fade-in { opacity:0; transform:translateY(28px); transition:opacity 0.6s ease,transform 0.6s ease; }
.fade-in.vis { opacity:1; transform:none; }
.d1{transition-delay:0.1s} .d2{transition-delay:0.2s} .d3{transition-delay:0.3s} .d4{transition-delay:0.4s}

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  .nav-links, .nav-right .btn-launch-nav { display:none; }
  .hamburger { display:flex; }
  nav { width:calc(100% - 24px); }
  .section { padding:60px 5%; }
}
