:root {
  --bg: #0f172a;
  --bg-elevated: #1e293b;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-tint: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #cbd5e1;
  --emerald: #10b981;
  --emerald-dark: #047857;
  --emerald-soft: #d1fae5;
  --border: #cbd5e1;
  --border-dark: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --shadow: 0 18px 40px -15px rgba(15, 23, 42, 0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--surface-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dark);
  color: #fff;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  display: grid;
  place-items: center;
  color: #0f172a;
  font-weight: 900;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--text-light);
}

.nav-links a:hover {
  color: var(--emerald);
}

.nav-cta {
  background: var(--emerald);
  color: var(--bg);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-cta:hover {
  background: #34d399;
  transform: translateY(-1px);
  color: var(--bg) !important;
}

/* Hero Section */
.hero {
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: #fff;
  padding: 68px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.14;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}

.hero h1 span {
  color: var(--emerald);
}

.hero-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  margin: 0 0 26px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--emerald);
  color: var(--bg);
}

.btn-primary:hover {
  background: #34d399;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline-light:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.btn-dark {
  background: var(--bg);
  color: #fff;
}

.btn-dark:hover {
  background: var(--bg-elevated);
}

.btn-crypto {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--border);
  font-size: 0.88rem;
}

.btn-crypto:hover {
  border-color: var(--emerald-dark);
  background: var(--emerald-soft);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: #94a3b8;
}

.hero-preview-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.65);
}

.hero-preview-card img {
  border-radius: 10px;
}

/* Sections */
.section {
  padding: 68px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--emerald-dark);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* Interactive Calculator Section */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.95rem;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 600;
}

.calc-results {
  background: var(--bg);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.kpi-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kpi-mini {
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 12px 14px;
}

.kpi-mini span {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  font-weight: 700;
}

.kpi-mini strong {
  font-size: 1.28rem;
  color: #fff;
}

.kpi-mini.highlight {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
}

.kpi-mini.highlight strong {
  color: #6ee7b7;
}

.lead-capture-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 16px;
}

.lead-capture-box p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.lead-form-row {
  display: flex;
  gap: 8px;
}

.lead-form-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0f172a;
  color: #fff;
  font-size: 0.92rem;
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-card.featured {
  border: 2px solid var(--emerald);
}

.product-cover {
  background: var(--bg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.compat-tag {
  background: var(--surface-tint);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.price-tag {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald-dark);
}

.price-tag s {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.95rem;
  margin-right: 4px;
}

.product-body h3 {
  margin: 0 0 8px;
  font-size: 1.24rem;
  line-height: 1.3;
}

.product-body p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.spec-list {
  margin: 0 0 18px;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text);
}

.spec-list li {
  margin-bottom: 5px;
}

.digital-notice {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-size: 0.79rem;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 8px;
  margin-bottom: 14px;
  text-align: center;
}

.product-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

/* Guides & FAQ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.guide-card h3 {
  margin: 8px 0 8px;
  font-size: 1.15rem;
}

.guide-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0 0 14px;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-a {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

/* Article Pages */
.article-wrap {
  max-width: 820px;
  margin: 42px auto 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.article-wrap h1 {
  margin-top: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  line-height: 1.22;
}

.article-wrap h2 {
  margin-top: 28px;
  font-size: 1.3rem;
  border-bottom: 2px solid var(--emerald-soft);
  padding-bottom: 6px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.92rem;
}

.article-table th,
.article-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.article-table th {
  background: var(--bg);
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--bg);
  color: #94a3b8;
  padding: 44px 0;
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--emerald);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: none;
  place-items: center;
  z-index: 99;
  padding: 20px;
}

.modal-backdrop.open {
  display: grid;
}

.modal-card {
  background: #fff;
  max-width: 480px;
  width: 100%;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.modal-card h3 {
  margin-top: 0;
}

@media (max-width: 880px) {
  .hero-grid,
  .calc-grid,
  .products-grid,
  .guides-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .lead-form-row {
    flex-direction: column;
  }

  .article-wrap {
    padding: 22px;
  }
}
