/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --ink: #0a0a0a;
  --ink-2: #2a2a2a;
  --muted: #6b6b6b;
  --line: #ebebeb;
  --line-strong: #d8d8d8;
  --accent: #ffd60a;
  --accent-soft: #fff8d1;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1200px;
  --pad: 28px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
button,
a {
  cursor: pointer;
}
img,
svg {
  display: block;
  max-width: 100%;
}

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 0.85em;
  color: var(--ink-2);
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn--primary:hover {
  background: #1a1a1a;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--ink);
}
.btn--lg {
  padding: 14px 26px;
  font-size: 15px;
}

/* ===== Topbar ===== */
.topbar {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(var(--pad), calc((100vw - var(--max)) / 2));
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.topnav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.topnav a:hover {
  color: var(--ink);
}

.topbar__cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-right: 4px;
}
.lang-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.lang-switch__btn:hover {
  color: var(--ink);
}
.lang-switch__btn.is-active {
  background: var(--ink);
  color: #fff;
}

/* ===== Metrics strip ===== */
.metrics {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 16px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border-right: none;
}
.metric:first-child {
  padding-left: 0;
}

.metric__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.metric__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
#gen-time {
  color: var(--ink);
}

/* ===== Hero ===== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px var(--pad) 90px;
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  max-width: 880px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 28px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2ecc71;
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.18);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(46, 204, 113, 0.05);
  }
}

.hero__title {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 26px;
}
.accent {
  background: linear-gradient(180deg, transparent 60%, var(--accent) 60%);
  padding: 0 4px;
}

.hero__tag {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  line-height: 1.3;
}

.hero__lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 680px;
  margin: 0 0 18px;
  line-height: 1.5;
}

.hero__note {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin: 0 0 36px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Section heads ===== */
.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  margin-bottom: 56px;
  text-align: center;
}
.section-head__kicker {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
}
.section-head__title {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Roadmap / Flow ===== */
.roadmap {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.flow {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr 60px 1fr;
  align-items: stretch;
  gap: 0;
}

.flow__step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.flow__step:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.flow__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.flow__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.flow__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

.flow__line {
  position: relative;
  align-self: center;
  height: 2px;
  background: var(--line-strong);
  overflow: visible;
  border-radius: 2px;
}
.flow__line .pulse {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 0 rgba(255, 214, 10, 0.7);
  animation: lineFlow 2.4s linear infinite;
}
.flow__line:nth-of-type(4) .pulse {
  animation-delay: 0.3s;
}
.flow__line:nth-of-type(6) .pulse {
  animation-delay: 0.6s;
}

@keyframes lineFlow {
  0% {
    left: 0;
    box-shadow: 0 0 0 0 rgba(255, 214, 10, 0.6);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 8px);
    box-shadow: 0 0 0 10px rgba(255, 214, 10, 0);
    opacity: 0;
  }
}

/* ===== Why / Cards ===== */
.why {
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}

.cards {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.card {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background 0.2s ease;
  position: relative;
}
.card:hover {
  background: var(--bg-alt);
}
.card:hover .card__num {
  color: var(--ink);
}

.card__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  transition: color 0.2s ease;
}
.card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.card__text {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ===== Models ===== */
.models {
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.model-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.model {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.model:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.model__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.model__name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.model__id {
  font-size: 12px;
}
.model__text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.badge--gold {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #6b4f00;
}

/* ===== FAQ ===== */
.faq {
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}

.accordion {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acc-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.acc-item[open] {
  border-color: var(--ink);
}

.acc-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  user-select: none;
}
.acc-item summary::-webkit-details-marker {
  display: none;
}
.acc-item summary:hover {
  background: var(--bg-alt);
}

.acc-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.acc-icon::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.acc-icon::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}
.acc-item[open] .acc-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.acc-body {
  padding: 0 26px 22px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== Outro ===== */
.outro {
  padding: 110px 0;
  background: var(--ink);
  color: #fff;
}
.outro__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
}
.outro__title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  color: #fff;
}
.outro__list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.outro__list li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  display: flex;
  gap: 12px;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.outro__list li > span:first-child {
  color: var(--accent);
  font-weight: 700;
  /* flex-shrink: 0; */
}
.outro__list li > span:last-child {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.outro__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.outro .btn--primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.outro .btn--primary:hover {
  background: #ffe04d;
}
.outro .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.outro .btn--ghost:hover {
  border-color: #fff;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
}
.footer__tag {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
  max-width: 280px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 600;
}
.footer__cols a {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  padding: 4px 0;
}
.footer__cols a:hover {
  color: var(--ink);
}
.footer__bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 24px var(--pad) 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .topnav {
    display: none;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px var(--pad);
  }
  .metric {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
  }
  .metric:nth-child(2n) {
    border-right: none;
  }
  .metric:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .flow__line {
    width: 2px;
    height: 50px;
    background: var(--line-strong);
    margin: 0 auto;
  }
  .flow__line .pulse {
    top: 0;
    left: -3px;
    animation: lineFlowVertical 2.4s linear infinite;
  }
  @keyframes lineFlowVertical {
    0% {
      top: 0;
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    100% {
      top: calc(100% - 8px);
      opacity: 0;
    }
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .model-grid {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 18px;
  }
  .topbar__cta .btn--ghost {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px var(--pad);
  }
  .metric {
    padding: 8px 10px;
  }
  .metric:nth-child(2n) {
    border-right: none;
  }
  .metric__value {
    font-size: 15px;
  }

  .hero {
    padding: 70px var(--pad) 60px;
  }
  .hero__tag {
    font-size: 18px;
    margin-bottom: 18px;
  }
  .hero__lead {
    font-size: 16px;
  }
  .hero__note {
    font-size: 11px;
    margin-bottom: 28px;
  }
  .roadmap,
  .why,
  .models,
  .faq,
  .outro {
    padding: 70px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }
  .footer__cols {
    grid-template-columns: 1fr 1fr;
  }

  /* Outro on mobile */
  .outro {
    padding: 60px 0;
  }
  .outro__title {
    font-size: 24px;
    margin-bottom: 24px;
    line-height: 1.25;
  }
  .outro__list {
    gap: 14px;
    margin-bottom: 32px;
  }
  .outro__list li {
    font-size: 14px;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.45;
  }
  .outro__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .outro__actions .btn {
    width: 100%;
  }
}
