:root{
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --brand: #7c5cff;
  --brand-2: #20c997;
  --danger: #ff5c7a;
  --shadow: 0 18px 60px rgba(0,0,0,0.35);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 980px;
}

@media (prefers-color-scheme: light){
  :root{
    --bg: #f6f7fb;
    --panel: rgba(255, 255, 255, 0.85);
    --panel-strong: rgba(255, 255, 255, 0.95);
    --border: rgba(17, 24, 39, 0.12);
    --text: rgba(17, 24, 39, 0.92);
    --muted: rgba(17, 24, 39, 0.62);
    --shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  }
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(124, 92, 255, 0.55), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(32, 201, 151, 0.35), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(255, 92, 122, 0.20), transparent 55%),
    var(--bg);
  line-height: 1.55;
}

a{ color: inherit; }
img{ max-width: 100%; height: auto; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Top nav */
.nav{
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.65);
  backdrop-filter: blur(14px);
}
@media (prefers-color-scheme: light){
  .nav{ background: rgba(246, 247, 251, 0.75); }
}

.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.brand-dot{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.45);
}

.nav-links{
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-links a:hover{
  background: var(--panel);
  color: var(--text);
  border-color: var(--border);
}

.nav-links a[aria-current="page"]{
  background: var(--panel-strong);
  color: var(--text);
  border-color: var(--border);
}

/* Page layout */
main{
  padding: 28px 0 56px;
}

.hero{
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
}

.hero h1{
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
}

.hero p{
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.card{
  grid-column: span 12;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

@media (min-width: 820px){
  .card.half{ grid-column: span 6; }
}

.card h2{
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.card p{
  margin: 0;
  color: var(--muted);
}

.actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.btn:hover{ transform: translateY(-1px); background: var(--panel); }

.btn-primary{
  border-color: rgba(124, 92, 255, 0.55);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.90), rgba(32, 201, 151, 0.65));
}

.btn-primary:hover{ background: linear-gradient(135deg, rgba(124, 92, 255, 0.82), rgba(32, 201, 151, 0.58)); }

.btn-ghost{ background: transparent; }

.is-disabled,
.btn[aria-disabled="true"]{
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.app-icon{
  width: 88px;
  height: 88px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.kicker{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.kicker span{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* Privacy / long-form text */
.prose{
  color: var(--text);
}

.prose p{
  color: var(--muted);
  margin: 0;
  white-space: pre-line;
  line-height: 1.65;
}

.prose h1, .prose h2, .prose h3{
  color: var(--text);
}

.footer{
  padding: 22px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
