:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --ink: #151713;
  --muted: #64685d;
  --line: #dcded4;
  --panel: #ffffff;
  --panel-2: #ede6d8;
  --accent: #0f766e;
  --accent-2: #d97706;
  --danger: #b91c1c;
  --shadow: 0 24px 80px rgba(34, 36, 30, 0.12);
  --radius: 8px;
  --header-h: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(21, 23, 19, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(rgba(21, 23, 19, 0.035) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
  color: var(--ink);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(21, 23, 19, 0.08);
  background: rgba(247, 247, 242, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-block;
  background:
    linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, 0.55) 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 42%, rgba(255, 255, 255, 0.55) 42% 58%, transparent 58%),
    var(--accent);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.topbar nav,
.footer nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.topbar a:hover,
.footer a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 680px;
  animation: rise 680ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7.4vw, 106px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4.4vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.intro,
.workspace-heading p,
.compare-copy p,
.faq details p {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.primary {
  background: var(--ink);
  color: #fff;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  isolation: isolate;
  animation: fadeSlide 900ms 160ms ease both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 5% 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 118, 110, 0.18), transparent 48%),
    linear-gradient(135deg, rgba(21, 23, 19, 0.96), rgba(44, 48, 39, 0.92));
  border-radius: 28px;
  transform: rotate(-2deg);
  box-shadow: var(--shadow);
}

.chip {
  position: absolute;
  inset: 24% 18%;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    #10201d;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.04), 0 20px 80px rgba(0, 0, 0, 0.4);
}

.chip-core {
  width: 45%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #e7fff9;
  font-weight: 900;
  background: linear-gradient(135deg, #0f766e, #48b59f);
  box-shadow: 0 0 50px rgba(72, 181, 159, 0.45);
}

.pin {
  position: absolute;
  width: 18%;
  height: 8px;
  background: #b9c2aa;
  opacity: 0.82;
}

.p1, .p2, .p3, .p4 { left: -12%; }
.p5, .p6, .p7, .p8 { right: -12%; }
.p1, .p5 { top: 18%; }
.p2, .p6 { top: 38%; }
.p3, .p7 { top: 58%; }
.p4, .p8 { top: 78%; }

.trace {
  position: absolute;
  z-index: -1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79, 209, 183, 0.78), transparent);
}

.t1 { width: 56%; top: 24%; left: 7%; transform: rotate(18deg); }
.t2 { width: 68%; top: 72%; left: 20%; transform: rotate(-16deg); }
.t3 { width: 42%; top: 50%; right: 0; transform: rotate(48deg); }

.spec-orbit {
  position: absolute;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
  animation: float 4.5s ease-in-out infinite;
}

.orbit-one { top: 9%; right: 12%; }
.orbit-two { bottom: 11%; left: 4%; animation-delay: -1.4s; }
.orbit-three { bottom: 18%; right: 4%; animation-delay: -2.2s; color: #fff; background: var(--accent-2); }

.ad-slot {
  max-width: 980px;
  margin: 34px auto;
  min-height: 104px;
  display: grid;
  place-items: center;
  border: 1px dashed #aeb4a4;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.ad-wide {
  margin-top: 0;
}

.workspace,
.requirements,
.compare,
.faq {
  padding: clamp(56px, 8vw, 118px) clamp(18px, 5vw, 64px);
}

.workspace-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.controls,
.results {
  padding: clamp(22px, 4vw, 44px);
}

.controls {
  display: grid;
  gap: 18px;
  border-right: 1px solid var(--line);
  background: #fbfbf7;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

select,
input[type="range"] {
  width: 100%;
}

select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0;
}

input[type="range"] {
  accent-color: var(--accent);
}

.range-value {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.results {
  display: grid;
  gap: 22px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.11), transparent 42%),
    #fff;
}

.result-main {
  display: grid;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.result-main span,
.result-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-main strong {
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.result-grid div {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.result-grid strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.recommendation {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.55;
}

.recommendation h3 {
  color: var(--ink);
}

.budget-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e5dc;
}

.budget-bar span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 240ms ease;
}

.requirements {
  display: grid;
  gap: 30px;
  background: #151713;
  color: #f7f7f2;
}

.requirements .eyebrow {
  color: #81d8ca;
}

.spec-table {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.spec-table > div {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.table-head {
  color: #aeb7aa;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.compare-copy {
  max-width: 620px;
}

.keyword-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.keyword-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.04;
}

.os-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(130px, 0.55fr) minmax(220px, 1.4fr);
  gap: 18px;
  align-items: start;
  font-size: inherit;
}

.os-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.os-list strong {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.95;
}

.os-list p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.faq {
  max-width: 1120px;
  margin: 0 auto;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

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

.faq summary {
  cursor: pointer;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 900;
}

.faq details p {
  max-width: 820px;
  margin: 18px 0 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer > span {
  color: var(--ink);
  font-weight: 900;
}

.legal {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 118px) clamp(18px, 5vw, 64px);
}

.legal section {
  display: grid;
  gap: 18px;
}

.legal h1 {
  margin-bottom: 10px;
  font-size: clamp(46px, 7vw, 86px);
}

.legal h2 {
  margin-top: 24px;
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.legal p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

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

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(18px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (max-width: 920px) {
  .topbar {
    height: auto;
    min-height: var(--header-h);
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero,
  .calculator-shell,
  .compare {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .controls {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 92px;
  }

  .topbar nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

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

  .hero-visual {
    min-height: 330px;
  }

  .chip {
    inset: 25% 15%;
  }

  .spec-orbit {
    width: 66px;
    height: 66px;
    font-size: 13px;
  }

  .ad-slot {
    margin-left: 18px;
    margin-right: 18px;
  }

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

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

  .spec-table > div {
    min-width: 760px;
  }

  .os-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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