:root {
  --holder-bg: #f4f1ea;
  --holder-ink: #1f2528;
  --holder-muted: #687077;
  --holder-panel: #ffffff;
  --holder-line: #d9d2c7;
  --holder-copper: #aa6635;
  --holder-rust: #7d3f2a;
  --holder-sage: #66745f;
  --holder-blue: #315f7e;
  --holder-charcoal: #162027;
  --holder-shadow: 0 18px 48px rgba(31, 37, 40, 0.14);
}

* { box-sizing: border-box; }

body.phone-holder-page {
  margin: 0;
  display: block;
  height: auto;
  min-height: 100vh;
  background: var(--holder-bg);
  color: var(--holder-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.phone-holder-nav {
  position: sticky;
  top: 0;
  flex-shrink: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem;
  overflow-x: auto;
  background: rgba(244, 241, 234, 0.9);
  border-bottom: 1px solid var(--holder-line);
  backdrop-filter: blur(14px);
}

.phone-holder-nav a,
.action,
.demo-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--holder-line);
  border-radius: 10px;
  color: var(--holder-ink);
  background: var(--holder-panel);
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.phone-holder-nav a:hover,
.action:hover,
.demo-controls button:hover,
.demo-controls button.is-active {
  border-color: var(--holder-copper);
}

.hero-shell,
main,
.phone-holder-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.hero-copy { max-width: 650px; }

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--holder-rust);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.1rem, 8vw, 6.4rem);
  line-height: 0.92;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1;
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.15;
}

.hero-copy p,
.section-intro p,
.orientation-card p,
.module-grid p,
.prototype-panel p,
.steps p,
.legacy-panel p {
  color: var(--holder-muted);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions,
.hero-principles,
.legacy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-actions { margin-top: 1.5rem; }

.action {
  box-shadow: 0 10px 24px rgba(31, 37, 40, 0.08);
}

.action.primary {
  background: var(--holder-charcoal);
  color: #fffaf1;
  border-color: var(--holder-charcoal);
}

.hero-principles { margin-top: 1.1rem; }

.hero-principles span,
.legacy-tags span {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--holder-line);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: var(--holder-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.product-stage,
.orientation-panel,
.system-panel,
.modes-panel,
.wearable-panel,
.prototype-panel,
.legacy-panel,
.build-path,
.open-phone-panel {
  border: 1px solid var(--holder-line);
  border-radius: 14px;
  background: var(--holder-panel);
  box-shadow: 0 10px 28px rgba(31, 37, 40, 0.07);
}

.product-stage {
  min-height: 640px;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgba(49,95,126,.13), transparent 35%),
    linear-gradient(315deg, rgba(170,102,53,.13), transparent 38%),
    #ebe5d9;
  overflow: hidden;
}

.dock-demo {
  width: min(100%, 590px);
  min-height: 465px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 118px auto 118px;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 12px;
  transition: .25s ease;
}

.phone-frame {
  position: relative;
  width: 205px;
  height: 410px;
  border: 9px solid #26343d;
  border-radius: 34px;
  background: #071015;
  box-shadow: 0 28px 60px rgba(22, 32, 39, 0.32);
  transition: width .28s ease, height .28s ease, border-radius .28s ease;
}

.phone-speaker {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: #52606b;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  position: absolute;
  inset: 16px 10px 10px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .5rem;
  padding: .7rem;
  border-radius: 22px;
  color: #eef7fb;
  background: linear-gradient(180deg, #315f7e, #10202a 65%);
  overflow: hidden;
}

.screen-top {
  display: grid;
  gap: .15rem;
}

.screen-top strong { font-size: 1.1rem; }
.screen-top small { color: rgba(238,247,251,.68); font-size: .67rem; }

.screen-space {
  position: relative;
  display: grid;
  place-items: center;
}

.orb {
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(255,255,255,.08);
}

.soft-keyboard {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  min-height: 31%;
}

.soft-keyboard span,
.physical-keyboard span,
.micro-keys i {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 5px;
  background: rgba(255,255,255,.09);
  color: #eef7fb;
  font-size: .58rem;
  font-style: normal;
}

.dock-controls {
  width: 116px;
  min-height: 235px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 20px;
  padding: .9rem;
  border: 1px solid #27343d;
  background: linear-gradient(145deg, #34434c, #152028);
  box-shadow: 0 18px 34px rgba(22,32,39,.25);
}

.dock-controls-left { border-radius: 36px 14px 14px 36px; }
.dock-controls-right { border-radius: 14px 36px 36px 14px; }

.stick {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 6px solid #111a20;
  background: radial-gradient(circle at 35% 30%, #65737c, #1b272e 70%);
}

.dpad,
.buttons {
  color: #eaf1f4;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
}

.micro-keys {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.micro-keys i { min-height: 24px; }

.physical-keyboard {
  grid-column: 1 / -1;
  width: min(100%, 500px);
  display: none;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  padding: .65rem;
  border-radius: 12px;
  background: #162027;
  box-shadow: 0 14px 24px rgba(22,32,39,.22);
}

.physical-keyboard span { min-height: 30px; }

.dock-demo[data-keyboard="physical"] .physical-keyboard { display: grid; }
.dock-demo[data-keyboard="physical"] .soft-keyboard { display: none; }

.dock-demo[data-layout="landscape"] .phone-frame {
  width: 350px;
  height: 205px;
  border-radius: 28px;
}

.dock-demo[data-layout="landscape"] .phone-speaker {
  top: 50%;
  left: 10px;
  width: 5px;
  height: 52px;
  transform: translateY(-50%);
}

.dock-demo[data-layout="landscape"] .phone-screen {
  inset: 10px 10px 10px 16px;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr 1.5fr;
}

.dock-demo[data-layout="landscape"] .screen-space {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.dock-demo[data-layout="landscape"] .soft-keyboard {
  grid-column: 1;
  min-height: 0;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.demo-controls button.is-active {
  background: var(--holder-charcoal);
  color: white;
}

.demo-status {
  margin: 0;
  color: var(--holder-muted);
  font-size: .9rem;
  text-align: center;
}

main {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 4rem;
}

.orientation-panel,
.system-panel,
.modes-panel,
.wearable-panel,
.prototype-panel,
.legacy-panel,
.build-path,
.open-phone-panel {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1rem, 3vw, 2rem);
}

.section-intro { max-width: 820px; }
.section-intro p { max-width: 70ch; }

.orientation-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.orientation-card,
.module-grid article,
.mode-strip article {
  min-width: 0;
  border: 1px solid var(--holder-line);
  border-radius: 12px;
  background: #fbfaf7;
  padding: 1rem;
}

.orientation-card.featured {
  border-color: rgba(170,102,53,.65);
  background: linear-gradient(180deg, rgba(170,102,53,.08), #fbfaf7 35%);
}

.mode-mark,
.module-grid article > span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--holder-rust);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.orientation-icon {
  width: 100%;
  min-height: 130px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: #ece8df;
}

.orientation-icon span {
  display: block;
  border: 5px solid var(--holder-charcoal);
  background: linear-gradient(180deg, var(--holder-blue), var(--holder-charcoal));
}

.portrait-icon span { width: 54px; height: 106px; border-radius: 12px; }
.landscape-icon span { width: 118px; height: 64px; border-radius: 12px; }
.controller-icon span {
  width: 132px;
  height: 64px;
  border-radius: 22px;
  box-shadow: -28px 10px 0 -12px var(--holder-charcoal), 28px 10px 0 -12px var(--holder-charcoal);
}

.design-rule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  align-items: start;
  padding: 1rem;
  border-radius: 12px;
  background: var(--holder-charcoal);
  color: #fff;
}

.design-rule span { color: rgba(255,255,255,.72); }

.module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.mode-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
}

.mode-strip article {
  display: grid;
  gap: .35rem;
}

.mode-strip span { color: var(--holder-muted); font-size: .9rem; }

.concept-hero {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--holder-line);
  border-radius: 14px;
  background: #f0ece4;
}

.concept-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.concept-hero figcaption {
  padding: .85rem 1rem;
  border-top: 1px solid var(--holder-line);
  color: var(--holder-muted);
  font-size: .88rem;
}

.wearable-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.wearable-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--holder-line);
  border-radius: 12px;
  background: #fbfaf7;
}

.wearable-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5.2;
  object-fit: cover;
  background: #ece8df;
}

.wearable-card > div {
  padding: 1rem;
}

.wearable-card .mode-mark {
  margin-bottom: .6rem;
}

.wearable-card p {
  margin: 0;
  color: var(--holder-muted);
}

.wearable-safety {
  display: grid;
  grid-template-columns: minmax(180px, .32fr) 1fr;
  gap: .85rem;
  align-items: start;
  padding: 1rem;
  border-radius: 12px;
  background: var(--holder-charcoal);
  color: #fff;
}

.wearable-safety span {
  color: rgba(255,255,255,.74);
}

.prototype-panel {
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  align-items: start;
}

.feature-list { display: grid; gap: .55rem; }

.feature-list div {
  display: grid;
  grid-template-columns: minmax(135px, .35fr) 1fr;
  gap: .75rem;
  padding: .8rem;
  border: 1px solid var(--holder-line);
  border-radius: 10px;
  background: #fbfaf7;
}

.feature-list strong { color: var(--holder-blue); }
.feature-list span { color: var(--holder-muted); }

.steps {
  display: grid;
  gap: .75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--holder-line);
  border-radius: 10px;
  background: #fbfaf7;
}

.steps li > span {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--holder-sage);
  color: white;
  font-weight: 900;
}

.steps strong { display: block; margin-bottom: .25rem; }
.steps p { margin: 0; }

.phone-holder-footer {
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--holder-line);
  color: var(--holder-muted);
}

@media (max-width: 980px) {
  .phone-holder-nav { justify-content: flex-start; }

  .hero-shell,
  .prototype-panel {
    grid-template-columns: 1fr;
  }

  .product-stage { min-height: 580px; }

  .wearable-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orientation-grid,
  .module-grid,
  .mode-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero-shell,
  main,
  .phone-holder-footer {
    width: min(100% - 1rem, 1180px);
  }

  .product-stage {
    min-height: auto;
    padding: .8rem;
  }

  .dock-demo {
    min-height: 430px;
    grid-template-columns: 78px auto 78px;
    gap: 6px;
    transform: scale(.84);
    transform-origin: center;
    margin-block: -35px;
  }

  .dock-controls {
    width: 78px;
    min-height: 195px;
    padding: .5rem;
  }

  .stick { width: 42px; height: 42px; }
  .micro-keys { display: none; }

  .dock-demo[data-layout="landscape"] .phone-frame {
    width: 285px;
    height: 170px;
  }

  .phone-frame {
    width: 170px;
    height: 340px;
  }

  .orientation-grid,
  .module-grid,
  .mode-strip,
  .wearable-gallery {
    grid-template-columns: 1fr;
  }

  .design-rule,
  .feature-list div,
  .wearable-safety {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }

  .dock-demo {
    transform: scale(.68);
    margin-block: -75px;
  }

  .demo-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .keyboard-toggle { grid-column: 1 / -1; }
}


/* Open Phone roadmap */
.evolution-path {
  display: grid;
  grid-template-columns: repeat(9, auto);
  gap: .55rem;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: .35rem;
}
.evolution-path article {
  min-width: 155px;
  display: grid;
  gap: .35rem;
  padding: 1rem;
  border: 1px solid var(--holder-line);
  border-radius: 12px;
  background: #fbfaf7;
}
.evolution-path article span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--holder-charcoal);
  color: white;
  font-weight: 900;
}
.evolution-path article small { color: var(--holder-muted); line-height: 1.35; }
.evolution-path > b { align-self: center; color: var(--holder-copper); font-size: 1.5rem; }
.prototype-zero {
  display: grid;
  grid-template-columns: minmax(220px,.7fr) minmax(0,1.3fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #ece8df;
}
.prototype-zero > div:first-child p:last-child { color: var(--holder-muted); }
.prototype-zero-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
.prototype-zero-grid article {
  display: grid;
  gap: .3rem;
  padding: .85rem;
  border: 1px solid var(--holder-line);
  border-radius: 10px;
  background: var(--holder-panel);
}
.prototype-zero-grid strong { color: var(--holder-blue); }
.prototype-zero-grid span { color: var(--holder-muted); font-size: .9rem; }
@media (max-width: 760px) {
  .prototype-zero { grid-template-columns: 1fr; }
  .prototype-zero-grid { grid-template-columns: 1fr; }
}
