:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-soft: #fbfbfd;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: #d2d2d7;
  --border-soft: rgba(0, 0, 0, 0.08);
  --ok: #1f9d55;
  --on-dark: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
}

::selection {
  background: rgba(0, 113, 227, 0.18);
  color: var(--text);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
}

.dim {
  color: var(--muted-2);
}

/* ----- TOPBAR ----- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  color: var(--text);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.88;
  transition: opacity 160ms ease;
}

.nav-link:hover {
  opacity: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-contact {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
  transition: color 160ms ease;
}

.topbar-contact:hover {
  color: var(--accent-hover);
}

/* ----- HERO ----- */
.hero {
  padding: 100px 22px 88px;
  text-align: center;
}

.hero-copy {
  margin: 0 auto;
  max-width: 880px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 1.4rem;
  padding: 0.32rem 0.8rem;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
}

.eyebrow-mark {
  display: none;
}

h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.hero-sub {
  margin: 0 auto 1.8rem;
  color: var(--muted);
  max-width: 720px;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 400;
  font-size: 1.02rem;
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: var(--on-dark);
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
}

.btn.primary:hover {
  background: var(--accent-hover);
  color: var(--on-dark);
}

.btn.ghost,
.btn.link {
  background: transparent;
  color: var(--accent);
  padding: 0.4rem 0;
}

.btn.ghost:hover,
.btn.link:hover {
  color: var(--accent-hover);
}

.btn.ghost::after,
.btn.link::after {
  content: "›";
  margin-left: 0.2rem;
  font-size: 1.1em;
  line-height: 1;
}

/* Hero stat strip */
.hero-stats {
  margin: 3.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  justify-content: center;
  align-items: flex-start;
  max-width: 920px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hero-stat-value {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hide unused old elements */
.trust-grid,
.hero-panel {
  display: none;
}

/* ----- SECTIONS ----- */
.section {
  padding: 110px 22px;
  border-top: 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: -0.005em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.section-intro {
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.45;
  max-width: 680px;
}

/* ----- PLATFORM (horizontal chip tabs + panel) ----- */
.platform {
  max-width: 1080px;
  margin: 0 auto;
}

.platform-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.4rem;
}

.ptab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.section.alt .ptab {
  background: var(--bg-alt);
}

.ptab:hover {
  border-color: var(--text);
}

.ptab.is-active {
  background: var(--text);
  color: var(--on-dark);
  border-color: var(--text);
}

.ptab-num {
  display: none;
}

.platform-panels {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 3.4rem 2.4rem 2.8rem;
  text-align: center;
}

.section.alt .platform-panels {
  background: var(--bg);
}

.ppanel {
  display: none;
}

.ppanel.is-active {
  display: block;
  animation: panel-fade 360ms ease both;
}

.ppanel h3 {
  margin: 0 auto 1rem;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 720px;
}

.ppanel > p {
  margin: 0 auto 2rem;
  color: var(--muted);
  max-width: 640px;
  font-size: 1.08rem;
}

@keyframes panel-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.spec-list {
  margin: 0 auto;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  text-align: left;
  border-top: 1px solid var(--border-soft);
}

.spec-list > div {
  padding: 1rem 0.4rem;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.spec-list dt {
  font-size: 0.78rem;
  color: var(--muted-2);
  letter-spacing: 0;
}

.spec-list dd {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 400;
}

/* ----- ARCHITECTURE FLOW ----- */
.flow {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.flow li {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 2rem 1.6rem 2rem;
  text-align: left;
}

.section.alt .flow li {
  background: var(--bg);
}

.flow-num {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.flow h3 {
  margin: 0.6rem 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.flow p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ----- SPECS (big-number cards, Apple-style) ----- */
.specs {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.spec-row {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 2.4rem 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.5rem;
}

.section.alt .spec-row {
  background: var(--bg);
}

.spec-key {
  order: 2;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.spec-val {
  order: 1;
  color: var(--text);
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.spec-note {
  order: 3;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ----- CARDS (use cases) ----- */
.cards {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.card {
  border: 1px solid var(--border-soft);
  background: var(--bg);
  border-radius: 22px;
  padding: 1.8rem 1.6rem 1.6rem;
  transition: transform 200ms ease, border-color 200ms ease;
}

.section.alt .card {
  background: var(--bg);
}

.card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ----- ROADMAP ----- */
.roadmap-list {
  list-style: none;
  padding: 0;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.roadmap-list li {
  border: 1px solid var(--border-soft);
  background: var(--bg);
  border-radius: 22px;
  padding: 1.8rem 1.6rem 1.6rem;
}

.section.alt .roadmap-list li {
  background: var(--bg);
}

.rm-phase {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.roadmap-list h3 {
  margin: 0.5rem 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.roadmap-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ----- REVEAL ----- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- FOOTER ----- */
.footer {
  background: var(--bg-alt);
  padding: 32px 0 24px;
  margin-top: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-soft);
}

.footer-grid .brand {
  font-size: 0.9rem;
}

.footer-grid p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.footer-label {
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 500;
  margin: 0 0 0.4rem;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  display: block;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ----- POPUP ----- */
.call-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.call-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.call-modal-card {
  width: min(440px, 94vw);
  position: relative;
  border: 1px solid var(--border-soft);
  background: var(--bg);
  border-radius: 22px;
  padding: 2rem 1.8rem 1.8rem;
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.call-modal.is-visible .call-modal-card {
  animation: modal-in 380ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

@keyframes modal-in {
  0% { opacity: 0; transform: translateY(14px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.call-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border: none;
  background: transparent;
  color: var(--muted);
  width: 1.8rem;
  height: 1.8rem;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 160ms ease, color 160ms ease;
}

.call-modal-close:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.call-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.call-modal-card h3 {
  margin: 0.6rem 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.call-modal-card > p {
  margin: 0 auto 1.4rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 340px;
}

.call-modal-cta {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: var(--on-dark);
  font-weight: 400;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  transition: background 160ms ease;
}

.call-modal-cta:hover {
  background: var(--accent-hover);
}

.call-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
  justify-content: center;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  border: none;
  background: transparent;
  padding: 0.3rem 0.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease;
}

.meta-pill:hover {
  color: var(--accent);
}

.meta-pill.subtle {
  cursor: default;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--on-dark);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ----- FOCUS ----- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

[id] {
  scroll-margin-top: 64px;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 70px 22px 60px; }
  .section { padding: 80px 22px; }
  .nav-links { display: none; }
  .hero-stats { gap: 1.6rem 2.2rem; }
  .platform-panels { padding: 2.4rem 1.4rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
