:root {
  --bg: #0B0D12;
  --surface: #12151C;
  --ink: #E6E8EE;
  --ink-soft: #9AA3B5;
  --line: #1F2430;

  --blue: #2F6FED;
  --amber: #F5B301;
  --amber-ink: #14171C;

  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

p { margin: 0 0 12px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

section { padding: 64px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 1.6rem; margin-bottom: 32px; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2660d1; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--ink-soft); }

/* ---- top bar ---- */
.topbar { padding: 16px 0; border-bottom: 1px solid var(--line); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.topbar-brand img { border-radius: 6px; display: block; }
.topbar-nav { display: flex; align-items: center; gap: 20px; }
.topbar-nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; }
.topbar-nav a:hover { color: var(--ink); }

/* ---- hero ---- */
header.hero { padding: 72px 0 64px; border-top: none; }
.hero-grid {
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero-copy { flex: 1 1 480px; min-width: 0; }
header.hero h1 {
  font-size: 2.9rem;
  line-height: 1.12;
  margin-bottom: 20px;
}
header.hero p.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- hero mocks ---- */
.hero-mocks {
  flex: 0 0 440px;
  position: relative;
  height: 470px;
}
.mock {
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  font-family: var(--font-body);
}
.hero-mocks .mock-tab {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  animation: mock-in 0.5s ease both;
}
.hero-mocks .mock-form {
  position: absolute;
  top: 230px;
  left: 150px;
  z-index: 2;
  animation: mock-in 0.5s ease 0.15s both;
}
@keyframes mock-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mocks .mock { animation: none; }
}

.mock-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.mock-header img { width: 24px; height: 24px; border-radius: 6px; }
.mock-header span { font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.mock-status {
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.group-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mock-save {
  display: block;
  width: 100%;
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.mock-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.mock-session:first-of-type { border-top: none; padding-top: 0; }
.mock-session strong { display: block; }
.mock-session span { display: block; color: var(--ink-soft); font-size: 0.78rem; margin-top: 2px; }
.mock-restore {
  flex: 0 0 auto;
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.fill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}
.fill-row:first-of-type { border-top: none; padding-top: 0; }
.fill-row span:first-child { color: var(--ink-soft); }
.fill-select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
  font-weight: 600;
  font-size: 0.78rem;
}

/* ---- products ---- */
.product {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px 0;
}
.product:not(:last-of-type) { border-bottom: 1px solid var(--line); }
.product-copy { flex: 1 1 480px; min-width: 0; }
.product-mock { flex: 0 0 300px; }
.product-icon { border-radius: 12px; display: block; margin-bottom: 16px; }
.product h3 { font-size: 1.35rem; margin-bottom: 8px; }
.product-copy > p { color: var(--ink-soft); }
.product-features {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-features li {
  padding-left: 20px;
  position: relative;
}
.product-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.product-price { font-size: 0.92rem; font-weight: 600; margin-bottom: 18px; }
.product-links { display: flex; gap: 14px; flex-wrap: wrap; }
.product-status { color: var(--ink-soft); font-size: 0.85rem; margin: 24px 0 0; }

/* ---- principles ---- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.principle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.principle-icon { width: 28px; height: 28px; color: var(--blue); margin-bottom: 14px; }
.principle h3 { font-size: 1.05rem; margin-bottom: 8px; }
.principle p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ---- roadmap ---- */
.roadmap-quarter {
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.roadmap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.roadmap-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.roadmap-list li:first-child { border-top: none; padding-top: 0; }
.badge {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-done { background: rgba(59, 201, 122, 0.15); color: #3BC97A; }
.badge-progress { background: rgba(245, 179, 1, 0.15); color: var(--amber); }
.badge-planned { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); }

/* ---- about ---- */
#about p { color: var(--ink-soft); max-width: 720px; }

/* ---- contact ---- */
.contact-links { display: flex; gap: 24px; }
.contact-links a { color: var(--blue); text-decoration: none; font-weight: 600; }
.contact-links a:hover { text-decoration: underline; }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
}
footer .wrap {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
footer a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
footer a:hover { color: var(--ink); }
.footer-inner { justify-content: space-between; align-items: center; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.footer-brand img { border-radius: 5px; display: block; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---- mobile ---- */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 44px 0; }
  header.hero { padding: 48px 0 40px; }
  header.hero h1 { font-size: 2.1rem; }
  .hero-grid { flex-direction: column; }
  .hero-copy { flex: none; }
  .hero-mocks { flex: none; width: 100%; max-width: 320px; margin: 0 auto; height: auto; display: grid; gap: 16px; }
  .hero-mocks .mock { position: static; width: 100%; animation: none; }
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .topbar-nav { gap: 14px; flex-wrap: wrap; width: 100%; }
  .product { flex-direction: column; align-items: stretch; }
  .product-copy { flex: none; }
  .product-mock { flex: none; align-self: center; }
  .principles-grid { grid-template-columns: 1fr; }
  .roadmap-list li { flex-wrap: wrap; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
