:root {
  --bg: #07111f;
  --bg-soft: rgba(16, 26, 44, 0.7);
  --panel: rgba(10, 19, 34, 0.72);
  --panel-strong: rgba(14, 24, 42, 0.92);
  --line: rgba(151, 183, 255, 0.16);
  --text: #f3f7ff;
  --muted: #9cb2d8;
  --accent: #66f0c9;
  --accent-strong: #84a8ff;
  --accent-warm: #ffc978;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(73, 110, 255, 0.24), transparent 32%),
    radial-gradient(circle at bottom right, rgba(102, 240, 201, 0.18), transparent 30%),
    linear-gradient(180deg, #06101d 0%, #07111f 45%, #091729 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.background-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(18px);
  z-index: -2;
  animation: drift 16s ease-in-out infinite;
}

.background-orb--one {
  top: 6%;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(132, 168, 255, 0.4), rgba(132, 168, 255, 0.04));
}

.background-orb--two {
  bottom: 10%;
  left: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(102, 240, 201, 0.28), rgba(102, 240, 201, 0.04));
  animation-delay: -5s;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(130, 154, 195, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 154, 195, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  z-index: -3;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(132, 168, 255, 0.95), rgba(102, 240, 201, 0.9));
  color: #02111e;
  font-family: "Unbounded", sans-serif;
  font-size: 0.9rem;
  box-shadow: 0 16px 40px rgba(102, 240, 201, 0.24);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.brand__text strong {
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 16, 29, 0.48);
  backdrop-filter: blur(14px);
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 28px;
  padding: 46px 0 26px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(132, 168, 255, 0.22);
  border-radius: 999px;
  color: #c8d8ff;
  background: rgba(99, 128, 255, 0.08);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.hero h1,
.section-heading h2 {
  margin: 16px 0 0;
  font-family: "Unbounded", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(2.3rem, 4.4vw, 4.6rem);
}

.hero__lead,
.section-heading p,
.guide-card p,
.insight-card p,
.hero-card__note,
.faq-item p,
.site-footer__note {
  color: var(--muted);
  line-height: 1.7;
}

.hero__lead {
  max-width: 62ch;
  margin: 20px 0 0;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), #79a2ff);
  color: #04111f;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(102, 240, 201, 0.2);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(132, 168, 255, 0.22);
}

.hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.hero__highlights li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 22, 38, 0.7);
  color: #dfe9ff;
}

.hero-card,
.glass-panel,
.insight-card,
.guide-card {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 24, 42, 0.86), rgba(9, 16, 28, 0.72));
  border: 1px solid rgba(151, 183, 255, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card {
  padding: 28px;
  min-height: 340px;
}

.hero-card__pulse {
  position: absolute;
  inset: auto -30px -30px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 240, 201, 0.24), transparent 65%);
  animation: pulse 5s ease-in-out infinite;
}

.hero-card__label,
.formula-card__label {
  color: #c7d6ff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card__row strong {
  font-family: "Unbounded", sans-serif;
  font-size: 1.2rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.calculator-section,
.insights,
.guide,
.seo-copy,
.faq,
.links-cloud {
  padding: 54px 0;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 24px;
}

.glass-panel {
  padding: 26px;
  backdrop-filter: blur(18px);
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.panel-topline h3,
.details-card h4,
.guide-card h3,
.insight-card h3 {
  margin: 0;
}

.live-badge,
.result-status {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  border: 1px solid rgba(102, 240, 201, 0.18);
  background: rgba(102, 240, 201, 0.08);
  color: #baf7e9;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.mode-switch__button {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.mode-switch__button.is-active {
  background: linear-gradient(135deg, rgba(132, 168, 255, 0.3), rgba(102, 240, 201, 0.18));
  border-color: rgba(132, 168, 255, 0.32);
}

.field {
  display: grid;
  gap: 10px;
}

.field__label {
  color: #dbe6ff;
  font-size: 0.95rem;
}

.field__control {
  position: relative;
}

.field__input {
  width: 100%;
  min-height: 64px;
  padding: 0 60px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(5, 12, 22, 0.82);
  color: var(--text);
  font-size: 1.16rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field__input:focus {
  border-color: rgba(102, 240, 201, 0.42);
  box-shadow: 0 0 0 4px rgba(102, 240, 201, 0.08);
}

.field__suffix {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--muted);
}

.rate-picker {
  margin-top: 20px;
}

.rate-picker__note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.rate-picker__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.rate-pill {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.rate-pill.is-active {
  background: linear-gradient(135deg, rgba(102, 240, 201, 0.22), rgba(132, 168, 255, 0.18));
  border-color: rgba(102, 240, 201, 0.4);
}

.formula-card,
.details-card {
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(4, 11, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.formula-card__equation,
.guide-card__formula {
  margin-top: 10px;
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #eef6ff;
}

.formula-card__hint {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.quick-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.quick-actions .button {
  flex: 1;
}

.result-cards {
  display: grid;
  gap: 14px;
}

.result-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(132, 168, 255, 0.24);
}

.result-card--accent {
  background: linear-gradient(135deg, rgba(102, 240, 201, 0.14), rgba(132, 168, 255, 0.14));
  border-color: rgba(102, 240, 201, 0.22);
}

.result-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.result-card__value {
  display: block;
  margin-top: 12px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  letter-spacing: -0.04em;
}

.copy-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.details-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
}

.details-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.details-list dt {
  color: var(--muted);
}

.details-list dd {
  margin: 0;
  text-align: right;
}

.insights-grid,
.guide-grid {
  display: grid;
  gap: 18px;
}

.insights-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-copy__grid,
.faq-list {
  display: grid;
  gap: 18px;
}

.links-cloud__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(151, 183, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.94rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.mini-link:hover,
.mini-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(102, 240, 201, 0.38);
  background: rgba(102, 240, 201, 0.08);
}

.insight-card,
.guide-card {
  padding: 24px;
}

.seo-copy__grid .guide-card p:first-child,
.faq-item p {
  margin-top: 0;
}

.seo-copy__grid .guide-card p:last-child {
  margin-bottom: 0;
}

.insight-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 201, 120, 0.12);
  border: 1px solid rgba(255, 201, 120, 0.22);
  color: var(--accent-warm);
  font-family: "Unbounded", sans-serif;
}

.site-footer {
  padding: 30px 0 48px;
  color: var(--muted);
}

.site-footer__note {
  margin-top: 8px;
  font-size: 0.94rem;
}

.faq-item {
  padding: 22px 24px;
  border: 1px solid rgba(151, 183, 255, 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14, 24, 42, 0.86), rgba(9, 16, 28, 0.72));
  box-shadow: var(--shadow);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: rgba(102, 240, 201, 0.08);
  border: 1px solid rgba(102, 240, 201, 0.18);
  color: var(--accent);
  font-family: "Unbounded", sans-serif;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 16px 0 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -12px, 0) scale(1.08);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .hero,
  .calculator-layout,
  .insights-grid,
  .guide-grid,
  .seo-copy__grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 12ch;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .mode-switch,
  .rate-picker__grid,
  .quick-actions,
  .details-list div {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero,
  .calculator-section,
  .insights,
  .guide,
  .seo-copy,
  .faq,
  .links-cloud {
    padding-top: 28px;
  }

  .glass-panel,
  .hero-card,
  .insight-card,
  .guide-card {
    padding: 20px;
    border-radius: 24px;
  }

  .result-card__meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
