:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-dark: #0f172a;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #14b8a6;
  --warning: #f59e0b;
  --danger: #dc2626;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.13), transparent 34rem),
    linear-gradient(180deg, #eff6ff 0%, var(--bg) 32%, #ffffff 100%);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links,
.hero-actions,
.trust-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-dark);
  color: white;
  font-size: 0.88rem;
}

.nav-links {
  gap: 24px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
}

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

main,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-grid,
.calculator-section,
.content-section,
.faq-section {
  padding: 76px 0;
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-dark);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.55rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

h2 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.hero-copy p,
.card-heading p,
.feature-grid p,
.faq-section p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.hero-copy p {
  max-width: 650px;
  font-size: 1.18rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button,
.copy-button {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 14px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.copy-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.25);
}

.primary:hover {
  background: var(--primary-dark);
}

.secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.full {
  width: 100%;
}

.trust-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.trust-row span::before {
  content: "✓";
  margin-right: 6px;
  color: var(--accent);
}

.quick-card,
.calculator-card,
.info-panel,
.feature-grid article,
.faq-section details {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.quick-card {
  min-height: 320px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.quick-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.34), rgba(37, 99, 235, 0.2));
}

.mini-label {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.quick-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 8px 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.06em;
}

.quick-card span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-weight: 700;
}

.calculator-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.calculator-card,
.info-panel,
.feature-grid article,
.faq-section details {
  padding: 30px;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.form label {
  color: var(--muted);
  font-weight: 800;
  display: grid;
  gap: 8px;
}

.form input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0 16px;
  color: var(--text);
  font: inherit;
  font-weight: 750;
  outline: none;
  background: #fff;
}

.form input:focus {
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form button {
  grid-column: 1 / -1;
  min-height: 58px;
  font-size: 1rem;
}

.message {
  min-height: 22px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 700;
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: #047857;
}

.result {
  margin-top: 22px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
}

.result span {
  color: #cbd5e1;
  font-weight: 750;
}

.result strong {
  display: block;
  margin: 8px 0 4px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.06em;
}

.result p {
  color: #dbeafe;
  line-height: 1.6;
}

.copy-button {
  margin-top: 12px;
  background: white;
  color: var(--text);
}

.copy-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.info-panel {
  position: sticky;
  top: 98px;
}

.info-panel dl {
  margin: 22px 0 0;
  display: grid;
  gap: 14px;
}

.info-panel div {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.info-panel dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.info-panel dd {
  margin: 6px 0 0;
  font-size: 1.1rem;
  font-weight: 850;
}

.content-section {
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.feature-grid article {
  box-shadow: none;
}

.faq-section {
  max-width: 880px;
}

.faq-section details {
  box-shadow: none;
  margin-top: 14px;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 850;
  font-size: 1.05rem;
}

.faq-section p {
  margin: 16px 0 0;
}

.footer {
  padding: 36px 0 52px;
  border-top: 1px solid var(--border);
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
  }

  .hero,
  .calculator-section,
  .feature-grid,
  .form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .info-panel {
    position: static;
  }
}

@media (max-width: 520px) {
  main,
  .footer,
  .nav {
    width: min(100% - 22px, 1120px);
  }

  .section-grid,
  .calculator-section,
  .content-section,
  .faq-section {
    padding: 48px 0;
  }

  .calculator-card,
  .info-panel,
  .feature-grid article,
  .faq-section details,
  .quick-card {
    border-radius: 24px;
    padding: 22px;
  }
}
