:root {
  --bg: #070a0f;
  --bg-2: #0a0f16;
  --panel: #0d141e;
  --panel-2: #111a26;
  --border: #1d2a3a;
  --border-2: #2a3b52;
  --text: #e8eef6;
  --muted: #8fa2b8;
  --muted-2: #64788f;
  --accent: #ff6b2c;
  --accent-2: #ffb02e;
  --green: #35e0a1;
  --red: #ff5573;
  --amber: #ffc857;
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(255, 107, 44, 0.11), transparent 60%),
    radial-gradient(700px 420px at 8% 8%, rgba(53, 224, 161, 0.06), transparent 60%);
  z-index: -1;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.15rem, 5vw, 3.8rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); font-weight: 720; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1rem; }
.container { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; }
.container.narrow { width: min(820px, calc(100% - 44px)); }
.container.wide { width: min(1380px, calc(100% - 44px)); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.tiny { font-size: 0.76rem; }
.center { text-align: center; }
.right { text-align: right; }
.mono { font-family: var(--mono); }
.row { display: flex; align-items: center; }
.gap { gap: 10px; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.hint { display: block; color: var(--muted-2); font-size: 0.76rem; margin-top: 3px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), #d9480f);
  color: #0a0d12;
  box-shadow: 0 6px 20px rgba(255, 107, 44, 0.25);
}
.brand-text { font-weight: 800; letter-spacing: 0.04em; font-size: 1rem; line-height: 1; display: flex; flex-direction: column; }
.brand-text span { font-size: 0.55rem; letter-spacing: 0.24em; color: var(--muted); font-weight: 600; margin-top: 4px; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.site-nav a:hover, .site-nav a.active { color: var(--text); text-decoration: none; }
.nav-user { display: flex; align-items: center; gap: 14px; }
.nav-link { color: var(--muted); font-size: 0.9rem; }
.nav-link:hover { color: var(--text); text-decoration: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 11px 18px; font-size: 0.92rem; font-weight: 650;
  font-family: inherit; cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, var(--accent), #ef5a1b); color: #0a0d12; box-shadow: 0 8px 24px rgba(255, 107, 44, 0.22); }
.btn-primary:hover { background: linear-gradient(180deg, #ff7d42, var(--accent)); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: #3b5372; }
.btn-danger { background: rgba(255, 85, 115, 0.12); border-color: rgba(255, 85, 115, 0.45); color: #ff9cae; }
.btn-danger:hover { background: rgba(255, 85, 115, 0.2); }
.btn-sm { padding: 7px 12px; font-size: 0.8rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-disabled { background: rgba(255, 255, 255, 0.04); color: var(--muted-2); cursor: not-allowed; border-color: var(--border); }

/* ------------------------------------------------------------------ hero */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero { padding: 76px 0 54px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 58px; align-items: center; }
.hero h1 em { color: var(--accent); font-style: normal; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.trust-row span {
  font-size: 0.72rem; color: var(--muted); border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 100px; background: rgba(255, 255, 255, 0.02);
}
.hero-visual { position: relative; }
.browser-frame {
  border: 1px solid var(--border-2); border-radius: 16px; overflow: hidden;
  background: var(--panel); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.015);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: #0b1119; }
.browser-bar > span { width: 9px; height: 9px; border-radius: 50%; background: #2b3b4f; }
.browser-bar > span:first-child { background: #ff5f57; }
.browser-bar > span:nth-child(2) { background: #febc2e; }
.browser-bar > span:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1; margin-left: 8px; font-family: var(--mono); font-size: 0.64rem; color: var(--muted-2);
  background: #060a0f; border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.float-card {
  position: absolute; right: -14px; bottom: 34px;
  background: rgba(13, 20, 30, 0.94); border: 1px solid var(--border-2);
  border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px);
}
.float-card strong { font-size: 1.4rem; color: var(--green); line-height: 1; }
.float-card span { font-size: 0.68rem; color: var(--muted); margin-top: 4px; }
.float-card.second { right: auto; left: -18px; bottom: 92px; }
.float-card.second strong { color: var(--accent); }
.logos-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; background: rgba(255, 255, 255, 0.012); }
.logos-strip .container { display: flex; flex-wrap: wrap; gap: 34px; justify-content: center; }
.logos-strip span { color: var(--muted-2); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

/* --------------------------------------------------------------- sections */
.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 107, 44, 0.1); color: var(--accent); font-size: 1.1rem; margin-bottom: 16px;
  border: 1px solid rgba(255, 107, 44, 0.22);
}
.feature-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { position: relative; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.step-num { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.12em; }
.steps h3 { margin: 12px 0 8px; }
.steps p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------------------------------------------------------------- pricing */
.price-card {
  background: linear-gradient(180deg, #131c28, #0c121b);
  border: 1px solid var(--border-2); border-radius: 20px; padding: 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  position: relative; overflow: hidden;
}
.price-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.price-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.plan-name { color: var(--muted); font-size: 0.82rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.price-head h3 { font-size: 2.6rem; margin: 6px 0 0; }
.price-head h3 span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.check-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.check-list li { padding-left: 26px; position: relative; color: var(--muted); font-size: 0.94rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.faq { margin-top: 54px; }
.faq h2 { text-align: center; margin-bottom: 22px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 2px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 0.98rem; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); font-size: 0.92rem; margin: 12px 0 0; }
.cta-band { padding: 64px 0; border-top: 1px solid var(--border); background: radial-gradient(600px 200px at 50% 0%, rgba(255, 107, 44, 0.1), transparent 70%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-inner h2 { margin-bottom: 6px; }
.cta-inner p { color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------ cards */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { font-size: 1.06rem; margin: 0; }
.panel-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.dash-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 4px 0 6px; word-break: break-word; }
.dash-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stat span { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.stat strong { display: block; font-size: 1.35rem; margin-top: 4px; }
.kv { margin: 0; display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px dashed rgba(255, 255, 255, 0.06); padding-bottom: 9px; }
.kv dt { color: var(--muted); font-size: 0.82rem; }
.kv dd { margin: 0; text-align: right; font-size: 0.86rem; word-break: break-word; }
.action-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.action-grid form { margin: 0; }

/* ------------------------------------------------------------------ badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 100px;
  padding: 3px 9px; font-size: 0.7rem; font-weight: 650; letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.06); color: var(--muted); border: 1px solid transparent;
  text-transform: capitalize; white-space: nowrap;
}
.badge-green { background: rgba(53, 224, 161, 0.1); color: var(--green); border-color: rgba(53, 224, 161, 0.25); }
.badge-red { background: rgba(255, 85, 115, 0.1); color: #ff8da1; border-color: rgba(255, 85, 115, 0.25); }
.badge-amber { background: rgba(255, 200, 87, 0.1); color: var(--amber); border-color: rgba(255, 200, 87, 0.25); }
.badge-accent { background: rgba(255, 107, 44, 0.12); color: var(--accent); border-color: rgba(255, 107, 44, 0.3); }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.table th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: top; }
.table tr:hover td { background: rgba(255, 255, 255, 0.015); }
.table a { color: var(--text); font-weight: 600; }
.table a:hover { color: var(--accent); }

/* ------------------------------------------------------------------- forms */
.stack { display: grid; gap: 14px; }
label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
label input, label select, label textarea, textarea {
  display: block; width: 100%; margin-top: 6px;
  background: #070c12; border: 1px solid var(--border-2); border-radius: 9px;
  padding: 11px 12px; color: var(--text); font-family: inherit; font-size: 0.94rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
label input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.12); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; font-weight: 400; color: var(--muted); line-height: 1.5; }
label.check input { width: auto; margin: 3px 0 0; flex: none; }
textarea { resize: vertical; }

.alert { border-radius: 10px; padding: 11px 14px; font-size: 0.86rem; margin: 0 0 16px; border: 1px solid transparent; }
.alert-error { background: rgba(255, 85, 115, 0.09); border-color: rgba(255, 85, 115, 0.3); color: #ffa8b8; }
.alert-ok { background: rgba(53, 224, 161, 0.08); border-color: rgba(53, 224, 161, 0.25); color: #8af0c8; }
.alert.small { padding: 8px 10px; font-size: 0.78rem; }

/* -------------------------------------------------------------------- auth */
.auth-body { display: flex; flex-direction: column; min-height: 100vh; }
.auth-body .site-header, .auth-body .site-footer { display: none; }
.auth-section { flex: 1; display: grid; place-items: center; padding: 56px 20px; }
.auth-card {
  width: min(460px, 100%); background: var(--panel); border: 1px solid var(--border-2);
  border-radius: 18px; padding: 34px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.auth-card .brand { margin-bottom: 26px; }
.auth-card h1 { font-size: 1.65rem; margin-bottom: 6px; }
.auth-card > .muted { margin-bottom: 22px; }
.auth-card .stack { margin: 20px 0 18px; }
.launch-card { text-align: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 107, 44, 0.2); border-top-color: var(--accent); margin: 0 auto 20px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------- prose */
.prose { max-width: 780px; }
.prose h1 { font-size: 2.1rem; }
.prose h2 { font-size: 1.2rem; margin-top: 30px; }
.prose p { color: #b8c6d8; font-size: 0.94rem; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.82rem; }
.footer-links a { color: var(--muted); }
.site-footer .tiny { grid-column: 1 / -1; margin: 8px 0 0; }

/* ------------------------------------------------------------------- misc */
.log-pre {
  background: #05080c; border: 1px solid var(--border); border-radius: 9px;
  padding: 14px; font-family: var(--mono); font-size: 0.72rem; line-height: 1.55;
  max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: #b9c8da; margin: 0;
}
.email-head { font-size: inherit; }
.dashboard-section { padding-top: 34px; }
.dashboard-body .site-footer { margin-top: 60px; }
.steps li::after { content: "→"; position: absolute; right: -14px; top: 50%; color: var(--muted-2); font-size: 0.8rem; }
.steps li:last-child::after { display: none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 640px; }
  .browser-frame { transform: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .float-card.second { left: -6px; }
}
@media (max-width: 620px) {
  .container, .container.narrow, .container.wide { width: calc(100% - 30px); }
  .header-inner { height: 60px; }
  .nav-user .nav-link { display: none; }
  .hero { padding: 46px 0 36px; }
  .section { padding: 58px 0; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .price-card, .auth-card { padding: 24px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .float-card { display: none; }
  .dash-head { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 12px; }
}
