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

:root {
  --blue-1:   #1a1a2e;
  --blue-2:   #16213e;
  --blue-3:   #0f3460;
  --accent-1: #4f8ef7;
  --accent-2: #7c5cbf;
  --accent-3: #a78bfa;
  --green:    #22c55e;
  --white:    #ffffff;
  --white-70: rgba(255,255,255,0.70);
  --white-40: rgba(255,255,255,0.40);
  --white-10: rgba(255,255,255,0.08);
  --border:   rgba(255,255,255,0.10);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--blue-1);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-1); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

/* ─── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--white-70); }

/* ─── Layout Helpers ────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }

/* ─── Navigation ────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,26,46,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
}

.nav__logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--white-70);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--white); text-decoration: none; }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero__glow {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(79,142,247,0.18) 0%, rgba(124,92,191,0.12) 50%, transparent 75%);
  pointer-events: none;
}

.hero__icon {
  width: 110px;
  height: 110px;
  border-radius: 26px;
  margin: 0 auto 32px;
  box-shadow: 0 24px 64px rgba(79,142,247,0.35), 0 4px 16px rgba(0,0,0,0.4);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white-10);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-3);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero__badge .dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
}

.hero h1 {
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.18rem;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--white-70);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: var(--white);
  box-shadow: 0 4px 24px rgba(79,142,247,0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,142,247,0.45);
  text-decoration: none;
  color: var(--white);
}

.btn--outline {
  background: var(--white-10);
  color: var(--white);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.13);
  text-decoration: none;
  color: var(--white);
  transform: translateY(-1px);
}

/* ─── Problem / Solution strip ──────────────────────────────────────────────── */
.problem-strip {
  background: rgba(15,52,96,0.45);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}

.problem-col h3 { margin-bottom: 16px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--white-40); }

.problem-list, .solution-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.problem-list li { color: var(--white-70); font-size: 0.95rem; padding-left: 22px; position: relative; }
.problem-list li::before { content: '✕'; position: absolute; left: 0; color: #f87171; font-size: 0.75rem; top: 3px; }

.solution-list li { color: var(--white-70); font-size: 0.95rem; padding-left: 22px; position: relative; }
.solution-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-size: 0.85rem; top: 2px; }

.arrow-divider {
  font-size: 2rem;
  color: var(--accent-1);
  text-align: center;
}

/* ─── Features ──────────────────────────────────────────────────────────────── */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 16px; }
.section-sub { color: var(--white-70); max-width: 560px; margin-bottom: 56px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white-10);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(79,142,247,0.4);
  transform: translateY(-3px);
}

.feature-card__icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { font-size: 0.92rem; }

/* ─── Encryption Section ────────────────────────────────────────────────────── */
.encryption-section {
  background: linear-gradient(135deg, rgba(15,52,96,0.6) 0%, rgba(124,92,191,0.2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.encryption-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,92,191,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.encryption-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.encryption-steps { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }

.encryption-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 2px;
}

.encryption-steps li p { font-size: 0.93rem; margin: 0; }
.encryption-steps li strong { color: var(--white); }

.crypto-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
}

.crypto-box__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 16px;
}

.crypto-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.crypto-row:last-child { border-bottom: none; }

.crypto-row .label { color: var(--white-70); font-size: 0.8rem; }
.crypto-row .value { color: var(--green); font-size: 0.8rem; font-weight: 600; text-align: right; }

.server-stores {
  margin-top: 20px;
}

.server-stores__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white-70);
  margin-bottom: 12px;
}

.stores-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.stores-table th { color: var(--white-40); font-weight: 600; text-align: left; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.stores-table td { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--white-70); vertical-align: middle; }
.stores-table td:last-child { text-align: right; }

.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 0.72rem; font-weight: 700; }
.tag--enc { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.tag--plain { background: rgba(255,255,255,0.06); color: var(--white-40); border: 1px solid var(--border); }

/* ─── How it Works ──────────────────────────────────────────────────────────── */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 28px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
}

.step-card {
  text-align: center;
  padding: 20px 16px;
  position: relative;
  z-index: 1;
}

.step-card__num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  margin: 0 auto 16px;
  box-shadow: 0 0 24px rgba(79,142,247,0.4);
}

.step-card h3 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.88rem; }

/* ─── CTA ───────────────────────────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(79,142,247,0.12), rgba(124,92,191,0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
}

.cta-section h2 { margin-bottom: 14px; }
.cta-section p { margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
}

.footer__logo img { width: 28px; height: 28px; border-radius: 6px; }

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer__links a { color: var(--white-70); font-size: 0.88rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--white); text-decoration: none; }

.footer__copy { color: var(--white-40); font-size: 0.82rem; }

/* ─── Privacy Page ──────────────────────────────────────────────────────────── */
.privacy-hero {
  padding: 130px 0 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}

.privacy-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.privacy-hero p { color: var(--white-40); font-size: 0.88rem; }

.privacy-body { max-width: 760px; }

.privacy-body h2 {
  font-size: 1.3rem;
  margin: 48px 0 14px;
  color: var(--white);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.privacy-body h3 { font-size: 1rem; margin: 24px 0 8px; color: var(--white); }

.privacy-body p { font-size: 0.95rem; color: var(--white-70); margin-bottom: 14px; line-height: 1.75; }

.privacy-body ul, .privacy-body ol {
  padding-left: 22px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.privacy-body li { font-size: 0.95rem; color: var(--white-70); line-height: 1.65; }

.privacy-body strong { color: var(--white); font-weight: 600; }

.privacy-highlight {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 20px 0;
}

.privacy-highlight p { color: var(--white-70); margin: 0; font-size: 0.92rem; }
.privacy-highlight strong { color: var(--green); }

.privacy-crypto-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.88rem;
}

.privacy-crypto-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--white-10);
  color: var(--white-40);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

.privacy-crypto-table td {
  padding: 10px 14px;
  color: var(--white-70);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
}

.privacy-crypto-table tr:last-child td { border-bottom: none; }
.privacy-crypto-table .enc { color: var(--green); font-weight: 600; }
.privacy-crypto-table .plain { color: var(--white-40); }


/* ─── Security page tinted section ──────────────────────────────────────────── */
.section--tinted { background: rgba(15,52,96,0.3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ─── Email verification page ───────────────────────────────────────────────── */
.verify-shell {
  min-height: calc(100vh - 120px);
  padding: 148px 0 72px;
  position: relative;
  overflow: hidden;
}

.verify-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 52px 42px;
  text-align: center;
  background: linear-gradient(135deg, rgba(15,52,96,0.68) 0%, rgba(124,92,191,0.24) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28), 0 8px 40px rgba(79,142,247,0.16);
  position: relative;
  overflow: hidden;
}

.verify-card::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(124,92,191,0.28) 0%, transparent 70%);
  pointer-events: none;
}

.verify-card > * {
  position: relative;
  z-index: 1;
}

.verify-card__icon {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  margin: 0 auto 24px;
  box-shadow: 0 20px 56px rgba(79,142,247,0.32), 0 4px 16px rgba(0,0,0,0.35);
}

.verify-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white-10);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-3);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verify-card__badge .dot {
  width: 7px;
  height: 7px;
  background: var(--accent-3);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-3);
}

.verify-card__badge--success { color: var(--green); }
.verify-card__badge--success .dot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.verify-card__badge--error { color: #f87171; }
.verify-card__badge--error .dot { background: #f87171; box-shadow: 0 0 6px #f87171; }

.verify-card h1 {
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.verify-card p {
  max-width: 460px;
  margin: 0 auto 32px;
  font-size: 1.04rem;
}

.verify-card__note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--white-40);
  font-size: 0.86rem;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }

  .problem-grid {
    grid-template-columns: 1fr;
  }
  .arrow-divider { transform: rotate(90deg); }

  .encryption-grid { grid-template-columns: 1fr; }

  .encryption-section { padding: 40px 24px; }

  .steps-row::before { display: none; }

  .verify-shell { padding: 120px 0 56px; }
  .verify-card { padding: 42px 28px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }

}

@media (max-width: 480px) {
  .hero { padding: 120px 0 72px; }
  .section { padding: 64px 0; }
  .cta-section { padding: 48px 24px; }
  .verify-card { padding: 36px 22px; }
}
