/* ============================================================
   DealRadar — design system (immersive / Nixtio-inspired)
   ============================================================ */
:root {
  --bg: #080b11;
  --bg-2: #0c1119;
  --surface: #121a24;
  --surface-2: #18222f;
  --border: #222d3a;
  --border-lit: #33475e;

  --text: #eaf1f8;
  --text-dim: #a7b6c8;
  --text-mute: #6c7d92;

  --brand: #2ea6ff;
  --brand-2: #1e8fe6;
  --signal: #34d399;
  --drop: #fbbf24;
  --danger: #f87171;

  --radius: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .45);
  --maxw: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, system-ui, "Noto Sans Georgian", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---- layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
.eyebrow {
  color: var(--brand); font-weight: 650; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; font-weight: 750; letter-spacing: -.015em; }
.h-sec { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.lead { color: var(--text-dim); font-size: 1.12rem; max-width: 620px; }
.muted { color: var(--text-mute); font-size: .9rem; }
.split-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  padding: 12px 22px; border-radius: 11px; font-size: .98rem; font-weight: 650;
  transition: transform .08s ease, background .15s ease, opacity .15s ease;
}
.btn:hover { background: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; border-radius: 13px; }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-lit); }
.btn-ghost:hover { background: var(--surface); }
.btn-tg { background: #29a9eb; }
.btn-tg:hover { background: #1e96d4; }
.pill-white {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: #0a0e14; border-radius: 999px; padding: 11px 22px;
  font-weight: 650; font-size: .95rem;
}
.pill-white:hover { background: #e7edf3; }
.btn-white {
  display: block; text-align: center; background: #fff; color: #0a0e14;
  border: none; cursor: pointer; border-radius: 13px; padding: 14px;
  width: 100%; font-weight: 700; font-size: 1rem;
}
.btn-white:hover { background: #e7edf3; }

/* ============================================================
   HERO — immersive framed
   ============================================================ */
.hero { padding: 16px; }
.hero-frame {
  position: relative; overflow: hidden;
  border-radius: 30px; border: 1px solid rgba(255, 255, 255, .10);
  min-height: min(92vh, 860px);
  display: flex; flex-direction: column;
  padding: clamp(24px, 3.2vw, 44px);
  background:
    radial-gradient(120% 100% at 82% 8%, rgba(52, 211, 153, .12), transparent 52%),
    radial-gradient(90% 90% at 12% 96%, rgba(251, 191, 36, .12), transparent 48%),
    linear-gradient(155deg, #10202c 0%, #0b131c 58%, #080b11 100%);
}
/* faint radar rings, top-right */
.hero-frame::before {
  content: ""; position: absolute; right: -12%; top: -22%;
  width: 680px; height: 680px; border-radius: 50%; pointer-events: none; opacity: .8;
  background:
    radial-gradient(circle, transparent 27%, rgba(255, 255, 255, .04) 27.6%, transparent 28.4%),
    radial-gradient(circle, transparent 43%, rgba(255, 255, 255, .035) 43.6%, transparent 44.4%),
    radial-gradient(circle, transparent 59%, rgba(255, 255, 255, .03) 59.6%, transparent 60.4%);
}
.hero-nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 1.15rem; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 1rem;
  background: radial-gradient(circle at 30% 30%, var(--brand), #0b3c66);
}
.hero-nav .nav-links { display: flex; align-items: center; gap: 26px; }
.hero-nav .nav-links a { color: rgba(255, 255, 255, .72); font-size: .95rem; }
.hero-nav .nav-links a:hover { color: #fff; }

.hero-body {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; justify-content: center; padding: 34px 0;
}
.hero-eyebrow { color: rgba(255, 255, 255, .6); letter-spacing: .14em;
  text-transform: uppercase; font-size: .8rem; font-weight: 600; margin: 0 0 20px; }
.hero-title {
  font-size: clamp(2.7rem, 8.5vw, 6.2rem); line-height: .96; letter-spacing: -.025em;
  font-weight: 750; margin: 0; max-width: 15ch;
}
.hero-title .solid { color: #fff; }
.hero-title .frost { color: rgba(255, 255, 255, .32); }

.hero-foot {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.hero-desc { max-width: 360px; color: rgba(255, 255, 255, .72); font-size: 1.02rem; }
.hero-proof { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-weight: 700; }
.hero-proof .star { color: var(--drop); }
.hero-proof small { color: rgba(255, 255, 255, .55); font-weight: 400; }

/* glassmorphism live-alert card */
.glass {
  background: rgba(13, 20, 29, .55);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 22px;
  padding: 22px; width: min(380px, 100%); box-shadow: var(--shadow);
}
.glass .g-tag { color: var(--signal); font-weight: 700; font-size: .9rem; }
.glass .g-title { font-size: 1.15rem; font-weight: 700; margin: 12px 0 4px; }
.glass .g-meta { color: rgba(255, 255, 255, .68); margin-bottom: 16px; font-size: .95rem; }
.glass .g-row { display: flex; gap: 10px; margin-bottom: 16px; }
.glass .g-chip {
  flex: 1; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px; padding: 9px 12px; font-size: .95rem; font-weight: 600;
}
.glass .g-chip small { display: block; color: rgba(255, 255, 255, .5); font-weight: 400; font-size: .78rem; }

/* ---- feature cards ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card:hover { border-color: var(--border-lit); }
.feat-ico { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.feat-title { font-size: 1.14rem; font-weight: 700; margin-bottom: 7px; }
.feat-desc { color: var(--text-dim); font-size: .97rem; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step-num {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-lit);
  color: var(--brand); font-weight: 800; font-size: 1.18rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.12rem; }
.step p { color: var(--text-dim); font-size: .97rem; margin: 0; }

/* ---- sample alerts ---- */
.alert-demo {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; max-width: 380px; box-shadow: var(--shadow);
}
.alert-demo .a-head { color: var(--signal); font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.alert-demo.drop .a-head { color: var(--drop); }
.alert-demo .a-title { font-weight: 650; }
.alert-demo .a-meta { color: var(--text-dim); font-size: .93rem; margin: 5px 0; }
.alert-demo .a-link { color: var(--brand); font-size: .88rem; word-break: break-all; }

/* ---- sites ---- */
.sites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.site-card { text-align: center; padding: 32px 22px; }
.site-ico { font-size: 2.3rem; display: block; margin-bottom: 12px; }
.site-name { font-weight: 750; font-size: 1.12rem; }
.site-kind { color: var(--text-mute); font-size: .9rem; }

/* ---- CTA band ---- */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10); border-radius: 26px; padding: 60px; text-align: center;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(46, 166, 255, .16), transparent 60%),
    linear-gradient(160deg, #10202c, #0b131c);
}

/* ---- footer ---- */
.foot { border-top: 1px solid var(--border); padding: 36px 0; color: var(--text-mute); font-size: .9rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   Top nav (app pages) + app shell
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 50;
  background: rgba(8, 11, 17, .8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-dim); font-size: .95rem; }
.nav-links a:hover { color: var(--text); }

.app-main { max-width: 700px; margin: 34px auto; padding: 0 20px; }
.panel { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.panel h2 { font-size: 1.16rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.add-form { display: flex; gap: 10px; margin-top: 14px; }
.add-form input { flex: 1; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--border-lit);
  background: var(--bg); color: var(--text); font-size: .95rem; }
.add-form input:focus { outline: none; border-color: var(--brand); }

.filter-list { list-style: none; padding: 0; margin: 12px 0 0; }
.filter-item { display: flex; align-items: center; justify-content: space-between;
  padding: 15px 0; border-top: 1px solid var(--border); }
.filter-item:first-child { border-top: none; }
.site-tag { font-size: .78rem; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-lit); margin-right: 10px; }
.filter-label { font-weight: 550; }
.filter-id { color: var(--text-mute); font-size: .8rem; margin-left: 6px; }
.btn-remove { background: transparent; border: 1px solid transparent; cursor: pointer;
  font-size: 1.05rem; opacity: .55; padding: 6px 9px; border-radius: 9px; }
.btn-remove:hover { opacity: 1; background: rgba(248, 113, 113, .12); }

.flash { padding: 13px 16px; border-radius: 11px; margin-bottom: 18px; font-size: .95rem; }
.flash.ok { background: rgba(52, 211, 153, .13); color: var(--signal); border: 1px solid rgba(52, 211, 153, .3); }
.flash.error { background: rgba(248, 113, 113, .13); color: var(--danger); border: 1px solid rgba(248, 113, 113, .3); }

.login-card { max-width: 440px; margin: 78px auto; text-align: center; }
.login-card .logo-lg { width: 66px; height: 66px; border-radius: 18px; margin: 0 auto 20px;
  background: radial-gradient(circle at 30% 30%, var(--brand), #0b3c66); display: grid; place-items: center; font-size: 2rem; }
.login-box { margin-top: 24px; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .split-2, .grid-3, .steps, .sites { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero-foot { flex-direction: column; align-items: stretch; }
  .glass { width: 100%; }
  .hero-nav .nav-links { display: none; }
  .cta-band { padding: 40px 24px; }
}
