/* TraxxTool website — matches the desktop app's dark theme + teal accent. */
:root {
  --bg-darkest: #0D0D0F;
  --bg-dark: #141416;
  --bg-mid: #1A1A1E;
  --surface: #1E1E24;
  --surface-2: #252530;
  --border: #2A2A34;
  --border-light: #3A3A48;
  --text: #E8E8EC;
  --text-2: #9898A4;
  --text-3: #686878;
  --teal: #00D4AA;
  --teal-hover: #00E8BC;
  --teal-press: #00A080;
  --indigo: #6366F1;
  --purple: #8B5CF6;
  --amber: #F5A623;
  --success: #22C55E;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: "Segoe UI", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-darkest);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
code { background: var(--bg-mid); border: 1px solid var(--border); border-radius: 6px; padding: .05em .4em; font-size: .88em; color: var(--teal); }
main { min-height: 60vh; }

/* --- Nav --- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  position: sticky; top: 0; z-index: 20;
  background: rgba(13,13,15,.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand-mark { border-radius: 8px; display: block; }
.brand-name { font-size: 1.18rem; letter-spacing: -.01em; }
.brand-accent { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .btn { color: #06231d; }
.nav-links .btn-ghost { color: var(--text-2); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: .96rem; cursor: pointer;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: transform .06s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 15px; font-size: .9rem; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--teal); color: #06231d; }
.btn-primary:hover { background: var(--teal-hover); color: #06231d; }
.btn-primary:disabled { background: var(--border-light); color: var(--text-3); cursor: not-allowed; }
.btn-outline { background: transparent; border-color: var(--border-light); color: var(--text); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline:disabled { color: var(--text-3); border-color: var(--border); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-ghost:disabled { color: var(--text-3); cursor: not-allowed; }
.is-current { cursor: default; color: var(--text-2); }
.is-current:hover { border-color: var(--border-light); color: var(--text-2); }
button.btn { font-family: inherit; }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; padding: 84px 24px 68px; text-align: center; }
.hero-glow {
  position: absolute; inset: -30% 0 auto 0; height: 620px; margin: auto;
  background:
    radial-gradient(closest-side, rgba(0,212,170,.22), transparent 70%) 30% 0/60% 100% no-repeat,
    radial-gradient(closest-side, rgba(99,102,241,.20), transparent 70%) 72% 12%/55% 90% no-repeat,
    radial-gradient(closest-side, rgba(139,92,246,.16), transparent 70%) 50% 30%/70% 80% no-repeat;
  filter: blur(8px); pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem;
  font-weight: 700; color: var(--teal); background: rgba(0,212,170,.1);
  border: 1px solid rgba(0,212,170,.25); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.grad {
  background: linear-gradient(100deg, var(--teal), var(--indigo) 60%, var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: var(--text-2); max-width: 680px; margin: 18px auto 0; }
.lede strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.center-cta { margin-top: 26px; }
.hero-note { color: var(--text-3); font-size: .9rem; margin-top: 20px; }

/* --- Sections --- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.section.narrow { max-width: 720px; }
.section.center { text-align: center; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--text-2); font-size: 1.06rem; }

.grid { display: grid; gap: 20px; }
.features { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.feature { transition: transform .16s ease, border-color .16s ease; }
.feature:hover { transform: translateY(-3px); border-color: var(--border-light); }
.feature-ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  font-size: 1.3rem; margin-bottom: 14px; color: var(--teal);
  background: rgba(0,212,170,.1); border: 1px solid rgba(0,212,170,.22);
}
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--text-2); margin: 0; font-size: .97rem; }

/* --- CTA band --- */
.band {
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-mid));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); max-width: none;
}
.band-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.band-inner p { color: var(--text-2); font-size: 1.06rem; }

/* --- Pricing --- */
.pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: rgba(0,212,170,.5); box-shadow: 0 0 0 1px rgba(0,212,170,.25), 0 20px 60px -30px rgba(0,212,170,.5); }
.ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #06231d; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px;
}
.plan-head { padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.plan-head h3 { font-size: 1.3rem; margin-bottom: 10px; }
.tag { font-size: .7rem; color: var(--indigo); background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.3); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.price .per { color: var(--text-3); font-size: .95rem; }
.plan-sub { color: var(--text-3); font-size: .9rem; margin: 6px 0 0; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan-feats li { position: relative; padding: 8px 0 8px 26px; color: var(--text-2); font-size: .95rem; border-bottom: 1px solid rgba(42,42,52,.5); }
.plan-feats li:last-child { border-bottom: none; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--teal); font-weight: 700; }
.plan-feats strong { color: var(--text); }
.plan-cta { margin-top: auto; }
.cloud-forms { display: grid; gap: 8px; }
.fineprint { text-align: center; color: var(--text-3); font-size: .85rem; margin-top: 28px; }

/* --- Account --- */
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.account-head h1 { font-size: 1.5rem; margin: 4px 0 0; word-break: break-word; }
.account-card { margin-bottom: 18px; }
.account-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; margin-bottom: 14px; }
.account-card.subtle { background: var(--bg-dark); }
.account-card.subtle p { color: var(--text-2); font-size: .95rem; }
.status-list { list-style: none; padding: 0; margin: 0; }
.status-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text-2); }
.status-list li:last-child { border-bottom: none; }
.status-list .ok { color: var(--success); }
.status-list .muted { color: var(--text-3); }
.account-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.account-actions form { margin: 0; }

/* --- Badges --- */
.badge { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; }
.badge-free { color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border-light); }
.badge-pro { color: #06231d; background: var(--teal); }
.badge-cloud { color: #fff; background: linear-gradient(100deg, var(--teal), var(--indigo)); }

/* --- Result pages --- */
.result-mark { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; margin: 0 auto 22px; }
.result-mark.ok { color: var(--success); background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); }
.result-mark.muted { color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border-light); }

/* --- Legal --- */
.legal h3 { margin-top: 32px; font-size: 1.1rem; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 20px; }
.legal .muted { color: var(--text-3); font-size: .9rem; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--border); background: var(--bg-dark); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 44px 24px 24px; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-3); font-size: .9rem; margin: 8px 0 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--text-2); font-size: .93rem; }
.footer-links a:hover { color: var(--text); }
.footer-legal { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 34px; color: var(--text-3); font-size: .82rem; }

/* --- Responsive --- */
@media (max-width: 860px) {
  .pricing { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .plan.featured { order: -1; }
}
@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; }
  .nav { padding: 14px 18px; }
  .nav-links { gap: 14px; }
  .section { padding: 52px 20px; }
  .hero { padding: 60px 20px 48px; }
}
