@font-face {
  font-family: "Nunito";
  src: url("../../fonts/Nunito-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../../fonts/Nunito-SemiBold.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f7f8fc;
  --muted: #aeb7cd;
  --navy-950: #03071d;
  --navy-900: #050c2d;
  --navy-850: #091033;
  --navy-800: #0f1538;
  --navy-700: #1c254f;
  --gold: #ffdd88;
  --gold-strong: #f7c95c;
  --teal: #55d8d0;
  --teal-dark: #123f48;
  --line: rgba(174, 183, 205, 0.2);
  --content: 1180px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--navy-950);
}

body {
  margin: 0;
  min-width: 300px;
  background: var(--navy-900);
  color: var(--ink);
  font-family: Nunito, "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
select {
  font: inherit;
}

button,
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

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

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  margin-bottom: 20px;
  font-size: 40px;
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-size: 32px;
  font-weight: 700;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--gold);
  color: #071027;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 29, 0.92);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.section-inner {
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  width: min(240px, 42vw);
}

.brand img {
  width: 100%;
  height: auto;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.language-switcher select {
  width: 210px;
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background-color: var(--navy-800);
  color: var(--ink);
  cursor: pointer;
}

.language-switcher select:focus-visible,
.button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(85, 216, 208, 0.7);
  outline-offset: 3px;
}

.hero {
  padding: 70px 20px 86px;
  background:
    linear-gradient(180deg, rgba(85, 216, 208, 0.06), transparent 38%),
    var(--navy-900);
}

.hero__copy {
  width: min(760px, 100%);
  margin: 0 auto 36px;
  text-align: center;
}

.hero__intro {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.calculator {
  width: min(680px, 100%);
  min-height: 452px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid rgba(255, 221, 136, 0.35);
  border-radius: var(--radius);
  background: var(--navy-800);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.calculator__view {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.calculator__view[hidden] {
  display: none;
}

.calculator__prompt {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.calculator__actions {
  width: 100%;
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.calculator__or {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button--primary {
  background: var(--gold);
  color: #08112b;
}

.button--primary:hover {
  background: var(--gold-strong);
}

.button--secondary {
  border-color: rgba(85, 216, 208, 0.5);
  background: var(--teal-dark);
  color: #ddfffc;
}

.button--secondary:hover {
  border-color: var(--teal);
  background: #185560;
}

.button--light {
  margin-top: 10px;
  background: #f8f4e7;
  color: #08112b;
}

.button--light:hover {
  background: white;
}

.time-picker {
  position: relative;
  width: min(460px, 100%);
  height: 180px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(174, 183, 205, 0.24);
  border-radius: var(--radius);
  background: #080f2e;
  perspective: 2000px;
}

.time-picker::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 0;
  width: 100%;
  height: 42px;
  border-top: 1px solid rgba(255, 221, 136, 0.24);
  border-bottom: 1px solid rgba(255, 221, 136, 0.24);
  background: rgba(255, 221, 136, 0.05);
  transform: translateY(-50%);
  pointer-events: none;
}

.time-picker > div {
  min-width: 0;
  flex: 1;
}

.select-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #58637f;
  text-align: center;
  cursor: ns-resize;
  user-select: none;
}

.select-wrap::before,
.select-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  width: 100%;
  height: 34%;
  pointer-events: none;
}

.select-wrap::before {
  top: 0;
  background: linear-gradient(to bottom, #080f2e, transparent);
}

.select-wrap::after {
  bottom: 0;
  background: linear-gradient(to top, #080f2e, transparent);
}

.select-options {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  transform-style: preserve-3d;
  will-change: transform;
}

.select-option {
  position: absolute;
  left: 0;
  width: 100%;
  will-change: visibility;
}

.highlight {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 0;
  width: 100%;
  height: 42px !important;
  overflow: hidden;
  color: var(--gold);
  font-size: 24px;
  font-weight: 700;
  line-height: 42px;
  transform: translateY(-50%);
  pointer-events: none;
}

.highlight-list {
  position: absolute;
  top: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlight-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.calculator__result-title {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 26px;
  font-weight: 700;
}

.calculator__result-copy,
.calculator__note {
  width: min(560px, 100%);
  color: var(--muted);
  text-align: center;
}

.calculator__result-copy {
  margin: 16px 0;
  color: var(--ink);
  font-size: 17px;
}

.calculator__note {
  margin-bottom: 0;
  font-size: 14px;
}

.calculator__note--wide {
  margin: 10px 0 20px;
}

.time-list {
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
}

.time-list__item {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #111943;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.time-list__item_suggested {
  border-color: rgba(255, 221, 136, 0.5);
  color: var(--gold);
}

.time-list__item_suggested::after {
  content: attr(data-label);
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.stats-band,
.feature-band,
.use-cases,
.faq-band,
.cta-band {
  padding: 86px 0;
}

.stats-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--navy-850);
}

.stats-band h2 {
  max-width: 560px;
}

.stats-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid > div {
  min-width: 0;
  padding: 26px 24px;
  border-inline-end: 1px solid var(--line);
}

.stats-grid > div:last-child {
  border-inline-end: 0;
}

.stats-grid strong {
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
}

.stats-grid span {
  margin-inline-start: 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.stats-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.feature-band {
  background: var(--navy-900);
}

.feature-band--alt,
.faq-band {
  background: var(--navy-850);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.split-layout--reverse .section-copy {
  order: 2;
}

.section-copy > p:not(.eyebrow),
.section-heading > p,
.faq-list details > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.media-frame {
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(85, 216, 208, 0.22);
  border-radius: var(--radius);
  background: var(--navy-950);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-list,
.check-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.step-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
}

.step-list li > span {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(85, 216, 208, 0.45);
  border-radius: 4px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.step-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-inline-start: 28px;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--gold);
  font-weight: 700;
}

.use-cases {
  background: #081126;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 36px;
}

.section-heading--center,
.section-inner--narrow {
  text-align: center;
}

.section-heading--center {
  margin-right: auto;
  margin-left: auto;
}

.section-inner--narrow {
  max-width: 820px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-grid article {
  min-width: 0;
  padding: 28px;
  border-inline-end: 1px solid var(--line);
}

.card-grid article:last-child {
  border-inline-end: 0;
}

.card-grid article > span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.card-grid article h3 {
  margin-top: 16px;
}

.card-grid article p {
  margin-bottom: 0;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line);
  text-align: start;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span:last-child {
  color: var(--gold);
  font-size: 24px;
  transition: transform 160ms ease;
}

.faq-list details[open] summary span:last-child {
  transform: rotate(45deg);
}

.faq-list details > p {
  margin: -2px 0 24px;
  padding-inline-end: 48px;
}

.cta-band {
  background: var(--teal-dark);
  text-align: center;
}

.cta-band .eyebrow {
  color: var(--gold);
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band p:not(.eyebrow) {
  color: #c9eeeb;
  font-size: 18px;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--navy-950);
}

.site-footer .section-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

html[dir="rtl"] .language-switcher select {
  padding-right: 12px;
  padding-left: 34px;
}

html[dir="rtl"] .time-picker,
html[dir="rtl"] .time-list {
  direction: ltr;
}

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.not-found {
  min-height: 610px;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 72px 20px;
  background:
    linear-gradient(180deg, rgba(85, 216, 208, 0.06), transparent 42%),
    var(--navy-900);
}

.not-found__inner {
  width: min(700px, 100%);
  text-align: center;
}

.not-found__code {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 112px;
  font-weight: 700;
  line-height: 0.9;
}

.not-found__copy {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
}

.not-found__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 900px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

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

  .stats-grid > div:nth-child(2),
  .card-grid article:nth-child(2) {
    border-inline-end: 0;
  }

  .stats-grid > div:nth-child(-n + 2),
  .card-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .split-layout--reverse .section-copy {
    order: 0;
  }

  .media-frame {
    max-width: 680px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 29px;
  }

  h2 {
    font-size: 25px;
  }

  .site-header__inner,
  .section-inner {
    width: min(100% - 28px, var(--content));
  }

  .site-header__inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand {
    width: 150px;
  }

  .language-switcher > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .language-switcher select {
    width: 150px;
    height: 38px;
    font-size: 13px;
  }

  .hero {
    padding: 46px 14px 62px;
  }

  .hero__intro {
    font-size: 16px;
  }

  .calculator {
    min-height: 470px;
    padding: 20px 14px;
  }

  .calculator__view {
    min-height: 428px;
  }

  .time-picker {
    height: 170px;
  }

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

  .calculator__or {
    min-height: 22px;
  }

  .button {
    width: 100%;
  }

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

  .stats-band,
  .feature-band,
  .use-cases,
  .faq-band,
  .cta-band {
    padding: 64px 0;
  }

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

  .stats-grid > div,
  .stats-grid > div:nth-child(2),
  .card-grid article,
  .card-grid article:nth-child(2) {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-grid > div:last-child,
  .card-grid article:last-child {
    border-bottom: 0;
  }

  .stats-grid > div,
  .card-grid article {
    padding: 22px 18px;
  }

  .site-footer .section-inner {
    flex-direction: column;
    gap: 8px;
  }

  .not-found {
    min-height: 520px;
    padding: 56px 14px;
  }

  .not-found__code {
    font-size: 82px;
  }

  .not-found__actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
