/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-500: #1565C0;
  --blue-400: #1976D2;
  --blue-300: #42A5F5;
  --blue-900: #0D47A1;
  --dark:     #0a0e1a;
  --dark-2:   #111827;
  --dark-3:   #1a2235;
  --dark-card:#151d2e;
  --border:   rgba(255,255,255,0.08);
  --text:     #e2e8f0;
  --muted:    #94a3b8;
  --radius:   16px;
  --radius-sm:10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography helpers ───────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #42A5F5 0%, #1565C0 50%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #1976D2, #1565C0);
  color: #fff;
  box-shadow: 0 4px 20px rgba(21,101,192,.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1E88E5, #1976D2);
  box-shadow: 0 6px 28px rgba(21,101,192,.6);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.16);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.2);
}

.btn-platform {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--border);
  width: 100%;
  justify-content: center;
  margin-top: 20px;
  font-size: 14px;
}
.btn-platform:hover {
  background: rgba(21,101,192,.2);
  border-color: rgba(21,101,192,.4);
  color: #fff;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 12px;
}

/* ── Nav ──────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,14,26,.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all .3s;
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta {
  background: rgba(21,101,192,.3) !important;
  color: #60A5FA !important;
  border: 1px solid rgba(21,101,192,.4) !important;
}
.nav-cta:hover {
  background: rgba(21,101,192,.5) !important;
  color: #fff !important;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.nav-mobile a:hover { color: #fff; }
.nav-mobile.open { display: flex; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .35;
}
.g1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #1565C0, transparent 70%);
  top: -100px; left: -100px;
}
.g2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7C3AED, transparent 70%);
  bottom: 0; right: -100px;
}

.hero .container {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(21,101,192,.15);
  border: 1px solid rgba(21,101,192,.3);
  color: #60A5FA;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 16px; font-weight: 700; color: #fff; }
.stat span { font-size: 12px; color: var(--muted); }
.stat-divider {
  width: 1px; height: 36px;
  background: var(--border);
}

/* ── App Mockup ───────────────────────────────────────────────────── */
.hero-mockup {
  margin-top: 80px;
  width: 100%;
  max-width: 900px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.hero-mockup::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(21,101,192,.3), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.mockup-window {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
}

.mockup-titlebar {
  background: var(--dark-3);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green  { background: #28C840; }
.mockup-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: -60px;
}

.mockup-body {
  display: grid;
  grid-template-columns: 160px 200px 1fr;
  height: 340px;
}

.mockup-sidebar {
  background: var(--dark-3);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mockup-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.mockup-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.mockup-item.active { background: rgba(21,101,192,.2); color: #60A5FA; }

.mockup-list {
  border-right: 1px solid var(--border);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.mockup-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.mockup-entry:hover { background: rgba(255,255,255,.04); }
.active-entry { background: rgba(21,101,192,.15) !important; }
.entry-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.entry-info { overflow: hidden; }
.entry-info strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-info span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.mockup-detail {
  padding: 20px;
}
.detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.detail-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
}
.detail-header strong { display: block; font-size: 16px; font-weight: 700; }
.detail-header small { font-size: 12px; color: var(--muted); }

.detail-field {
  margin-bottom: 16px;
}
.detail-field label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.detail-field span { font-size: 14px; font-weight: 500; }

.password-dots { letter-spacing: 4px; font-size: 20px; }
.totp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #34D399;
}
.totp-badge small {
  font-size: 22px;
  color: var(--muted);
}

/* ── Features ─────────────────────────────────────────────────────── */
.features {
  padding: 120px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.feature-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover {
  border-color: rgba(21,101,192,.4);
  transform: translateY(-2px);
}

.feature-large {
  grid-column: span 2;
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon.blue   { background: rgba(21,101,192,.2); color: #60A5FA; }
.feature-icon.purple { background: rgba(124,58,237,.2); color: #A78BFA; }
.feature-icon.red    { background: rgba(220,38,38,.2);  color: #F87171; }
.feature-icon.green  { background: rgba(16,185,129,.2); color: #34D399; }
.feature-icon.orange { background: rgba(234,88,12,.2);  color: #FB923C; }
.feature-icon.teal   { background: rgba(20,184,166,.2); color: #2DD4BF; }
.feature-icon.indigo { background: rgba(99,102,241,.2); color: #818CF8; }
.feature-icon.yellow { background: rgba(234,179,8,.2);  color: #FDE047; }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.feature-detail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.fd-item {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fd-label { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fd-value { font-size: 13px; font-weight: 700; color: #60A5FA; }

/* ── Security ─────────────────────────────────────────────────────── */
.security {
  padding: 120px 0;
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.security-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.security-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.security-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  display: flex;
  gap: 16px;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(21,101,192,.2);
  border: 1px solid rgba(21,101,192,.3);
  color: #60A5FA;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.step-content span { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Crypto diagram */
.security-visual {
  display: flex;
  justify-content: center;
}

.crypto-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cd-box {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 24px;
  text-align: center;
  min-width: 200px;
  transition: border-color .2s;
}
.cd-box:hover { border-color: rgba(21,101,192,.5); }
.cd-icon { font-size: 28px; margin-bottom: 6px; }
.cd-label { font-size: 14px; font-weight: 600; }
.cd-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

.cd-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  padding: 4px 0;
}
.cd-arrow-label { font-size: 11px; color: var(--blue-300); font-weight: 600; text-align: center; margin-bottom: 2px; }

.cd-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.cd-arrow-side {
  display: flex;
  align-items: center;
  color: var(--muted);
  flex-direction: column;
}
.cd-arrow-side .cd-arrow-label { font-size: 10px; margin-top: 2px; }

.cd-box.master  { border-color: rgba(21,101,192,.4); }
.cd-box.key     { border-color: rgba(21,101,192,.5); background: rgba(21,101,192,.08); }
.cd-box.vault   { border-color: rgba(124,58,237,.4); }
.cd-box.entries { border-color: rgba(16,185,129,.4); }

/* ── Platforms ────────────────────────────────────────────────────── */
.platforms {
  padding: 120px 0;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.platform-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.platform-card:hover {
  border-color: rgba(21,101,192,.3);
  transform: translateY(-3px);
}
.platform-card.featured {
  border-color: rgba(21,101,192,.5);
  background: rgba(21,101,192,.07);
}
.platform-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(21,101,192,.3);
  border: 1px solid rgba(21,101,192,.4);
  color: #60A5FA;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}
.platform-icon {
  color: #60A5FA;
  margin-bottom: 24px;
}
.platform-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.platform-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.platform-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.platform-features li {
  font-size: 14px;
  color: var(--muted);
}
.platform-features li::first-letter { color: #34D399; }

/* ── Download ─────────────────────────────────────────────────────── */
.download {
  padding: 120px 0;
  background: var(--dark-2);
  border-top: 1px solid var(--border);
}

.download-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.download-inner canvas {
  margin: 0 auto 32px;
  display: block;
}
.download-inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.download-inner p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.6;
}
.download-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.download-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0 !important;
}

/* ── Footer ───────────────────────────────────────────────────────── */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
}
.footer-tagline { font-size: 14px; color: var(--muted); }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: rgba(148,163,184,.5); }

/* ── Scroll reveal ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-large { grid-column: span 2; }
  .security-inner { grid-template-columns: 1fr; gap: 60px; }
  .crypto-diagram { display: none; }
  .security-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-sidebar, .mockup-list { display: none; }
  .mockup-detail { padding: 24px; }
  .platforms-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: span 1; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .download-actions { flex-direction: column; align-items: center; }
  .hero-title { font-size: 2.4rem; }
}
