:root {
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --gray-bg: #f5f5f7;
  --white: #ffffff;
  --accent: #FFD60A;
  --accent-ink: #6b5900;
  --border: #d2d2d7;
  --radius: 18px;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.section-inner.narrow { max-width: 640px; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.icon-mark { display: block; width: 100%; height: 100%; }
.hero-logo { width: 104px; height: 104px; margin: 0 auto 22px; }
.hero-logo .logo-mark { width: 100%; height: 100%; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.brand-ai { color: var(--accent-ink); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 13px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }

/* HERO */
.hero {
  padding: 110px 0 90px;
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-bg) 100%);
}
.hero-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
}
.hero-tag {
  margin-top: 14px;
  font-size: 21px;
  font-weight: 500;
  color: var(--accent-ink);
}
.hero-sub {
  margin-top: 22px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.1s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { opacity: 0.85; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { background: var(--gray-bg); }
.btn-block { width: 100%; text-align: center; border: none; }

/* SECTIONS generic */
section { padding: 84px 0; }
.section-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 620px;
  margin-top: 12px;
}
h2 { font-size: clamp(28px, 4vw, 40px); }

/* LEARN / GLOSSARY */
.learn { background: var(--white); }
.glossary-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.glossary-card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 28px;
}
.glossary-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
}
.glossary-card h3 { font-size: 19px; margin-bottom: 10px; }
.glossary-card p { font-size: 15px; color: var(--ink-soft); margin-top: 10px; }
.glossary-card p:first-of-type { margin-top: 0; }
.glossary-rule { color: var(--ink) !important; }
.glossary-rule code {
  background: rgba(0,0,0,0.06);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 13px;
}

/* CALCULATOR */
.calculator { background: var(--gray-bg); }
.calc-panel {
  margin-top: 40px;
  background: var(--white);
  border-radius: 24px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.calc-inputs { display: flex; flex-direction: column; gap: 26px; }
.calc-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.calc-field input, .calc-field select {
  font-size: 16px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit;
}
.calc-hint { font-size: 13px; font-weight: 400; color: var(--ink-soft); }

.calc-result {
  background: var(--gray-bg);
  border-radius: 16px;
  padding: 24px 26px;
  font-size: 15px;
}
.calc-result .calc-headline {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}
.calc-result .calc-steps { list-style: none; margin: 0; padding: 0; }
.calc-result .calc-steps li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
}
.calc-result .calc-steps li:first-child { border-top: none; }
.calc-result .calc-steps strong { color: var(--ink); }
.calc-recommend {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.calc-recommend-name { font-weight: 600; font-size: 17px; }

@media (max-width: 760px) {
  .calc-panel { grid-template-columns: 1fr; }
  .cluster-note { flex-direction: column; }
}

/* MODEL ADVISOR */
.models { background: var(--white); }
.model-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.model-card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.model-card h3 { font-size: 19px; }
.model-params { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.model-math {
  margin-top: 20px;
  font-size: 16px;
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
}
.model-math strong { color: var(--accent-ink); font-size: 19px; }
.model-need-label { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }

/* BUILDS */
.builds { background: var(--gray-bg); }
.cluster-note {
  margin-top: 32px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.cluster-note-icon { width: 60px; height: 60px; flex-shrink: 0; }
.cluster-note p { margin-top: 12px; }
.cluster-note p:first-child { margin-top: 0; }
.cluster-note strong { color: var(--ink); }

.build-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.build-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.build-icon { width: 52px; height: 52px; margin-bottom: 14px; }
.build-audience {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.build-card h3 { font-size: 24px; }
.build-headline { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }
.build-specs { margin-top: 20px; }
.build-spec {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.build-spec:first-child { border-top: none; padding-top: 0; }
.build-spec .spec-label { color: var(--ink-soft); }
.build-spec .spec-value { font-weight: 600; text-align: right; }
.build-explain {
  margin: 18px 0 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  flex-grow: 1;
}

/* STORE / PRODUCTS */
.store { background: var(--white); }
.product-icon { width: 76px; height: 76px; margin-bottom: 18px; }
.product-tier {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
.product-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.product-head { margin-bottom: 18px; }
.product-head h3 { font-size: 22px; }
.product-tagline { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.product-price { font-size: 26px; font-weight: 600; margin-top: 14px; }

.spec-list { list-style: none; margin: 0 0 18px; padding: 0; flex-grow: 1; }
.spec-list li { padding: 12px 0; border-top: 1px solid var(--border); }
.spec-list li:first-child { border-top: none; }
.spec-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.spec-label { color: var(--ink-soft); }
.spec-value { font-weight: 600; text-align: right; max-width: 62%; }
.spec-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; line-height: 1.4; }

.product-goodfor { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.product-goodfor strong { color: var(--ink); }

/* CONTACT */
.contact { background: var(--gray-bg); }
.quote-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
}
.quote-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.quote-form input, .quote-form select, .quote-form textarea {
  font-size: 15px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  resize: vertical;
}
.quote-form button { align-self: flex-start; }
.quote-status { font-size: 14px; margin: 0; min-height: 20px; }
.quote-status.success { color: #1e7e34; }
.quote-status.error { color: #b3261e; }

/* REQUESTS PAGE */
.requests-page { background: var(--white); min-height: 60vh; padding-top: 60px; }
.requests-table-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.requests-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.requests-table th, .requests-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.requests-table td:last-child, .requests-table th:last-child { white-space: normal; }
.requests-table thead th { background: var(--gray-bg); font-weight: 600; }
.requests-table tbody tr:last-child td { border-bottom: none; }
.req-num { font-weight: 600; color: var(--accent-ink); }

/* FOOTER */
.footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 44px 0; }
.footer-inner { display: flex; align-items: center; gap: 14px; }
.footer-inner p { font-size: 13px; }
