:root {
  --blue: #061f40;
  --blue-2: #0d3d75;
  --blue-3: #123f68;
  --green: #a8d635;
  --green-2: #55ae42;
  --green-dark: #305d25;
  --cyan: #6ed7e8;
  --amber: #f2c94c;
  --paper: #f4f7f2;
  --white: #ffffff;
  --ink: #010306;
  --muted: #5e6974;
  --steel: #dbe5e7;
  --line: rgba(6, 31, 64, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(6, 31, 64, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Poppins, Inter, Segoe UI, Arial, sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(6, 31, 64, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 31, 64, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #f4f7f2 0%, #eaf0eb 100%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
}

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

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 12px max(16px, calc((100% - 1200px) / 2));
  border-bottom: 1px solid rgba(168, 214, 53, 0.18);
  background: rgba(6, 31, 64, 0.96);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(1, 3, 6, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(168, 214, 53, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(168, 214, 53, 0.96), rgba(85, 174, 66, 0.96)),
    var(--green);
  color: var(--blue);
  font-weight: 900;
  box-shadow: 0 16px 38px rgba(85, 174, 66, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.05;
}

.brand small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(1, 3, 6, 0.26);
  backdrop-filter: blur(18px);
}

.top-nav a {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 800;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: rgba(168, 214, 53, 0.16);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(168, 214, 53, 0.28);
  border-radius: 8px;
  background: rgba(1, 3, 6, 0.24);
  cursor: pointer;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: var(--white);
}

.menu-toggle span + span {
  margin-top: 6px;
}

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

[id] {
  scroll-margin-top: 96px;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  gap: 26px;
  align-items: stretch;
  padding: 26px 0 18px;
  color: var(--white);
}

.intro-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(rgba(168, 214, 53, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 214, 53, 0.055) 1px, transparent 1px),
    linear-gradient(150deg, rgba(3, 15, 31, 0.94), rgba(6, 31, 64, 0.92));
  background-size: 28px 28px, 28px 28px, 100% 100%;
  box-shadow: 0 24px 60px rgba(1, 3, 6, 0.2);
}

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

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: 3.4rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 1.85rem;
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 1.05rem;
  line-height: 1.22;
}

.eyebrow,
.panel-kicker,
.result-label {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-line {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  font-weight: 800;
}

.intro-text {
  max-width: 720px;
  margin-bottom: 12px;
  color: #eef7ee;
  font-size: 1.08rem;
  font-weight: 700;
}

.intro-note {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-metrics span {
  border: 1px solid rgba(168, 214, 53, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.tool-card,
.table-card,
.info-card,
.notice-box,
.help-section,
.usage-section,
.quick-panel,
.cta-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.primary-tool {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-self: center;
  min-height: 560px;
  padding: 24px;
  overflow: hidden;
  border-color: rgba(168, 214, 53, 0.28);
  background:
    linear-gradient(rgba(168, 214, 53, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 214, 53, 0.055) 1px, transparent 1px),
    linear-gradient(160deg, rgba(3, 15, 31, 0.98), rgba(6, 31, 64, 0.96) 54%, rgba(13, 61, 117, 0.92));
  background-size: 24px 24px, 24px 24px, 100% 100%;
  color: var(--white);
}

.primary-tool::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 160px;
  height: 108px;
  border-right: 2px solid rgba(110, 215, 232, 0.32);
  border-bottom: 2px solid rgba(110, 215, 232, 0.32);
  transform: skewX(-20deg);
  pointer-events: none;
}

.primary-tool h2,
.primary-tool h3,
.primary-tool label {
  color: var(--white);
}

.primary-tool .card-heading p {
  color: rgba(255, 255, 255, 0.84);
}

.card-heading {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.step {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(168, 214, 53, 0.18);
  color: var(--green);
  font-weight: 900;
}

.tool-card:not(.primary-tool) .step {
  background: rgba(6, 31, 64, 0.08);
  color: var(--green-dark);
}

.card-heading h2 {
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.card-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.calculator-form {
  display: grid;
  gap: 12px;
}

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

.calculator-form label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 900;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-row label {
  min-width: 0;
}

.unit-select {
  min-width: 74px;
  min-height: 38px;
  border: 1px solid rgba(6, 31, 64, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue);
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 900;
  outline: none;
}

.unit-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(168, 214, 53, 0.16);
}

.calculator-form label span {
  color: var(--green);
  font-weight: 900;
}

.calculator-form input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(6, 31, 64, 0.16);
  border-radius: 8px;
  background: #f8fbf7;
  color: var(--blue);
  padding: 13px 14px;
  font-size: 1.1rem;
  font-weight: 900;
  outline: none;
}

.primary-tool input {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.primary-tool input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.calculator-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(168, 214, 53, 0.18);
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, #a8d635 0%, #55ae42 100%);
  color: var(--blue);
  box-shadow: 0 16px 34px rgba(85, 174, 66, 0.26);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(85, 174, 66, 0.34);
}

.ghost-button {
  border: 1px solid rgba(6, 31, 64, 0.12);
  background: #ffffff;
  color: var(--blue);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: rgba(85, 174, 66, 0.55);
  background: #f7fbf1;
  transform: translateY(-1px);
}

.result-box {
  min-height: 104px;
  margin-top: auto;
  border-radius: 8px;
  background: var(--blue);
  color: rgba(255, 255, 255, 0.84);
  padding: 16px;
  font-weight: 700;
}

.result-box-large {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 190px;
  border: 1px solid rgba(168, 214, 53, 0.34);
  background:
    linear-gradient(90deg, rgba(168, 214, 53, 0.14), rgba(110, 215, 232, 0.06)),
    rgba(1, 3, 6, 0.34);
}

.result-box span {
  display: block;
}

.result-action {
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 900;
}

.result-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 1.32rem;
}

.result-box-large strong {
  color: var(--green);
  font-size: 3.3rem;
  line-height: 1;
}

.result-box.is-error {
  background: #fff0f0;
  color: #841b1b;
  border: 1px solid rgba(132, 27, 27, 0.18);
}

.result-box.is-error strong,
.result-box.is-error .result-label,
.result-box.is-error .result-action {
  color: #841b1b;
}


.quick-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.52fr) minmax(360px, 1fr);
  gap: 20px;
  align-items: center;
  margin: 16px 0 22px;
  padding: 20px;
}

.quick-panel h2 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.quick-panel p,
.section-heading p:not(.eyebrow),
.help-copy p,
.info-card p,
.notice-box p,
td {
  color: var(--muted);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.studio-strip {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: stretch;
  margin: 0 0 22px;
}

.studio-image,
.studio-panel {
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.studio-image {
  position: relative;
  border: 1px solid rgba(6, 31, 64, 0.12);
}

.studio-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(168, 214, 53, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 214, 53, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 31, 64, 0.08), rgba(6, 31, 64, 0.36));
  background-size: 34px 34px, 34px 34px, 100% 100%;
}

.studio-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.studio-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(rgba(110, 215, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 215, 232, 0.06) 1px, transparent 1px),
    var(--blue);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  color: var(--white);
  padding: 24px;
}

.studio-panel h2 {
  color: var(--white);
}

.studio-panel p {
  color: rgba(255, 255, 255, 0.88);
}

.axis-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.axis-row span,
.axis-row strong {
  border: 1px solid rgba(168, 214, 53, 0.24);
  border-radius: 8px;
  padding: 10px 8px;
  color: var(--white);
  text-align: center;
  font-weight: 900;
}

.axis-row strong {
  grid-column: span 1;
  background: rgba(168, 214, 53, 0.18);
  color: var(--green);
}

.secondary-calculators,
.conversion-grid,
.answer-grid,
.faq-grid,
.table-layout {
  display: grid;
  gap: 18px;
}

.secondary-calculators {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 30px;
}

.tool-card:not(.primary-tool) {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
}

.seo-conversions,
.answer-section,
.faq-section,
.data-section {
  padding: 16px 0 36px;
}

.section-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 18px;
}

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

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

.info-card {
  position: relative;
  padding: 18px;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green), var(--cyan));
}

.info-card h3 {
  margin-bottom: 8px;
}

.card-button {
  width: fit-content;
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 14px;
}

.usage-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.54fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 28px;
  padding: 24px;
}

.help-section {
  margin-bottom: 28px;
  padding: 24px;
}

.formula-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(168, 214, 53, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(rgba(168, 214, 53, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 214, 53, 0.07) 1px, transparent 1px),
    var(--blue);
  background-size: 26px 26px, 26px 26px, 100% 100%;
  padding: 20px;
}

.formula-panel h2,
.formula-panel h3 {
  color: var(--green);
}

.formula-panel p {
  color: rgba(255, 255, 255, 0.88);
}

.help-list {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--muted);
}

.help-list li + li {
  margin-top: 4px;
}

.notice-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin-bottom: 34px;
  padding: 20px;
  border-color: rgba(242, 201, 76, 0.46);
  background: #fffdf3;
}

.notice-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--blue);
  font-weight: 900;
}

.table-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-card-wide {
  grid-column: 1 / -1;
}

.table-card {
  overflow: hidden;
  padding: 20px;
}

.responsive-table {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid rgba(6, 31, 64, 0.08);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

td:first-child,
td:last-child {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: center;
  margin-bottom: 30px;
  padding: 28px;
  border-color: rgba(168, 214, 53, 0.28);
  background:
    linear-gradient(rgba(168, 214, 53, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 214, 53, 0.065) 1px, transparent 1px),
    linear-gradient(135deg, rgba(6, 31, 64, 0.98), rgba(13, 61, 117, 0.96));
  background-size: 30px 30px, 30px 30px, 100% 100%;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.88);
}

.cta-button {
  align-self: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 0 34px;
  color: rgba(6, 31, 64, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 1000px) {
  body::before {
    background:
      linear-gradient(rgba(6, 31, 64, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(6, 31, 64, 0.035) 1px, transparent 1px),
      linear-gradient(180deg, #f4f7f2 0%, #eaf0eb 100%);
    background-size: 34px 34px, 34px 34px, 100% 100%;
  }

  .intro-section,
  .studio-strip,
  .quick-panel,
  .usage-section,
  .cta-section,
  .table-layout {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    min-height: auto;
    padding: 24px;
  }

  .primary-tool {
    min-height: auto;
  }

  .secondary-calculators,
  .conversion-grid,
  .answer-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 2.7rem;
  }

  .cta-button {
    width: min(100%, 360px);
  }
}

@media (max-width: 900px) {
  [id] {
    scroll-margin-top: 92px;
  }

  .site-header {
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .top-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    display: none;
    grid-template-columns: 1fr;
    width: auto;
    padding: 8px;
    border-color: rgba(168, 214, 53, 0.24);
    background: rgba(6, 31, 64, 0.98);
    box-shadow: 0 18px 36px rgba(1, 3, 6, 0.28);
  }

  .top-nav.is-open {
    display: grid;
  }

  .top-nav a {
    min-width: max-content;
  }
}

@media (max-width: 720px) {
  [id] {
    scroll-margin-top: 92px;
  }

  .site-header {
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
  }

  .brand {
    align-self: center;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .top-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    display: none;
    grid-template-columns: 1fr;
    width: auto;
    padding: 8px;
    border-color: rgba(168, 214, 53, 0.24);
    background: rgba(6, 31, 64, 0.98);
    box-shadow: 0 18px 36px rgba(1, 3, 6, 0.28);
  }

  .top-nav.is-open {
    display: grid;
  }

  .top-nav a {
    min-width: max-content;
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .axis-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .axis-row strong {
    grid-column: span 2;
  }

  .notice-box {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 520px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  main,
  .site-footer {
    width: min(100% - 20px, 1200px);
  }

  h1 {
    font-size: 2.22rem;
  }

  h2 {
    font-size: 1.42rem;
  }

  .brand-line {
    font-size: 1rem;
  }

  .primary-tool,
  .quick-panel,
  .tool-card:not(.primary-tool),
  .studio-panel,
  .info-card,
  .notice-box,
  .table-card,
  .usage-section,
  .help-section,
  .cta-section {
    padding: 16px;
  }

  .result-box-large strong {
    font-size: 2.35rem;
  }
}

.brand-home {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.brand-mark {
  overflow: hidden;
  background: #ffffff;
  padding: 5px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-link,
.footer-link {
  color: inherit;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 214, 53, 0.55);
}

.brand-link:hover,
.brand-link:focus-visible,
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--green);
}


.brand-copy {
  display: block;
  line-height: 1.12;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-home {
  flex: 0 0 auto;
}

