:root{
  --bg: #0a0f17;
  --bg-elevated: #0f1722;
  --card: #121b27;
  --card-soft: rgba(255,255,255,.04);
  --text: #edf2f9;
  --muted: #9fb0c3;
  --muted-strong: #c5d1de;
  --accent: #7dd3fc;
  --accent-soft: rgba(125,211,252,.16);
  --accent-border: rgba(125,211,252,.30);

  --success: #86efac;
  --warning: #fde68a;
  --danger: #fca5a5;
  --neutral: #cbd5e1;

  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.12);

  --shadow-sm: 0 8px 24px rgba(0,0,0,.18);
  --shadow-md: 0 18px 44px rgba(0,0,0,.24);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;

  --control-height: 44px;
  --container: 1120px;
}

*{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1000px 480px at 10% 0%, rgba(125,211,252,.10), transparent 60%),
    radial-gradient(900px 420px at 90% 10%, rgba(167,243,208,.06), transparent 58%),
    var(--bg);
  color: var(--text);
}

body{
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea{
  font: inherit;
}

.container{
  width: min(var(--container), 92%);
  margin: 0 auto;
}

/* ===== Top bar / branding ===== */

.header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 18px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, rgba(125,211,252,.88), rgba(167,243,208,.78));
  color: #041018;
  box-shadow: 0 8px 24px rgba(125,211,252,.14);
}

.brand-name{
  font-weight: 800;
  letter-spacing: .15px;
  color: var(--text);
}

.nav{
  display: flex;
  gap: 18px;
}

.nav a{
  color: var(--muted);
  font-weight: 600;
  transition: color .18s ease, opacity .18s ease;
}

.nav a:hover{
  color: var(--text);
}

/* ===== Typography ===== */

h1, h2, h3, h4{
  margin: 0;
  letter-spacing: -.02em;
}

h1{
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.04;
  margin: 14px 0 12px;
}

h2{
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 16px;
}

h3{
  font-size: 19px;
  line-height: 1.25;
}

.accent{
  background: linear-gradient(135deg, var(--accent), #b6f0dd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
  max-width: 60ch;
}

/* ===== Reusable surfaces ===== */

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}

.card-soft{
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.section{
  padding: 72px 0 0;
}

.section h2{
  margin-bottom: 16px;
}

/* ===== Badge / pills ===== */

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

.pill-row{
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pill{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* ===== Buttons ===== */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--control-height);
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    opacity .18s ease;
}

.btn:hover{
  transform: translateY(-1px);
}

.btn:active{
  transform: translateY(0);
}

.btn-primary{
  background: rgba(125,211,252,.12);
  border-color: rgba(125,211,252,.26);
  box-shadow: 0 10px 28px rgba(125,211,252,.08);
}

.btn-primary:hover{
  background: rgba(125,211,252,.18);
  border-color: rgba(125,211,252,.36);
}

.btn-secondary{
  background: rgba(255,255,255,.04);
  border-color: var(--border);
}

.btn-secondary:hover{
  background: rgba(255,255,255,.07);
  border-color: var(--border-strong);
}

.btn-ghost{
  background: transparent;
  border-color: transparent;
  color: var(--muted-strong);
}

.btn-ghost:hover{
  background: rgba(255,255,255,.05);
  border-color: transparent;
}

.small-btn{
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

/* ===== Form controls ===== */

.input,
.select,
.textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
select,
textarea{
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px;
  padding: 0 14px;
  min-height: var(--control-height);
  outline: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

textarea,
.textarea{
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder{
  color: var(--muted);
}

input:focus,
select:focus,
textarea:focus,
.input:focus,
.select:focus,
.textarea:focus{
  border-color: rgba(125,211,252,.38);
  background: rgba(255,255,255,.055);
  box-shadow: 0 0 0 3px rgba(125,211,252,.10);
}

select option{
  background: #111827;
  color: #f9fafb;
}

label{
  display: inline-block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted-strong);
}

/* ===== Hero / landing ===== */

.hero{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  padding: 36px 0 12px;
  align-items: center;
}

.cta-row{
  display: flex;
  gap: 12px;
  margin: 20px 0 10px;
  flex-wrap: wrap;
}

.trust{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-item{
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(167,243,208,.92);
  box-shadow: 0 0 0 6px rgba(167,243,208,.10);
}

/* ===== Email / marketing cards ===== */

.card-title{
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .3px;
  margin-bottom: 10px;
}

.email{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 14px;
}

.email-row{
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.email-row strong{
  color: var(--text);
}

.email-body{
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

.grid3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature{
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.feature-icon{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(125,211,252,.12);
  border: 1px solid rgba(125,211,252,.20);
  font-weight: 900;
  margin-bottom: 10px;
}

.feature h3{
  margin: 6px 0 8px;
  font-size: 17px;
}

.feature p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.privacy{
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.big{
  font-size: 16px;
  line-height: 1.72;
  color: var(--muted);
}

.big strong{
  color: var(--text);
}

.privacy ul{
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.details{
  margin-top: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--muted);
}

.details summary{
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

.cta-card{
  margin-top: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.cta-card p{
  color: var(--muted);
  line-height: 1.7;
}

.small{
  font-size: 12px;
  opacity: .9;
  margin-top: 12px;
}

/* ===== Feedback ===== */

.error-box,
.success-box{
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  margin-top: 14px;
}

.error-box{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.22);
  color: #ffd4d4;
}

.success-box{
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.22);
  color: #d5ffe3;
}

/* ===== App stats ===== */

.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 28px 0 18px;
}

.stat-card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.stat-title{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 700;
}

.stat-value{
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1;
}

/* ===== Footer ===== */

.footer{
  padding: 32px 0 24px;
  margin-top: 34px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.footer-links{
  display: flex;
  gap: 14px;
}

/* ===== Responsive ===== */

@media (max-width: 900px){
  .hero{
    grid-template-columns: 1fr;
  }

  .nav{
    display: none;
  }

  .grid3{
    grid-template-columns: 1fr;
  }

  .stats-grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px){
  .stats-grid{
    grid-template-columns: 1fr;
  }

  .container{
    width: min(1120px, 94%);
  }
}