:root {
  --purple: #667eea;
  --purple-dark: #5568d3;
  --purple-deep: #764ba2;
  --ink: #1b2038;
  --text: #333;
  --muted: #5c6478;
  --border: #e4e8f2;
  --surface: #ffffff;
  --surface-alt: #f6f7ff;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(27, 32, 56, 0.08);
  --max: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #f8f9fc;
}

a {
  color: var(--purple-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--purple-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.45);
}

.btn-secondary {
  background: #fff;
  color: var(--purple-dark);
  border-color: #d4daf7;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at top right, rgba(102, 126, 234, 0.18), transparent 45%),
    linear-gradient(180deg, #fff 0%, #f8f9fc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: linear-gradient(145deg, #1b2038 0%, #2a3158 100%);
  border-radius: var(--radius);
  padding: 1px;
  box-shadow: var(--shadow);
}

.hero-card-inner {
  background: linear-gradient(160deg, rgba(102, 126, 234, 0.15), rgba(27, 32, 56, 0.2));
  border-radius: calc(var(--radius) - 1px);
  padding: 1.75rem;
  color: #eef1ff;
}

.hero-stat-label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.85;
}

.hero-stat-value {
  display: block;
  font-size: 3rem;
  line-height: 1.1;
  margin: 0.35rem 0 0.5rem;
}

.hero-stat-hint {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  color: #c5ccf8;
}

.hero-mini-list {
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.hero-mini-list span {
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.section-lead {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(27, 32, 56, 0.04);
}

.feature-card h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.steps {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.steps li::before {
  content: counter(step);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.steps-content {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.steps strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.steps span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.check-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--purple-dark);
  font-weight: 700;
}

.pricing-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(27, 32, 56, 0.04);
}

.pricing-table th,
.pricing-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  background: #eef1fd;
  color: var(--ink);
  font-size: 0.9rem;
}

.pricing-table tr.is-active {
  background: #f0f3ff;
}

.pricing-table tr.is-active td {
  font-weight: 600;
  color: var(--purple-dark);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.calculator h3 {
  margin-bottom: 1rem;
  color: var(--ink);
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.field input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}

.calculator-result {
  padding: 1rem;
  background: var(--surface-alt);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.calculator-result strong {
  color: var(--purple-dark);
}

.calculator-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 1rem;
}

.faq > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.faq dt {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.faq dd {
  color: var(--muted);
  font-size: 0.95rem;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.type-card h3 {
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.type-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.type-example-label {
  font-size: 0.82rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--purple-dark) !important;
  margin-bottom: 0.5rem !important;
}

.type-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.type-tags li {
  padding: 0.3rem 0.65rem;
  background: #eef1fd;
  border: 1px solid #d4daf7;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple-dark);
}

.type-footnote {
  font-size: 0.88rem !important;
  margin-bottom: 0 !important;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.type-callout h3 {
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-size: 1rem;
}

.type-callout p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.setup-import {
  margin-top: 1.5rem;
}

.setup-import h3 {
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.setup-import p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.setup-import .check-list {
  margin-bottom: 1rem;
}

.setup-footnote {
  font-size: 0.9rem !important;
  margin-bottom: 1rem !important;
}

.setup-cta {
  display: inline-flex;
}

.cta-section {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff;
}

.cta-inner {
  text-align: center;
}

.cta-inner h2,
.cta-inner p {
  color: #fff;
}

.cta-inner p {
  opacity: 0.92;
  margin-bottom: 1.25rem;
}

.cta-section .btn-secondary {
  color: var(--ink);
}

.site-footer {
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.page-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, #fff 0%, var(--surface-alt) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--ink);
  margin-bottom: 0.75rem;
  max-width: 42rem;
}

.page-hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 44rem;
}

.article {
  padding: 2.5rem 0 3rem;
}

.article h2 {
  color: var(--ink);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.article h2:first-child {
  margin-top: 0;
}

.article p,
.article li {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.article ul,
.article ol {
  margin: 0 0 1rem 1.25rem;
}

.guide-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.guide-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.guide-card p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--purple-dark);
}

@media (max-width: 800px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
}
