:root {
  color-scheme: light;
  --bg: #f4f8ff;
  --bg-elevated: rgba(255, 255, 255, 0.8);
  --surface: #ffffff;
  --surface-strong: #edf4ff;
  --text: #12233d;
  --muted: #58708f;
  --primary: #155eef;
  --primary-2: #2f9dff;
  --accent: #ff9f1c;
  --accent-2: #ffd166;
  --border: rgba(17, 37, 67, 0.08);
  --shadow: 0 24px 60px rgba(21, 50, 93, 0.14);
  --shadow-soft: 0 18px 40px rgba(21, 50, 93, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1120px, calc(100% - 2rem));
}

body.dark-theme {
  color-scheme: dark;
  --bg: #08111f;
  --bg-elevated: rgba(8, 17, 31, 0.78);
  --surface: #0f1c31;
  --surface-strong: #122541;
  --text: #eef4ff;
  --muted: #9db1cf;
  --primary: #58a6ff;
  --primary-2: #79c3ff;
  --accent: #ffb020;
  --accent-2: #ffd46b;
  --border: rgba(137, 172, 226, 0.15);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 157, 255, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 159, 28, 0.16), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, #eef4fb 100%);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark-theme {
  background:
    radial-gradient(circle at top left, rgba(88, 166, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 176, 32, 0.12), transparent 24%),
    linear-gradient(180deg, #09121f 0%, #08111f 100%);
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

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

body.dark-theme .site-header {
  background: rgba(8, 17, 31, 0.7);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: clamp(132px, 18vw, 210px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-nav a,
.theme-toggle {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.site-nav a:hover,
.theme-toggle:hover {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hero-section,
.page-hero {
  padding: 4.5rem 0 2rem;
}

.hero-grid,
.benefits-grid,
.calculator-grid,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

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

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.cta-card h2,
.blog-detail-content h1 {
  margin: 0;
  line-height: 1.08;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  max-width: 12ch;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 14ch;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(21, 94, 239, 0.1);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-text,
.section-heading p,
.footer-copy,
.detail-description,
.hero-copy p,
.cta-card p,
.benefit-card p,
.info-card p,
.visual-card p,
.result-subtext,
.form-hint,
.blog-card p,
.page-hero p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions,
.cta-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.95rem 1.4rem;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 16px 32px rgba(255, 159, 28, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--border);
}

.hero-stats,
.steps-grid,
.benefit-list,
.blog-listing {
  display: grid;
  gap: 1rem;
}

.hero-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.stat-card,
.info-card,
.benefit-card,
.blog-card,
.cta-card,
.calculator-card,
.result-card,
.visual-card,
.blog-detail {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.glass-card,
.stat-card,
.info-card,
.benefit-card,
.blog-card,
.cta-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
}

.stat-card,
.info-card,
.benefit-card,
.blog-card,
.calculator-card,
.result-card,
.visual-card {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
}

.stat-card strong,
.mini-preview strong {
  display: block;
  font-size: 1.15rem;
}

.visual-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.visual-card::before,
.cta-card::before {
  content: "";
  position: absolute;
  inset: auto auto 18% -6%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 159, 28, 0.28), transparent 70%);
  filter: blur(8px);
}

.visual-card::after,
.cta-card::after {
  content: "";
  position: absolute;
  inset: 10% -4% auto auto;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(47, 157, 255, 0.24), transparent 70%);
  filter: blur(8px);
}

.visual-card > *,
.cta-card > * {
  position: relative;
  z-index: 1;
}

.visual-badge,
.result-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(21, 94, 239, 0.12);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.mini-preview {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 18px;
  background: var(--surface);
}

.mini-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.calculator-section,
.seo-section,
.info-section,
.faq-section,
.benefits-section,
.content-links-section,
.cta-section,
.blog-section {
  padding: 2rem 0 4rem;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.calculator-grid,
.benefits-grid,
.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator-card {
  display: grid;
  gap: 0.9rem;
}

.calculator-card label {
  font-weight: 600;
}

.calculator-card input {
  width: 100%;
  min-height: 58px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.calc-button.is-loading .button-text {
  opacity: 0;
}

.button-loader {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.9s linear infinite;
}

.calc-button {
  position: relative;
}

.calc-button.is-loading .button-loader {
  opacity: 1;
}

.error-message {
  min-height: 1.4rem;
  margin: 0;
  color: #d64545;
  font-size: 0.95rem;
}

.result-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(47, 157, 255, 0.14), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255, 159, 28, 0.14), transparent 30%),
    var(--surface);
}

.result-placeholder {
  margin: 0;
  font-size: 1.05rem;
}

.result-content {
  animation: revealUp 0.55s ease;
}

.result-value {
  margin: 0.5rem 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.35;
}

.steps-grid,
.blog-listing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-number {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.benefits-grid {
  align-items: start;
}

.benefit-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cta-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.blog-card {
  overflow: hidden;
}

.blog-card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 18px;
}

.blog-detail-image {
  width: 100%;
  min-height: 420px;
  max-height: 560px;
  object-fit: cover;
  border-radius: 24px;
}

.blog-card h3,
.benefit-card h3,
.info-card h3,
.visual-card h2,
.cta-card h2,
.result-card h3 {
  margin: 0.5rem 0 0.3rem;
}

.blog-card .btn {
  margin-top: 0.8rem;
}

.blog-detail {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.blog-intro-panel,
.content-panel,
.faq-card,
.content-link-card,
.ad-panel {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

.seo-grid,
.content-links-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.3fr 0.7fr;
}

.faq-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ad-label {
  display: inline-flex;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ad-placeholder {
  min-height: 240px;
  padding: 1.3rem;
  border: 1px dashed var(--border);
  border-radius: 20px;
  display: grid;
  align-content: center;
  background: linear-gradient(180deg, rgba(21, 94, 239, 0.05), rgba(255, 159, 28, 0.06));
}

.blog-intro-panel {
  margin-bottom: 1.25rem;
}

.text-link {
  color: var(--primary);
  font-weight: 700;
}

.blog-detail-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 0 0.5rem;
}

.detail-meta {
  margin-bottom: 0.35rem;
  color: var(--primary);
  font-weight: 600;
}

.detail-body {
  display: grid;
  gap: 1rem;
  color: var(--text);
  line-height: 1.85;
}

.detail-body section {
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--surface-strong);
}

.detail-body h2 {
  margin-top: 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand p {
  margin: 0;
  font-weight: 600;
}

.footer-logo {
  width: min(230px, 100%);
  border-radius: 18px;
}

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}

.is-hidden {
  display: none !important;
}

.pulse-result {
  animation: revealUp 0.55s ease, resultGlow 0.8s ease;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes resultGlow {
  0% {
    box-shadow: 0 0 0 rgba(47, 157, 255, 0);
  }
  50% {
    box-shadow: 0 18px 44px rgba(47, 157, 255, 0.18);
  }
  100% {
    box-shadow: var(--shadow);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .calculator-grid,
  .seo-grid,
  .content-links-grid,
  .benefits-grid,
  .footer-grid,
  .steps-grid,
  .blog-listing,
  .faq-grid,
  .benefit-list {
    grid-template-columns: 1fr;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.75rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .hero-section,
  .page-hero {
    padding-top: 3rem;
  }

  .brand-logo {
    width: 148px;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

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

  .cta-actions,
  .hero-actions,
  .result-actions {
    width: 100%;
  }

  .cta-actions .btn,
  .hero-actions .btn,
  .result-actions .btn {
    width: 100%;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-links {
    justify-content: flex-start;
  }
}
