:root {
  --bg: #0b0b0f;
  --panel: #14141b;
  --panel-2: #1b1b24;
  --line: #272733;
  --text: #f4f2f6;
  --muted: #9b98a8;
  --accent: #ff3d6e;
  --accent-soft: rgba(255, 61, 110, 0.14);
  --gold: #ffcf4a;
  --ok: #3ddc97;
  --radius: 16px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(to bottom, rgba(11,11,15,.85), rgba(11,11,15,0));
}
.nav.solid { background: rgba(11,11,15,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 10px; align-items: center; }
.nav-links a, .nav-links button.link {
  background: none; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: 999px;
}
.nav-links a:hover, .nav-links button.link:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 13px 22px; font-weight: 700; font-size: 15px;
  background: var(--accent); color: #fff; transition: transform .15s, filter .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.danger { background: transparent; border: 1px solid #5a2333; color: #ff7c97; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.hero {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  padding: 120px clamp(18px, 5vw, 72px) 60px;
  background-color: #1a0f16;
  background-size: cover; background-position: center top;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11,11,15,.88) 0%, rgba(11,11,15,.55) 45%, rgba(11,11,15,.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11,11,15,0) 30%);
}
.hero-copy { max-width: 560px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(42px, 7vw, 88px); line-height: .98; letter-spacing: -.02em;
}
.hero p.lead { margin-top: 22px; font-size: 18px; color: #d9d5df; max-width: 460px; }
.hero-social { margin-top: 28px; display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.hero-social a:hover { color: var(--text); }

.plans-card {
  justify-self: end; width: 100%; max-width: 440px;
  background: rgba(20,20,27,.72); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 26px;
}
.plans-card h2 { font-family: var(--display); font-size: 20px; font-weight: 700; }
.plans-card .sub { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.plan-opt {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  margin-bottom: 10px; transition: border-color .15s, background .15s;
}
.plan-opt:hover { border-color: #3a3a48; }
.plan-opt.active { border-color: var(--accent); background: var(--accent-soft); }
.plan-opt input { accent-color: var(--accent); margin-top: 4px; }
.plan-opt .name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.plan-opt .perks { font-size: 13px; color: var(--muted); margin-top: 2px; }
.plan-opt .price { font-family: var(--display); font-weight: 700; font-size: 18px; white-space: nowrap; }
.plan-opt .price small { font-family: var(--body); font-size: 12px; color: var(--muted); font-weight: 500; }
.tag {
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 6px; background: var(--gold); color: #241b00;
}
.fine { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

.section { padding: 80px clamp(18px, 5vw, 72px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section h2.title { font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.01em; }
.muted { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line);
}
.tile .media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.tile.locked .media { filter: blur(18px) saturate(1.2); transform: scale(1.15); }
.tile .meta {
  position: absolute; inset: auto 0 0 0; padding: 14px;
  background: linear-gradient(0deg, rgba(0,0,0,.8), rgba(0,0,0,0));
}
.tile .meta strong { display: block; font-size: 15px; }
.tile .meta span { font-size: 12px; color: #cfcbd6; }
.tile .badge {
  position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700;
  background: rgba(0,0,0,.55); padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(6px);
}
.tile .lock {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px;
  font-size: 13px; font-weight: 600; padding: 16px;
}
.tile .lock .ico { font-size: 26px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step b { font-family: var(--display); color: var(--accent); font-size: 14px; }
.step h3 { margin: 8px 0 6px; font-size: 17px; }
.step p { color: var(--muted); font-size: 14px; }

footer.foot {
  padding: 40px clamp(18px, 5vw, 72px); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px;
}

.panel-wrap { padding: 100px clamp(18px, 5vw, 72px) 60px; max-width: 1240px; margin: 0 auto; }
.panel-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.panel-top h1 { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.row { display: grid; gap: 16px; }
.row.two { grid-template-columns: 1.2fr 1fr; }
.row.stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-family: var(--display); font-size: 28px; font-weight: 700; margin-top: 6px; }

.my-plan { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.my-plan .pname { font-family: var(--display); font-size: 26px; font-weight: 700; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.pill.ok { background: rgba(61,220,151,.12); color: var(--ok); }
.pill.off { background: #23232c; color: var(--muted); }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 28px 0 20px; overflow-x: auto; }
.tabs button {
  background: none; border: 0; cursor: pointer; padding: 10px 14px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button.on { color: var(--text); border-color: var(--accent); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.table-wrap { overflow-x: auto; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.field textarea { min-height: 80px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }

.bar { height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--accent); }

.plan-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--panel); display: flex; flex-direction: column; gap: 10px; }
.plan-box.current { border-color: var(--accent); }
.plan-box ul { list-style: none; font-size: 14px; color: #d2cfd9; display: grid; gap: 6px; flex: 1; }
.plan-box li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: 100%; max-width: 420px; max-height: 90vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
}
.modal-card h3 { font-family: var(--display); font-size: 22px; margin-bottom: 6px; }
.modal-x { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 26px; color: var(--muted); cursor: pointer; }
.switch { font-size: 14px; color: var(--muted); text-align: center; margin-top: 14px; }
.switch button { background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; }
.summary { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0; }
.notice { font-size: 12px; color: var(--muted); background: var(--panel-2); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 70;
  background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px;
  padding: 12px 18px; border-radius: 12px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; background-position: 70% top; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 5%, rgba(11,11,15,.6) 55%, rgba(11,11,15,.35) 100%); }
  .plans-card { justify-self: stretch; max-width: none; }
  .steps, .row.two, .form-grid { grid-template-columns: 1fr; }
}

.demo-flag {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 999px;
  background: var(--gold); color: #241b00;
}
