/* Halfwake Studio Labs — Polestar / Leica Nordic Studio White Edition */
:root {
  --bg: #ffffff;
  --surface: #f7f7f5;
  --surface-2: #f1f1ef;
  --border: #e2e2df;
  --border-bright: #0a0a0a;
  --text: #0a0a0a;
  --muted: #5c5c61;
  --dim: #8a8a90;
  --cyan: #ff5500;
  --emerald: #0a0a0a;
  --indigo: #0a0a0a;
  --violet: #0a0a0a;
  --amber: #ff5500;
  --radius-xl: 2px;
  --radius-lg: 2px;
  --radius-md: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.bg-canvas { display: none; }
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10, 10, 10, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

a { color: inherit; text-decoration: none; }
.mono { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, Menlo, monospace; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Architectural Sticky Topbar */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 13px;
}
.brand img {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid #c6c6c1;
}
.brand span.tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.12em;
}

.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 4px;
  border-radius: 0;
  transition: color 0.18s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #c6c6c1;
  padding: 6px 12px;
  border-radius: 2px;
  transition: all 0.18s;
}
.lang-pill:hover { border-color: var(--text); background: var(--text); color: #ffffff; }

/* Hero */
.hero {
  padding: 64px 0 42px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.hero h1 {
  font-size: clamp(32px, 4.8vw, 56px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 820px;
  margin: 0 0 16px;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: initial;
}
.hero h1 .accent {
  background: none;
  -webkit-text-fill-color: var(--dim);
  color: var(--dim);
}
.hero p.lead {
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  color: var(--muted);
  max-width: 640px;
  margin: 0;
}

/* Section labels */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}
.section-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
}
.section-link {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.18s;
}
.section-link:hover { color: var(--cyan); }

/* Architectural Hairline Cards */
.bento-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.bento-card::before { display: none; }
.bento-card:hover { border-color: var(--text); background: #ffffff; }
.bento-card.indigo-glow:hover { border-color: var(--text); }

.flagship-section { padding: 18px 0 44px; }
.flagship-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.flagship-card { display: flex; flex-direction: column; justify-content: space-between; padding: 28px; min-height: 460px; }
.card-top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.div-num { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; color: var(--dim); }

.status-chip {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 2px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
}
.status-chip.cyan { color: var(--cyan); border-color: var(--border); background: #ffffff; }
.status-chip.violet { color: var(--text); border-color: #c6c6c1; background: #ffffff; }

.flagship-card h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 10px; }
.flagship-card p.desc { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.visual-frame { position: relative; border-radius: 2px; overflow: hidden; border: 1px solid var(--text); background: #050505; aspect-ratio: 16 / 9; margin-bottom: 18px; }
.visual-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hud-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.72) 100%); display: flex; flex-direction: column; justify-content: space-between; padding: 12px 14px; }
.hud-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hud-pill { font-size: 10px; font-weight: 600; color: #ffffff; background: rgba(10,10,10,0.72); border: 1px solid rgba(255,255,255,0.2); padding: 4px 8px; border-radius: 2px; }

.sms-stage { border-radius: 2px; border: 1px solid var(--border); background: #ffffff; padding: 15px 16px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 195px; justify-content: center; }
.sms-bar { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--dim); padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sms-bubble { font-size: 12px; line-height: 1.5; padding: 8px 11px; border-radius: 2px; max-width: 94%; }
.sms-bubble.ai { background: var(--surface); border-left: 2px solid #c6c6c1; color: var(--muted); align-self: stretch; }
.sms-bubble.user { background: transparent; border-left: 2px solid var(--text); color: var(--text); align-self: stretch; font-weight: 500; }
.sms-bubble.ticket { background: var(--surface); border: 1px solid #c6c6c1; border-left: 2px solid var(--cyan); color: var(--text); align-self: stretch; font-size: 11.5px; }

.spec-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.spec-chip { font-size: 11px; color: var(--muted); background: #ffffff; border: 1px solid var(--border); padding: 4px 9px; border-radius: 2px; }

.cta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 2px;
  transition: all 0.18s ease;
  cursor: pointer;
}
.btn-primary, .btn-primary.indigo { background: var(--text); color: #ffffff; border: 1px solid var(--text); }
.btn-primary:hover, .btn-primary.indigo:hover { background: #262628; border-color: #262628; }
.btn-ghost { background: #ffffff; border: 1px solid #c6c6c1; color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: var(--text); color: #ffffff; }

.ecosystem-section { padding: 6px 0 48px; }
.eco-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.eco-card { border-radius: 2px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; background: var(--surface); }
.eco-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.eco-icon { width: 34px; height: 34px; border-radius: 2px; display: grid; place-items: center; font-size: 16px; background: #ffffff; border: 1px solid var(--border); }
.eco-card h3 { font-size: 16px; font-weight: 600; color: var(--text); }
.eco-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.eco-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; font-weight: 500; color: var(--text); }

.proof-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px 24px; border-radius: 2px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 48px; }
.proof-item strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 3px; color: var(--text); }
.proof-item span { font-size: 12.5px; color: var(--muted); }

.tools-section { padding: 26px 0 36px; }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-card { border-radius: 2px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.tool-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--text); letter-spacing: -0.015em; }
.tool-card p { font-size: 13.5px; color: var(--muted); line-height: 1.62; }

.cta-banner {
  margin: 26px 0 56px;
  padding: 32px;
  border-radius: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

footer { border-top: 1px solid var(--border); padding: 32px 0 46px; color: var(--dim); font-size: 12.5px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 900px) {
  .flagship-grid, .eco-grid, .proof-strip, .tools-grid { grid-template-columns: 1fr; }
  .flagship-card { min-height: auto; padding: 22px; }
  .nav-links { display: none; }
  .hero { padding: 44px 0 28px; }
}
