/* ====== NAV ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: padding .3s var(--ease), background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-scrolled {
  padding: 12px 0;
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand-sub { font-family: var(--font-display); font-size: 8px; font-weight: 500; letter-spacing: .28em; color: var(--text-3); }

.nav-menu { display: flex; gap: 4px; margin-left: 24px; }
.nav-link, .nav-link-btn {
  font-size: 14px; color: var(--text-2); padding: 8px 14px; border-radius: 10px;
  background: transparent; border: 0; display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover, .nav-link-btn:hover { color: var(--text); background: rgba(255,138,60,.08); }

.nav-dd { position: relative; }
.dd-panel {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 280px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  animation: ddIn .25s var(--ease);
}
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text); font-size: 14px;
  transition: background .2s var(--ease);
}
.dd-item:hover { background: rgba(255,138,60,.08); }
.dd-ico {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,138,60,.10); border: 1px solid rgba(255,138,60,.18);
  color: var(--orange-300); border-radius: 9px;
}
.dd-t { font-weight: 500; font-size: 13px; }
.dd-d { font-size: 11px; color: var(--text-3); }

.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--border); border-radius: 10px; color: var(--text-2);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { color: var(--orange-300); border-color: rgba(255,138,60,.35); background: rgba(255,138,60,.05); }
.lang-wrap { position: relative; }
.lang-btn { width: auto; padding: 0 12px; gap: 8px; font-size: 13px; }
.lang-cur { font-family: var(--font-mono); font-weight: 500; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 6px; min-width: 140px; box-shadow: 0 20px 40px -15px rgba(0,0,0,.6);
  animation: ddIn .2s var(--ease); z-index: 20;
}
.lang-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; background: transparent; color: var(--text); border-radius: 8px;
  font-size: 13px; font-family: var(--font-body);
}
.lang-item:hover { background: rgba(255,138,60,.08); }
.lang-item.is-on { color: var(--orange-300); }
.lang-flag { font-size: 16px; }

.nav-login {
  font-size: 14px; color: var(--text-2); padding: 8px 14px; border-radius: 10px;
  transition: color .2s var(--ease);
}
.nav-login:hover { color: var(--text); }

.burger {
  display: none; width: 38px; height: 38px; padding: 0; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
}
.burger span { width: 18px; height: 1.5px; background: var(--text); display: block; border-radius: 1px; }
.mobile-menu {
  display: none; flex-direction: column; gap: 8px; padding: 18px;
  background: var(--surface); border-top: 1px solid var(--border);
}
.mobile-menu a { padding: 12px 16px; border-radius: 10px; color: var(--text); }
.mobile-menu a:hover { background: rgba(255,138,60,.08); }

.nav-right .btn { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

@media (max-width: 980px) {
  .nav-menu { display: none; }
  .nav-login { display: none; }
}
@media (max-width: 720px) {
  .burger { display: inline-flex; }
  .nav.is-open .mobile-menu { display: flex; }
}

/* ====== HERO ====== */
.hero { padding: 130px 0 80px; overflow: hidden; }
@media (max-width: 720px) { .hero { padding: 100px 0 60px; } }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 52px; align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Hero title — smaller than global h1 so it doesn't overpower the window */
.hero-title {
  margin-top: 18px;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.04;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  margin-top: 20px; max-width: 460px;
  font-size: 17px; line-height: 1.6; color: var(--text-2);
}
.hero-cta {
  display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap;
}
.play-pill {
  width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange-400); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 8px 20px -5px rgba(255,90,0,.5);
}

.hero-stats {
  margin-top: 44px; display: flex; align-items: center; gap: 28px;
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-v {
  font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat-l { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); letter-spacing: .04em; }
.hero-stat-sep { width: 1px; height: 36px; background: var(--border-strong); }

/* HERO DASHBOARD MOCK */
.hero-dash { position: relative; }
.hero-dash-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(255,122,24,.35), transparent 60%);
  filter: blur(40px); z-index: 0;
}
.hero-dash-frame {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #15100d 0%, #110b08 100%);
  border: 1px solid rgba(255,138,60,.28);
  border-radius: 18px; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 50px 100px -30px rgba(0,0,0,.8),
    0 0 100px -20px rgba(255,138,60,.5),
    0 0 0 4px rgba(255,138,60,.04);
}

.hero-dash-img {
  width: 100%; display: block;
  border-radius: 0;
}
/* HERO SCREENSHOT CAROUSEL */
.hero-sc { position: relative; }
.hero-sc-glow {
  position: absolute; inset: 0;
  background: radial-gradient(55% 50% at 60% 55%, rgba(255,122,24,.13), transparent 70%);
  filter: blur(60px); z-index: 0; pointer-events: none;
}
.hero-sc-window {
  position: relative; z-index: 1;
  /* bleed 80px past the right edge, clipped by .hero { overflow: hidden } */
  width: calc(100% + 80px);
  /* full border-radius — right corners hidden by the hero clip */
  border-radius: 14px;
  overflow: hidden;
  border: none;
  box-shadow: 0 32px 80px -20px rgba(0,0,0,.70);
  transition: box-shadow .35s ease;
}
.hero-sc-window:hover {
  box-shadow:
    0 32px 80px -20px rgba(0,0,0,.80),
    0 0 0 1px rgba(255,138,60,.18),
    0 0 60px -15px rgba(255,138,60,.25);
}
.hero-sc-footer {
  display: flex; justify-content: center;
  padding-top: 18px; position: relative; z-index: 1;
  padding-right: 80px;
}
@media (max-width: 980px) {
  .hero-sc-window { width: 100%; border-radius: 14px; }
  .hero-sc-footer { padding-right: 0; }
}

/* remove old hd-* rules that are no longer needed */
.hd-tabs { display: flex; gap: 4px; background: rgba(255,255,255,.04); padding: 3px; border-radius: 8px; border: 1px solid var(--border); }
.hd-tab { padding: 5px 12px; font-size: 11px; color: var(--text-3); border-radius: 6px; font-family: var(--font-display); font-weight: 500; letter-spacing: .02em; }
.hd-tab.is-on { background: linear-gradient(180deg, #ff8c3a, #ff5a00); color: #fff; box-shadow: 0 4px 12px -4px rgba(255,90,0,.6); }
.hd-search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border); padding: 6px 10px; border-radius: 8px;
  font-size: 12px; color: var(--text-3);
}
.hd-search .kbd { margin-left: auto; font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; background: rgba(255,255,255,.06); border-radius: 4px; }
.hd-rt { display: flex; align-items: center; gap: 8px; }
.hd-icon { color: var(--text-3); }
.hd-avatar {
  width: 28px; height: 28px; border-radius: 999px;
  background: linear-gradient(135deg, #ff8c3a, #ff4500); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600;
}

.hd-body { display: grid; grid-template-columns: 160px 1fr; min-height: 380px; }
.hd-side { padding: 12px 10px; border-right: 1px solid rgba(255,138,60,.08); display: flex; flex-direction: column; gap: 2px; }
.hd-nav {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  font-size: 12px; color: var(--text-3); border-radius: 8px;
  transition: color .2s, background .2s;
}
.hd-nav:hover { color: var(--text); background: rgba(255,138,60,.06); }
.hd-nav.is-on {
  color: var(--orange-300);
  background: linear-gradient(90deg, rgba(255,138,60,.15), rgba(255,138,60,.02));
  border-left: 2px solid var(--orange-400); padding-left: 8px;
}
.hd-nav-i { color: inherit; }
.hd-nav-b { margin-left: auto; font-family: var(--font-mono); font-size: 10px; background: var(--orange-400); color: #fff; padding: 1px 6px; border-radius: 999px; }

.hd-main { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.hd-row { display: grid; gap: 12px; }
.hd-row-1 { grid-template-columns: 1.4fr 1fr 1fr; }
.hd-row-2 { grid-template-columns: 1.1fr 1fr; flex: 1; }

.dash-tile {
  position: relative; padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; min-height: 100px;
}
.dash-tile.is-big {
  background: radial-gradient(120% 100% at 0% 0%, rgba(255,138,60,.18), transparent 60%), linear-gradient(180deg, rgba(255,138,60,.05), rgba(255,138,60,.01));
  border-color: rgba(255,138,60,.25);
}
.dash-tile-label { font-family: var(--font-display); font-size: 9px; font-weight: 600; letter-spacing: .16em; color: var(--text-3); text-transform: uppercase; }
.dash-tile-value { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin-top: 4px; letter-spacing: -0.02em; }
.dash-tile.is-big .dash-tile-value { color: var(--orange-300); }
.dash-tile-sub { font-size: 10px; color: var(--text-3); }
.dash-tile-spark { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; }
.spark { width: 100%; height: 100%; }

.dash-feed, .dash-funnel {
  padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  border: 1px solid var(--border);
}
.dash-feed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dash-feed-title { font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .15em; color: var(--text-3); text-transform: uppercase; }
.dash-pulse { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 9px; color: #22c55e; letter-spacing: .08em; text-transform: uppercase; }
.dash-pulse span { width: 5px; height: 5px; background: #22c55e; border-radius: 999px; box-shadow: 0 0 8px #22c55e; animation: pulse 1.2s infinite; }
.dash-feed-list { display: flex; flex-direction: column; gap: 4px; }
.feed-row {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center;
  padding: 5px 6px; border-radius: 8px;
  transition: background .2s;
}
.feed-row.is-new { animation: feedIn .5s var(--ease); background: rgba(255,138,60,.06); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.feed-avatar { width: 24px; height: 24px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.feed-name { font-size: 11px; font-weight: 500; line-height: 1.2; }
.feed-handle { font-size: 9px; color: var(--text-3); font-family: var(--font-mono); }
.feed-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; padding: 3px 7px; border-radius: 999px; font-family: var(--font-mono);
}
.feed-tag.is-tg { background: rgba(59,130,246,.15); color: #60a5fa; }
.feed-tag.is-mail { background: rgba(255,138,60,.15); color: var(--orange-300); }

.fn-row { display: grid; grid-template-columns: 90px 1fr 50px; gap: 8px; align-items: center; padding: 4px 0; }
.fn-l { font-size: 10px; color: var(--text-3); }
.fn-bar { height: 6px; background: rgba(255,255,255,.05); border-radius: 999px; overflow: hidden; }
.fn-fill { display: block; height: 100%; width: 0; border-radius: 999px; animation: fnFill 1.2s var(--ease) forwards; }
@keyframes fnFill { from { width: 0; } }
.fn-v { font-family: var(--font-mono); font-size: 10px; text-align: right; color: var(--text-2); }

.hero-toast {
  position: absolute; right: -20px; bottom: 60px; z-index: 5;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.6), 0 0 30px -10px rgba(255,138,60,.5);
  min-width: 260px; max-width: 280px;
  animation: toastIn .8s var(--ease) both;
  animation-delay: 1.6s;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.92); } to { opacity: 1; transform: none; } }
.toast-dot { width: 8px; height: 8px; border-radius: 999px; background: #22c55e; box-shadow: 0 0 10px #22c55e; margin-top: 6px; flex-shrink: 0; animation: pulse 1.4s infinite; }
.toast-t { font-size: 12px; font-weight: 500; }
.toast-d { font-size: 11px; line-height: 1.3; margin-top: 2px; }

@media (max-width: 720px) {
  .hero-dash-frame { transform: none; }
  .hd-body { grid-template-columns: 1fr; }
  .hd-side { display: none; }
  .hd-row-1, .hd-row-2 { grid-template-columns: 1fr; }
  .hero-toast { display: none; }
}

.section-head-center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.section-head-center p { margin-left: auto; margin-right: auto; }
