/* CyberTwin Spatial Canvas — homepage styles
   Tokens from spatial_canvas_tokens.json */

:root {
  --ink: #0F1220;
  --canvas: #F7F5F0;
  --surface: #FFFFFF;
  --intent: #6B5CF6;
  --tech: #38D5C4;
  --sky: #9CCFE8;
  --coral: #F18A78;
  --sage: #9DC6A7;
  --stone: #E5E7EB;
  --muted: #4B5163;
  --gradient: linear-gradient(90deg, #6B5CF6 0%, #38D5C4 100%);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow: 0 1px 2px rgba(15,18,32,.05), 0 8px 24px rgba(15,18,32,.07);
  --shadow-lg: 0 12px 40px rgba(15,18,32,.12);
  --font: 'Satoshi', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
.container { width: min(1140px, 92%); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 200;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,18,32,.06);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 0; }
.brand-logo { height: 44px; width: auto; }

.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); border-color: var(--intent); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
/* Page switcher — segmented control, same look as index.html (Studio / Enterprise).
   The current page is .active; the link to the other page carries an arrow in every state. */
.nav-switch { display: flex; align-items: center; background: #ececf1; border-radius: 11px; padding: 4px; flex: none; }
.sw {
  display: flex; flex-direction: column; align-items: center; line-height: 1.15;
  padding: 7px 18px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #5c5c66;
  text-decoration: none; transition: background .2s, color .2s; white-space: nowrap;
}
.sw small { font-size: 10px; font-weight: 500; color: #8a8a94; margin-top: 1px; }
.sw:hover { color: #111114; }
.sw.active { background: var(--intent); color: #fff; }
.sw.active small { color: rgba(255,255,255,.75); }
.sw .arrow { display: inline-block; margin-left: 5px; font-weight: 700; transition: transform .15s ease; }
.sw:hover .arrow, .sw:focus-visible .arrow { transform: translateX(3px); }
.sw:focus-visible { outline: 2px solid var(--intent); outline-offset: 2px; }
@media (max-width: 600px) {
  .nav-switch { padding: 3px; }
  .sw { padding: 6px 12px; font-size: 12px; }
  .sw small { display: none; }
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--intent); margin-bottom: 1rem;
}
.eyebrow-light { color: var(--tech); }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); margin: 1.2rem 0 2rem; max-width: 34ch; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-media img { border-radius: var(--radius-l); box-shadow: var(--shadow-lg); }
.hero-media figcaption { margin-top: .8rem; font-size: .85rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--surface); }
.section-lede { font-size: 1.1rem; color: var(--muted); margin: 1rem 0 2.5rem; max-width: 60ch; }
.center .section-lede { margin-inline: auto; }
.small-note { font-size: .85rem; color: var(--muted); margin-top: 1.2rem; max-width: 52ch; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card { background: var(--surface); border-radius: var(--radius-m); padding: 2rem; box-shadow: var(--shadow); }
.step-num { font-weight: 700; color: var(--intent); letter-spacing: .1em; font-size: .85rem; }
.step-card h3 { margin: .8rem 0 .5rem; }
.step-card p { color: var(--muted); }

/* Build cards */
.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.build-card {
  background: var(--canvas); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.build-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.build-card img { height: 210px; width: 100%; object-fit: cover; }
.build-card-body { padding: 1.6rem; }
.build-tagline { color: var(--intent); font-weight: 600; font-size: .9rem; margin: .3rem 0 .8rem; }
.build-card-body p:last-child { color: var(--muted); font-size: .95rem; }

/* Create */
.create-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.chip-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; }
.chip-cloud li {
  background: var(--surface); border: 1px solid var(--stone); border-radius: 999px;
  padding: .55rem 1.1rem; font-size: .92rem; font-weight: 500; box-shadow: var(--shadow);
}

/* AI (ink section) */
.section-ink { background: var(--ink); color: #fff; }
.section-ink .section-lede { color: rgba(255,255,255,.75); }
.ai-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.ai-panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-l); padding: 2rem;
}
.ai-panel-title { font-weight: 700; margin-bottom: 1rem; }
.ai-panel ul { list-style: none; }
.ai-panel li { padding: .7rem 0 .7rem 1.6rem; position: relative; color: rgba(255,255,255,.85); }
.ai-panel li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem; width: .6rem; height: .6rem;
  border-radius: 50%; background: var(--gradient);
}

/* Deploy */
.deploy-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.deploy-list { list-style: none; }
.deploy-list li { padding: .55rem 0; display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.deploy-media img { border-radius: var(--radius-l); box-shadow: var(--shadow-lg); }
.status { font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; letter-spacing: .04em; white-space: nowrap; }
.status-available { background: rgba(157,198,167,.25); color: #2E6B45; }
.status-beta { background: rgba(156,207,232,.35); color: #24567A; }
.status-dev { background: rgba(107,92,246,.14); color: var(--intent); }
.status-soon { background: var(--stone); color: var(--muted); }
.section-ink .status { background: rgba(255,255,255,.12); color: #fff; }

/* Player */
.player-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.player-grid img { border-radius: var(--radius-l); box-shadow: var(--shadow-lg); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.duo-card { background: var(--canvas); border-radius: var(--radius-m); padding: 1.2rem 1.4rem; }
.duo-card h3 { color: var(--intent); }
.duo-card p { color: var(--muted); font-size: .95rem; }

/* Integrations */
.int-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.int-group h3 { margin-bottom: 1rem; font-size: 1.05rem; }
.partner-chip {
  background: var(--ink); border-radius: var(--radius-m); padding: 1.4rem;
}
.partner-chip img { margin-bottom: .8rem; }
.partner-chip p { color: rgba(255,255,255,.75); font-size: .88rem; }

/* Use cases */
.uc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.uc-card {
  background: var(--canvas); border-radius: var(--radius-m); padding: 1.6rem;
  border-top: 3px solid var(--intent); box-shadow: var(--shadow);
}
.uc-card:nth-child(2) { border-top-color: var(--tech); }
.uc-card:nth-child(3) { border-top-color: var(--coral); }
.uc-card:nth-child(4) { border-top-color: var(--sky); }
.uc-card:nth-child(5) { border-top-color: var(--sage); }
.uc-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.uc-card p { color: var(--muted); font-size: .92rem; }
.orgs { margin-top: 3rem; text-align: center; }
.orgs-label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.orgs-placeholder { color: var(--muted); margin-top: .6rem; font-size: .95rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.price-card { background: var(--canvas); border-radius: var(--radius-l); padding: 2rem; box-shadow: var(--shadow); }
.price-badge {
  position: absolute; top: -14px; left: 2rem; background: var(--gradient); color: #fff;
  font-size: .75rem; font-weight: 700; padding: .3rem .9rem; border-radius: 999px;
}
.price-line { color: var(--intent); font-weight: 700; margin: .4rem 0 1.2rem; }
.price-card ul { list-style: none; margin-bottom: 1.8rem; }
.price-card li { padding: .45rem 0 .45rem 1.4rem; position: relative; color: var(--muted); font-size: .95rem; }
.price-card li::before { content: ""; position: absolute; left: 0; top: .95rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gradient); }
.price-featured { background: var(--ink); color: #fff; position: relative; }
.price-card.price-featured h3 { color: #fff; }
.price-card.price-featured .price-line { color: #fff; }
.price-card.price-featured li { color: rgba(255,255,255,.95); }
.price-featured .btn-ghost { border-color: #fff; color: #fff; }
.price-featured .btn-ghost:hover { background: #fff; color: var(--ink); }
/* Status chips on the dark featured card need light text */
.price-card.price-featured .status-available { background: rgba(157,198,167,.35); color: #DCF0E3; }
.price-card.price-featured .status-beta { background: rgba(156,207,232,.40); color: #D6EEFA; }
.price-card.price-featured .status-dev { background: rgba(107,92,246,.45); color: #DAD5FD; }
.price-card.price-featured .status-soon { background: rgba(255,255,255,.16); color: #EDEDF2; }

/* Final CTA */
.final-cta .section-lede { margin-bottom: 2rem; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-wordmark { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.footer-tagline {
  font-size: .72rem; letter-spacing: .28em; margin-top: .3rem;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-note { color: rgba(255,255,255,.6); margin-top: 1rem; max-width: 34ch; font-size: .95rem; }
.site-footer h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; color: rgba(255,255,255,.55); }
.site-footer nav a, .site-footer a { display: block; color: rgba(255,255,255,.8); text-decoration: none; padding: .25rem 0; }
.site-footer a:hover { color: #fff; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: .85rem; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .build-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .create-grid, .deploy-grid, .player-grid, .ai-grid { grid-template-columns: 1fr; }
  .steps, .build-grid, .int-groups, .pricing-grid { grid-template-columns: 1fr; }
  .player-grid figure { order: 2; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); flex-direction: column; padding: 1rem 4%;
    border-bottom: 1px solid var(--stone); box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}