:root {
  --bg: #0c1110;
  --bg-elev: #141b19;
  --ink: #e8f0ec;
  --muted: #8fa39a;
  --line: rgba(232, 240, 236, 0.12);
  --accent: #3dd6c3;
  --accent-dim: #1f8f82;
  --danger: #e07a6a;
  --ok: #7dcb8a;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --radius: 14px;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(61, 214, 195, 0.16), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(90, 140, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0f0e 0%, var(--bg) 40%, #0a1012 100%);
  line-height: 1.55;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.top, main, .foot { position: relative; z-index: 1; }

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:not(.btn):hover { color: var(--ink); }

.nav-user {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 0.9rem;
}

.badge-pro,
.badge-free {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.badge-pro {
  background: rgba(61, 214, 195, 0.18);
  color: var(--accent);
}

.badge-free {
  background: rgba(232, 240, 236, 0.08);
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #06201c;
}

.btn-primary:hover { background: #62e4d3; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover { border-color: rgba(232, 240, 236, 0.28); }

.btn-lg { padding: 0.85rem 1.35rem; font-size: 1rem; }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - 5.5rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.lede {
  margin: 1.25rem 0 1.75rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-visual {
  position: relative;
  min-height: 360px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: drift 12s ease-in-out infinite;
}

.orb-a {
  width: 220px;
  height: 220px;
  left: 8%;
  top: 12%;
  background: radial-gradient(circle at 30% 30%, #7ff5e6, #1a6b62 70%, transparent 75%);
  opacity: 0.85;
}

.orb-b {
  width: 160px;
  height: 160px;
  right: 10%;
  bottom: 18%;
  background: radial-gradient(circle at 40% 40%, #a8c4ff, #31456e 70%, transparent 75%);
  opacity: 0.7;
  animation-delay: -4s;
}

.panel {
  position: absolute;
  inset: 12% 8% 10% 14%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(20, 30, 28, 0.9), rgba(10, 14, 16, 0.75));
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.panel-bar {
  height: 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.panel-grid {
  position: absolute;
  inset: 36px 0 0;
  background:
    linear-gradient(rgba(61, 214, 195, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 214, 195, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 75%);
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.05); }
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.features article {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 27, 25, 0.55);
}

.features h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-buy { padding-top: 1rem; }

.buy-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(61, 214, 195, 0.08), transparent 40%),
    var(--bg-elev);
}

.buy-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.buy-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
}

.price {
  margin: 0;
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
}

.price-note,
.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.ok { margin: 0; color: var(--ok); font-weight: 600; }

.download-box {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(20, 27, 25, 0.55);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 36rem;
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.foot a { color: var(--muted); }

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.6rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(224, 122, 106, 0.12);
  color: #f0b4aa;
  margin-bottom: 1rem;
}

.alert-ok {
  background: rgba(125, 203, 138, 0.12);
  color: var(--ok);
}

@media (max-width: 860px) {
  .hero,
  .buy-card,
  .features {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-top: 1.5rem;
  }
  .hero-visual { min-height: 260px; }
  nav a:not(.btn):nth-child(-n+2) { display: none; }
}
