@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg:        #0d0d12;
  --surface:   #13131a;
  --surface2:  #1a1a24;
  --surface3:  #22222f;
  --border:    #2a2a3d;
  --accent:    #aaff00;
  --accent2:   #80cc00;
  --text:      #eeeeff;
  --muted:     #8888aa;
  --dim:       #4a4a62;
  --danger:    #ff4455;
  --r:         14px;
  --r-sm:      8px;
  --t:         0.2s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ─────────────────────── NAV ─────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(13,13,18,0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t);
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─────────────────────── BUTTONS ─────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0d0d12;
}
.btn-primary:hover {
  background: #c4ff1a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(170,255,0,0.25);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 99px; }

/* ─────────────────────── HERO ─────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(170,255,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow2 {
  position: absolute;
  bottom: -100px; left: 20%;
  width: 500px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(100,80,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 820px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(170,255,0,0.08);
  border: 1px solid rgba(170,255,0,0.2);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #66ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ─────────────────────── SECTION ─────────────────────── */
.section {
  padding: 96px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.section-sm { padding: 72px 24px; }
.section-center { text-align: center; }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}
.section-center .section-sub { margin: 0 auto; }

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ─────────────────────── CARDS ─────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  transition: border-color var(--t), transform var(--t);
}
.card:hover {
  border-color: rgba(170,255,0,0.25);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: rgba(170,255,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--accent);
}
.card-icon svg { width: 20px; height: 20px; stroke-width: 1.75; }
.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─────────────────────── GRIDS ─────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* ─────────────────────── WHAT IS ─────────────────────── */
.what-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.what-text .section-sub { max-width: 100%; }
.what-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}
.chip span { font-size: 0.9em; }

.what-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.what-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
}
.what-card-icon { font-size: 1.5rem; margin-bottom: 10px; }
.what-card-title { font-size: 0.9375rem; font-weight: 700; margin-bottom: 4px; }
.what-card-text { font-size: 0.8125rem; color: var(--muted); }

/* ─────────────────────── ARCH ─────────────────────── */
.arch-container {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 48px;
}
.arch-side {
  flex: 1;
  padding: 40px;
}
.arch-side + .arch-side {
  border-left: 1px solid var(--border);
}
.arch-side-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.arch-side-title {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.arch-side-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.arch-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arch-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}
.arch-bullets li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.arch-protocols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.proto-badge {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  text-align: center;
}
.proto-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
}
.proto-desc {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
}

/* ─────────────────────── SECURITY ─────────────────────── */
.sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 48px;
}
.sec-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
}
.sec-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: rgba(170,255,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
}
.sec-icon svg { width: 18px; height: 18px; stroke-width: 1.75; }

.what-card-icon { color: var(--accent); }
.what-card-icon svg { width: 26px; height: 26px; stroke-width: 1.75; }
.sec-label {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.sec-desc { font-size: 0.8125rem; color: var(--muted); }

/* ─────────────────────── STATS BAND ─────────────────────── */
.stats-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
}
.stats-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-num {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.stat-unit { font-size: 1.5rem; font-weight: 900; }
.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 8px;
}
.stat-sub {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ─────────────────────── DEPLOY ─────────────────────── */
.deploy-steps {
  display: flex;
  gap: 0;
  margin-top: 48px;
  position: relative;
}
.deploy-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent2));
}
.deploy-step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.deploy-step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #0d0d12;
  font-size: 1.125rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}
.deploy-step-title { font-size: 0.9375rem; font-weight: 700; margin-bottom: 6px; }
.deploy-step-text { font-size: 0.8125rem; color: var(--muted); }

/* ─────────────────────── DOWNLOAD CTA ─────────────────────── */
.download-cta {
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface3) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 48px;
}
.download-cta::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(170,255,0,0.08) 0%, transparent 70%);
}
.download-cta-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
}
.download-cta-sub {
  color: var(--muted);
  margin-bottom: 32px;
  position: relative;
}
.download-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* ─────────────────────── FOOTER ─────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: 0.8125rem; color: var(--dim); }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color var(--t);
}
.footer-links a:hover { color: var(--text); }

/* ─────────────────────── LOGIN PAGE ─────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
}
.auth-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.auth-logo span { color: var(--accent); }
.auth-subtitle { font-size: 0.875rem; color: var(--muted); margin-bottom: 36px; }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--muted);
}
.form-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--t);
  outline: none;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--dim); }

.form-error {
  background: rgba(255,68,85,0.1);
  border: 1px solid rgba(255,68,85,0.3);
  color: var(--danger);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.btn-block { width: 100%; justify-content: center; border-radius: var(--r-sm); }

.auth-back {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.auth-back a { color: var(--accent); }

/* ─────────────────────── DOWNLOADS PAGE ─────────────────────── */
.dl-page {
  min-height: 100vh;
  background: var(--bg);
  padding-top: 64px;
}
.dl-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px;
}
.dl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 12px;
}
.dl-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.dl-list { display: flex; flex-direction: column; gap: 12px; }

.dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
  transition: border-color var(--t);
  gap: 16px;
}
.dl-item:hover { border-color: rgba(170,255,0,0.3); }

.dl-file-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.dl-file-info { flex: 1; min-width: 0; }
.dl-file-name {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dl-file-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2px;
}
.dl-empty {
  text-align: center;
  padding: 64px;
  color: var(--muted);
}

/* ─────────────────────── RESPONSIVE ─────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .what-layout { grid-template-columns: 1fr; gap: 40px; }
  .arch-container { flex-direction: column; }
  .arch-side + .arch-side { border-left: none; border-top: 1px solid var(--border); }
  .arch-protocols { grid-template-columns: 1fr 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .deploy-steps { flex-direction: column; gap: 24px; }
  .deploy-steps::before { display: none; }
  .footer { flex-direction: column; text-align: center; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .what-visual { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .arch-protocols { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .download-cta { padding: 40px 24px; }
  .auth-card { padding: 36px 24px; }
}
