:root {
  --p1-ink: #eef5ff;
  --p1-muted: #a6b5cc;
  --p1-bg: #050b16;
  --p1-panel: #0a1424;
  --p1-line: rgba(133, 183, 255, 0.15);
  --p1-blue: #28a9ff;
  --p1-cyan: #65e5ff;
  --p1-violet: #8c6bff;
  --p1-orange: #ffad42;
}

#phase1-home {
  display: none;
}

body.phase1-home-active {
  margin: 0;
  background: var(--p1-bg);
  color: var(--p1-ink);
  overflow-x: hidden;
}

body.phase1-home-active #root {
  display: none;
}

body.phase1-home-active #phase1-home {
  display: block;
  position: relative;
  z-index: 2;
  min-height: 100vh;
  overflow: hidden;
  font-family: "DM Sans", system-ui, sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(41, 123, 255, 0.14), transparent 24rem),
    radial-gradient(circle at 93% 34%, rgba(132, 83, 255, 0.11), transparent 27rem),
    var(--p1-bg);
}

#phase1-home *,
#phase1-home *::before,
#phase1-home *::after {
  box-sizing: border-box;
}

#phase1-home a {
  color: inherit;
  text-decoration: none;
}

#phase1-home :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(101, 229, 255, .9);
  outline-offset: 3px;
}

#phase1-home button,
#phase1-home input,
#phase1-home select,
#phase1-home textarea {
  font: inherit;
}

.p1-skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  padding: .75rem 1rem;
  border-radius: .6rem;
  background: #fff;
  color: #07111e !important;
  transition: top .2s ease;
}

.p1-skip:focus {
  top: 1rem;
}

.p1-container {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.p1-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(4, 10, 20, .94), rgba(4, 10, 20, .5));
  backdrop-filter: blur(16px);
}

.p1-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.p1-brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  margin-right: auto;
  font-size: 1.2rem;
  font-weight: 760;
  letter-spacing: -.02em;
}

.p1-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.p1-brand span span {
  color: var(--p1-cyan);
}

.p1-nav-links {
  display: flex;
  align-items: center;
  gap: 1.45rem;
}

.p1-nav-links a:not(.p1-nav-cta) {
  color: #c2cde0;
  font-size: .91rem;
  font-weight: 600;
}

.p1-nav-links a:hover,
.p1-nav-links a:focus-visible {
  color: #fff;
}

.p1-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid rgba(101, 229, 255, .4);
  border-radius: .72rem;
  background: rgba(19, 127, 213, .16);
  color: #eefbff;
  font-size: .9rem;
  font-weight: 700;
}

.p1-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--p1-line);
  border-radius: .7rem;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  cursor: pointer;
}

.p1-hero {
  position: relative;
  min-height: 790px;
  display: grid;
  align-items: center;
  padding: 132px 0 76px;
  isolation: isolate;
}

.p1-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  z-index: -1;
  background: linear-gradient(0deg, var(--p1-bg), transparent);
}

.p1-hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.p1-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 69% 46%;
  filter: saturate(1.16) contrast(1.06);
}

.p1-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 10, 20, .98) 0%, rgba(4, 10, 20, .91) 39%, rgba(4, 10, 20, .48) 67%, rgba(4, 10, 20, .2) 100%),
    linear-gradient(0deg, rgba(4, 10, 20, .72), transparent 45%);
}

.p1-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 730px) 1fr;
  align-items: center;
}

.p1-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.3rem;
  color: #8be9ff;
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.p1-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p1-cyan);
  box-shadow: 0 0 18px var(--p1-cyan);
}

.p1-hero h1 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 6.1vw, 5.5rem);
  font-weight: 780;
  letter-spacing: -.065em !important;
  line-height: .98 !important;
  text-wrap: balance;
}

.p1-hero h1 span {
  background: linear-gradient(90deg, #79e7ff, #58a8ff 58%, #b496ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.p1-hero-lead {
  max-width: 630px;
  margin: 1.65rem 0 0;
  color: #bdc9db;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.p1-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.p1-button {
  min-height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: .8rem;
  font-weight: 750;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.p1-button:hover,
.p1-button:focus-visible {
  transform: translateY(-2px);
}

.p1-button-primary {
  background: linear-gradient(135deg, #1a9df2, #5074ee);
  color: #fff !important;
  box-shadow: 0 13px 35px rgba(30, 145, 238, .27);
}

.p1-button-secondary {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(5, 13, 25, .58);
  color: #f4f8ff !important;
  backdrop-filter: blur(12px);
}

.p1-button-quiet {
  min-height: 44px;
  padding-inline: .25rem;
  color: #93ddff !important;
}

.p1-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.6rem;
}

.p1-proof {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #c7d3e5;
  font-size: .86rem;
  font-weight: 650;
}

.p1-proof-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(101, 229, 255, .26);
  border-radius: 50%;
  color: var(--p1-cyan);
  background: rgba(101, 229, 255, .07);
}

.p1-trust-bar {
  position: relative;
  z-index: 5;
  margin-top: -28px;
}

.p1-trust-inner {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  min-height: 104px;
  overflow: hidden;
  border: 1px solid var(--p1-line);
  border-radius: 1rem;
  background: rgba(8, 18, 33, .92);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

.p1-trust-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.2rem 1.35rem;
  border-left: 1px solid var(--p1-line);
}

.p1-trust-item:first-child {
  border-left: 0;
}

.p1-trust-item strong,
.p1-trust-item span {
  display: block;
}

.p1-trust-item strong {
  color: #f7fbff;
  font-size: .92rem;
}

.p1-trust-item span {
  margin-top: .2rem;
  color: var(--p1-muted);
  font-size: .78rem;
}

.p1-kicker {
  color: var(--p1-blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.p1-section {
  position: relative;
  padding: 116px 0;
}

.p1-section-soft {
  border-block: 1px solid rgba(125, 171, 237, .09);
  background: rgba(10, 20, 36, .48);
}

.p1-heading {
  max-width: 730px;
}

.p1-heading h2,
.p1-split-copy h2,
.p1-audit-copy h2,
.p1-final h2 {
  margin: .9rem 0 0;
  color: #fff;
  font-size: clamp(2.15rem, 4vw, 3.75rem);
  line-height: 1.06 !important;
  letter-spacing: -.052em !important;
  text-wrap: balance;
}

.p1-heading p,
.p1-split-copy > p,
.p1-audit-copy > p {
  margin: 1.2rem 0 0;
  color: var(--p1-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.p1-services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.p1-service-card {
  position: relative;
  grid-column: span 4;
  min-height: 285px;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--p1-line);
  border-radius: 1rem;
  background: linear-gradient(155deg, rgba(18, 36, 61, .8), rgba(7, 15, 29, .96));
  transition: transform .25s ease, border-color .25s ease;
}

.p1-service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(89, 190, 255, .42);
}

.p1-service-featured {
  grid-column: span 8;
  display: grid;
  align-content: end;
  min-height: 360px;
  padding: 2rem;
}

.p1-service-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 12, 24, .96) 10%, rgba(4, 12, 24, .63) 58%, rgba(4, 12, 24, .18)), url('/assets/phase1/automation-chip.webp') center/cover;
}

.p1-service-card > * {
  position: relative;
  z-index: 1;
}

.p1-card-number {
  color: #63dfff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.p1-service-card h3 {
  margin: 2.3rem 0 .8rem;
  color: #fff;
  font-size: 1.35rem;
}

.p1-service-featured h3 {
  max-width: 510px;
  margin-top: 1rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.p1-service-card p {
  max-width: 520px;
  margin: 0;
  color: var(--p1-muted);
  line-height: 1.62;
}

.p1-card-link {
  display: inline-flex;
  margin-top: 1.2rem;
  color: #86e7ff !important;
  font-size: .9rem;
  font-weight: 740;
}

.p1-audiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
  margin-top: 2.5rem;
}

.p1-audience {
  min-height: 118px;
  padding: 1.25rem;
  border: 1px solid var(--p1-line);
  border-radius: .9rem;
  background: rgba(11, 24, 43, .58);
}

.p1-audience strong {
  display: block;
  color: #f4f9ff;
}

.p1-audience span {
  display: block;
  margin-top: .5rem;
  color: var(--p1-muted);
  font-size: .87rem;
  line-height: 1.45;
}

.p1-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.p1-visual {
  position: relative;
  min-height: 560px;
}

.p1-visual-main {
  width: 83%;
  height: 510px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--p1-line);
  border-radius: 1.15rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
}

.p1-visual-main-solo {
  width: 100%;
}

.p1-visual-road {
  object-position: 50% 42%;
}

.p1-visual-float {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 43%;
  height: 270px;
  object-fit: cover;
  border: 6px solid var(--p1-bg);
  border-radius: 1rem;
  filter: saturate(1.08) contrast(1.04);
}

.p1-visual-float-road { height: 320px; object-position: 50% 42%; }

.p1-steps {
  display: grid;
  gap: .7rem;
  margin-top: 2rem;
}

.p1-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid transparent;
  border-radius: .9rem;
  transition: border-color .2s ease, background .2s ease;
}

.p1-step:hover {
  border-color: var(--p1-line);
  background: rgba(18, 36, 61, .42);
}

.p1-step b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: .75rem;
  color: #7ee9ff;
  background: rgba(51, 163, 235, .12);
}

.p1-step strong,
.p1-step span {
  display: block;
}

.p1-step strong {
  color: #fff;
}

.p1-step span {
  margin-top: .25rem;
  color: var(--p1-muted);
  font-size: .88rem;
  line-height: 1.5;
}

.p1-audit-wrap {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 4.5rem;
  align-items: start;
}

.p1-mini-proof {
  display: grid;
  gap: .65rem;
  margin-top: 1.8rem;
  color: #d1dced;
  font-size: .9rem;
}

.p1-mini-proof span::before {
  content: "✓";
  margin-right: .65rem;
  color: var(--p1-cyan);
}

.p1-audit-form {
  padding: 1.6rem;
  border: 1px solid rgba(111, 192, 255, .24);
  border-radius: 1.1rem;
  background: linear-gradient(150deg, rgba(18, 37, 63, .92), rgba(7, 15, 28, .96));
  box-shadow: 0 25px 70px rgba(0, 0, 0, .3);
}

.p1-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

.p1-field {
  margin-bottom: .9rem;
}

.p1-field label {
  display: block;
  margin: 0 0 .45rem;
  color: #dbe7f8;
  font-size: .79rem;
  font-weight: 700;
}

.p1-field input,
.p1-field select {
  width: 100%;
  min-height: 49px;
  padding: 0 .9rem;
  border: 1px solid rgba(156, 188, 230, .19);
  border-radius: .7rem;
  outline: none;
  background: #07111f;
  color: #edf5ff;
}

.p1-field input:focus,
.p1-field select:focus {
  border-color: var(--p1-blue) !important;
}

.p1-audit-form .p1-button {
  width: 100%;
  margin-top: .3rem;
}

.p1-form-note {
  margin: .75rem 0 0;
  color: #8292aa;
  font-size: .74rem;
  text-align: center;
}

.p1-demo-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--p1-line);
  border-radius: 1.2rem;
  background: #07111e;
}

.p1-demo-image {
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(7, 17, 30, 0) 0%, rgba(7, 17, 30, .04) 54%, #07111e 100%),
    url('/assets/phase1/connected-system-nodes.webp') 50% 50%/cover;
}

.p1-demo-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.p1-demo-copy h2 {
  margin: .9rem 0 1rem;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.05 !important;
}

.p1-demo-copy p {
  margin: 0;
  color: var(--p1-muted);
  line-height: 1.65;
}

.p1-demo-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin: 1.6rem 0 0;
}

.p1-demo-list span {
  padding: .7rem;
  border: 1px solid var(--p1-line);
  border-radius: .6rem;
  color: #d7e6f7;
  font-size: .81rem;
}

.p1-mission {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1rem;
}

.p1-mission-card {
  position: relative;
  min-height: 510px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 2.2rem;
  border: 1px solid var(--p1-line);
  border-radius: 1.1rem;
  background: #091524;
}

.p1-mission-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 11, 21, .98) 4%, rgba(4, 11, 21, .42) 76%, rgba(4, 11, 21, .08));
}

.p1-mission-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p1-mission-card > div {
  position: relative;
  z-index: 1;
}

.p1-mission-card h2 {
  max-width: 520px;
  margin: .7rem 0 0;
  color: #fff;
  font-size: clamp(2rem, 3.7vw, 3.3rem);
}

.p1-mission-card p {
  max-width: 540px;
  color: #c1ccdc;
  line-height: 1.65;
}

.p1-impact-card {
  min-height: 510px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--p1-line);
  border-radius: 1.1rem;
  background: linear-gradient(145deg, #102038, #091321);
}

.p1-impact-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.p1-impact-copy {
  padding: 1.7rem;
}

.p1-impact-copy h3 {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
}

.p1-impact-copy p {
  margin: .7rem 0 0;
  color: var(--p1-muted);
  line-height: 1.55;
}

.p1-final {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  text-align: center;
}

.p1-final::before {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 158, 243, .2), transparent 65%);
  pointer-events: none;
}

.p1-final .p1-container {
  position: relative;
}

.p1-final h2 {
  max-width: 770px;
  margin-inline: auto;
}

.p1-final p {
  max-width: 620px;
  margin: 1.2rem auto 0;
  color: var(--p1-muted);
  line-height: 1.65;
}

.p1-final .p1-actions {
  justify-content: center;
}

.p1-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--p1-line);
}

.p1-footer-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #94a7c1;
  font-size: .82rem;
}

.p1-footer-links {
  display: flex;
  gap: 1.2rem;
  margin-left: auto;
}

.p1-footer-links a { transition: color .2s ease; }
.p1-footer-links a:hover { color: #c9f5ff; }

.p1-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}

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

@media (max-width: 900px) {
  .p1-menu-button {
    display: grid;
    place-items: center;
  }

  .p1-nav-links {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    top: 68px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: .7rem;
    border: 1px solid var(--p1-line);
    border-radius: .9rem;
    background: rgba(5, 12, 23, .98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  }

  .p1-nav-links.p1-open {
    display: flex;
  }

  .p1-nav-links a {
    padding: .85rem;
  }

  .p1-hero-grid,
  .p1-split,
  .p1-audit-wrap,
  .p1-demo-shell,
  .p1-mission {
    grid-template-columns: 1fr;
  }

  .p1-hero-media img {
    object-position: 66% 42%;
  }

  .p1-hero-media::after {
    background:
      linear-gradient(90deg, rgba(4, 10, 20, .96) 0%, rgba(4, 10, 20, .78) 58%, rgba(4, 10, 20, .42) 100%),
      linear-gradient(0deg, rgba(4, 10, 20, .86) 0%, rgba(4, 10, 20, .08) 58%, rgba(4, 10, 20, .22) 100%);
  }

  .p1-trust-inner {
    grid-template-columns: 1fr 1fr;
  }

  .p1-trust-item:nth-child(3) {
    border-left: 0;
  }

  .p1-trust-item:nth-child(n+3) {
    border-top: 1px solid var(--p1-line);
  }

  .p1-service-card,
  .p1-service-featured {
    grid-column: span 6;
  }

  .p1-audiences {
    grid-template-columns: 1fr 1fr;
  }

  .p1-visual {
    order: 2;
  }

  .p1-demo-image {
    min-height: 360px;
    background:
      linear-gradient(0deg, #07111e 0%, rgba(7, 17, 30, .08) 54%, rgba(7, 17, 30, 0) 86%),
      url('/assets/phase1/connected-system-nodes.webp') 50% 50%/cover;
  }
}

@media (max-width: 620px) {
  .p1-container {
    width: min(100% - 2rem, 1180px);
  }

  .p1-header {
    position: absolute;
  }

  .p1-nav {
    min-height: 68px;
  }

  .p1-hero {
    min-height: auto;
    display: grid;
    grid-template-areas:
      "copy"
      "visual";
    align-items: start;
    padding: 104px 0 0;
    background: #050b16;
  }

  .p1-hero::after {
    display: none;
  }

  .p1-hero-grid {
    grid-area: copy;
    padding-bottom: 2.5rem;
  }

  .p1-hero-media {
    position: relative;
    inset: auto;
    grid-area: visual;
    width: 100%;
    aspect-ratio: 1672 / 941;
    overflow: hidden;
    border-top: 1px solid var(--p1-line);
    z-index: 0;
  }

  .p1-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .p1-hero-media::after {
    background: linear-gradient(180deg, rgba(5, 11, 22, .34) 0%, transparent 18%, transparent 84%, rgba(5, 11, 22, .28) 100%);
  }

  .p1-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .p1-hero-lead {
    font-size: 1rem;
  }

  .p1-actions {
    flex-direction: column;
  }

  .p1-button {
    width: 100%;
  }

  .p1-button-quiet {
    min-height: 38px;
  }

  .p1-proof-row {
    gap: .8rem;
  }

  .p1-trust-bar {
    margin-top: 0;
    padding-top: 1rem;
  }

  .p1-trust-inner,
  .p1-audiences,
  .p1-field-row {
    grid-template-columns: 1fr;
  }

  .p1-trust-item,
  .p1-trust-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--p1-line);
  }

  .p1-trust-item:first-child {
    border-top: 0;
  }

  .p1-section {
    padding: 82px 0;
  }

  .p1-service-card,
  .p1-service-featured {
    grid-column: 1 / -1;
    min-height: 270px;
  }

  .p1-service-featured {
    min-height: 410px;
  }

  .p1-visual {
    min-height: 420px;
  }

  .p1-visual-main {
    width: 90%;
    height: 390px;
  }

  .p1-visual-float {
    width: 46%;
    height: 210px;
  }

  .p1-visual-float-road { height: 260px; }

  .p1-step {
    padding-inline: 0;
  }

  .p1-audit-form {
    padding: 1.1rem;
  }

  .p1-demo-image {
    min-height: 310px;
  }

  .p1-demo-list {
    grid-template-columns: 1fr;
  }

  .p1-mission-card,
  .p1-impact-card {
    min-height: 450px;
  }

  .p1-footer-inner,
  .p1-footer-links {
    align-items: flex-start;
    flex-direction: column;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #phase1-home *,
  #phase1-home *::before,
  #phase1-home *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .p1-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== SHARED MULTI-PAGE SITE SYSTEM ===== */
body.phase1-home-active #phase1-home {
  min-height: 100vh;
  overflow: visible;
}

.p1-header {
  position: fixed;
  inset: 0 0 auto;
  background: rgba(4, 10, 20, .94);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .16);
}

.p1-header.p1-header-overlay {
  position: fixed;
}

#phase1-home section[id] {
  scroll-margin-top: 92px;
}

.p1-section-nav ~ section[id] {
  scroll-margin-top: 150px;
}

.p1-nav-links a[aria-current="page"]:not(.p1-nav-cta) {
  color: #fff;
}

.p1-nav-links a[aria-current="page"]:not(.p1-nav-cta)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -.55rem;
  width: 18px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--p1-cyan);
}

.p1-page-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 96px;
  border-bottom: 1px solid var(--p1-line);
  background:
    radial-gradient(circle at 78% 20%, rgba(59, 145, 255, .18), transparent 30rem),
    linear-gradient(145deg, #07111f, #050b15 72%);
}

.p1-page-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  border: 1px solid rgba(101, 229, 255, .14);
  box-shadow: 0 0 0 75px rgba(101, 229, 255, .025), 0 0 0 150px rgba(101, 229, 255, .018);
}

.p1-page-hero h1 {
  max-width: 900px;
  margin: .9rem 0 0;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: .98 !important;
  letter-spacing: -.065em !important;
  text-wrap: balance;
}

.p1-page-hero p {
  max-width: 700px;
  margin: 1.4rem 0 0;
  color: #b7c5d8;
  font-size: 1.08rem;
  line-height: 1.72;
}

.p1-page-hero .p1-container {
  position: relative;
  z-index: 1;
}

.p1-breadcrumb {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.4rem;
  color: #8799b3;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.p1-breadcrumb a:hover { color: var(--p1-cyan); }

.p1-section-nav {
  position: sticky;
  top: 76px;
  z-index: 50;
  border-bottom: 1px solid var(--p1-line);
  background: rgba(5, 11, 22, .92);
  backdrop-filter: blur(18px);
}

.p1-section-nav-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.p1-section-nav-inner::-webkit-scrollbar { display: none; }

.p1-section-nav a {
  flex: 0 0 auto;
  color: #9cadc2 !important;
  font-size: .83rem;
  font-weight: 700;
}

.p1-section-nav a:hover { color: #fff !important; }

.p1-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.p1-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 1.7rem;
  border: 1px solid var(--p1-line);
  border-radius: 1.05rem;
  background: linear-gradient(155deg, rgba(16, 34, 57, .78), rgba(7, 15, 28, .96));
}

.p1-price-card-featured {
  border-color: rgba(77, 183, 255, .52);
  background: linear-gradient(155deg, rgba(20, 56, 91, .92), rgba(7, 17, 31, .98));
  box-shadow: 0 28px 80px rgba(19, 122, 206, .14);
}

.p1-price-badge {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  padding: .38rem .62rem;
  border-radius: 999px;
  background: rgba(101, 229, 255, .12);
  color: #8cecff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.p1-price-card h3 {
  margin: 1rem 0 0;
  color: #fff;
  font-size: 1.55rem;
}

.p1-price {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin-top: 1.35rem;
}

.p1-price strong {
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -.05em;
}

.p1-price span { color: #8495ad; font-size: .82rem; }

.p1-price-card > p {
  min-height: 80px;
  margin: 1rem 0 0;
  color: var(--p1-muted);
  line-height: 1.55;
}

.p1-feature-list {
  display: grid;
  gap: .75rem;
  margin: 1.45rem 0 1.8rem;
  padding: 0;
  list-style: none;
}

.p1-feature-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: .55rem;
  color: #c7d4e5;
  font-size: .86rem;
  line-height: 1.4;
}

.p1-feature-list li::before { content: "✓"; color: var(--p1-cyan); }
.p1-price-card .p1-button { width: 100%; margin-top: auto; }

.p1-solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.p1-solution-card {
  padding: 1.5rem;
  border: 1px solid var(--p1-line);
  border-radius: .95rem;
  background: rgba(11, 24, 42, .68);
}

.p1-solution-card h3 { margin: .7rem 0 0; color: #fff; font-size: 1.2rem; }
.p1-solution-card p { min-height: 72px; margin: .7rem 0 0; color: var(--p1-muted); font-size: .88rem; line-height: 1.55; }
.p1-solution-price { display: block; margin-top: 1.2rem; color: #80e6ff; font-size: .86rem; font-weight: 750; }

.p1-model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.p1-model-card {
  padding: 1.5rem;
  border-left: 2px solid var(--p1-blue);
  background: rgba(13, 27, 46, .48);
}

.p1-model-card h3 { margin: 0; color: #fff; }
.p1-model-card p { margin: .65rem 0 0; color: var(--p1-muted); font-size: .9rem; line-height: 1.55; }

.p1-model-section .p1-model-card {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  border: 1px solid rgba(101, 229, 255, .18);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(73, 133, 255, .16), transparent 42%),
    linear-gradient(150deg, rgba(16, 35, 59, .94), rgba(7, 15, 28, .98));
  box-shadow: 0 24px 62px rgba(0, 0, 0, .22);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.p1-model-section .p1-model-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #25b7ff, #6d7dff 58%, #b38cff);
}

.p1-model-section .p1-model-card:hover {
  transform: translateY(-5px);
  border-color: rgba(101, 229, 255, .38);
  box-shadow: 0 30px 72px rgba(0, 0, 0, .3);
}

.p1-model-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.45rem;
}

.p1-model-number {
  color: #76e8ff;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.p1-model-label {
  padding: .42rem .62rem;
  border: 1px solid rgba(101, 229, 255, .18);
  border-radius: 999px;
  background: rgba(101, 229, 255, .08);
  color: #bcefff;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.p1-model-section .p1-model-card h3 {
  font-size: 1.42rem;
  line-height: 1.15 !important;
}

.p1-model-section .p1-model-card p {
  margin-top: .85rem;
  color: #aebed3;
  font-size: .92rem;
  line-height: 1.65;
}

.p1-model-section .p1-model-card dl {
  margin: auto 0 0;
}

.p1-model-section .p1-model-card dl div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: .8rem;
  padding: .9rem 0;
  border-top: 1px solid rgba(156, 188, 230, .13);
}

.p1-model-section .p1-model-card dt {
  color: #7187a5;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.p1-model-section .p1-model-card dd {
  margin: 0;
  color: #dce8f7;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.4;
}

.p1-faq-list {
  max-width: 850px;
  margin: 2.5rem auto 0;
  border-top: 1px solid var(--p1-line);
}

.p1-faq-item { border-bottom: 1px solid var(--p1-line); }
.p1-faq-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border: 0; background: transparent; color: #edf5ff; font-weight: 700; text-align: left; cursor: pointer; }
.p1-faq-button::after { content: "+"; color: var(--p1-cyan); font-size: 1.4rem; font-weight: 400; }
.p1-faq-open .p1-faq-button::after { content: "−"; }
.p1-faq-answer { display: none; max-width: 760px; padding: 0 0 1.25rem; color: var(--p1-muted); line-height: 1.65; }
.p1-faq-open .p1-faq-answer { display: block; }

.p1-blog-feature {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 460px;
  overflow: hidden;
  margin-top: 3rem;
  border: 1px solid var(--p1-line);
  border-radius: 1.1rem;
  background: #091522;
}

.p1-blog-feature-visual {
  min-height: 420px;
  background:
    linear-gradient(90deg, rgba(9, 21, 34, 0) 0%, rgba(9, 21, 34, .04) 54%, #091522 100%),
    url('/assets/phase1/demo-sphere-enhanced.webp') 50% 47%/cover;
}

.p1-blog-feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4rem); }
.p1-blog-feature-copy h2 { margin: .8rem 0 0; color: #fff; font-size: clamp(2rem, 3.8vw, 3.3rem); }
.p1-blog-feature-copy p { color: var(--p1-muted); line-height: 1.65; }

.p1-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.p1-blog-nav-label {
  flex: 0 0 auto;
  margin-right: auto;
  color: #dbe9f8;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.p1-category-header {
  display: grid;
  grid-template-columns: 84px minmax(0, 760px);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.p1-category-header h2 {
  margin: .7rem 0 0;
  color: #fff;
  font-size: clamp(2.15rem, 4.2vw, 3.75rem);
  line-height: 1.06 !important;
  letter-spacing: -.052em !important;
}

.p1-category-header p {
  margin: 1rem 0 0;
  color: var(--p1-muted);
  line-height: 1.7;
}

.p1-category-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--p1-line);
  border-radius: 1rem;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: inset 0 0 30px rgba(255,255,255,.04);
}

.p1-category-anime {
  background: linear-gradient(145deg, rgba(128, 82, 255, .34), rgba(22, 37, 68, .9));
}

.p1-category-lakers {
  border-color: rgba(245, 192, 74, .3);
  background: linear-gradient(145deg, rgba(112, 74, 205, .42), rgba(185, 126, 24, .2));
  color: #ffd66f;
}

.p1-category-chargers {
  border-color: rgba(39, 167, 255, .35);
  background: linear-gradient(145deg, rgba(25, 139, 218, .36), rgba(255, 177, 59, .14));
  color: #87ddff;
}

.p1-blog-card {
  display: flex;
  flex-direction: column;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid var(--p1-line);
  border-radius: .95rem;
  background: rgba(10, 22, 38, .78);
  transition: transform .22s ease, border-color .22s ease;
}

.p1-blog-card:hover { transform: translateY(-4px); border-color: rgba(91, 191, 255, .38); }
.p1-blog-card-top { height: 9px; background: linear-gradient(90deg, var(--card-a, #27a7ff), var(--card-b, #8e70ff)); }
.p1-blog-card-copy { display: flex; flex: 1; flex-direction: column; padding: 1.4rem; }
.p1-blog-category { color: #75e6ff; font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.p1-blog-card h3 { margin: .85rem 0 0; color: #fff; font-size: 1.22rem; line-height: 1.25 !important; }
.p1-blog-card p { margin: .8rem 0 0; color: var(--p1-muted); font-size: .87rem; line-height: 1.55; }
.p1-blog-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.2rem; color: #71829a; font-size: .76rem; }
.p1-blog-meta a { color: #8ce9ff !important; font-weight: 700; }

.p1-about-hero {
  background: linear-gradient(90deg, rgba(4,10,20,.97), rgba(4,10,20,.43)), url('/assets/phase1/global-network.webp') 56% center/cover;
}

.p1-blog-hero {
  background: linear-gradient(90deg, rgba(4,10,20,.97), rgba(4,10,20,.48)), url('/assets/phase1/editorial-comet.webp') 58% center/cover;
}

.p1-story-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.p1-story-image {
  min-height: 540px;
  overflow: hidden;
  border: 0;
  border-radius: 1.1rem;
  background: #050b16 url('/assets/phase1/digital-growth-tree.webp') 50% 50%/cover no-repeat;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.p1-story-copy h2 { margin: .8rem 0 0; color: #fff; font-size: clamp(2.3rem,4.5vw,4rem); }
.p1-story-copy p { color: var(--p1-muted); line-height: 1.75; }
.p1-values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-top: 2.5rem; }
.p1-value-card { padding: 1.35rem; border-top: 2px solid var(--p1-blue); background: rgba(13,27,47,.56); }
.p1-value-card h3 { margin: 0; color: #fff; font-size: 1.05rem; }
.p1-value-card p { margin: .6rem 0 0; color: var(--p1-muted); font-size: .84rem; line-height: 1.55; }

.p1-contact-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.p1-contact-methods { display: grid; gap: .8rem; margin-top: 2rem; }
.p1-contact-method { padding: 1rem 1.1rem; border: 1px solid var(--p1-line); border-radius: .8rem; background: rgba(12,26,45,.6); }
.p1-contact-method strong,.p1-contact-method span { display:block; }
.p1-contact-method strong { color:#fff; font-size:.9rem; }
.p1-contact-method span,.p1-contact-method a { margin-top:.25rem; color:var(--p1-muted); font-size:.84rem; }

.p1-project-form {
  padding: 1.6rem;
  border: 1px solid rgba(111,192,255,.24);
  border-radius: 1.1rem;
  background: linear-gradient(150deg,rgba(18,37,63,.92),rgba(7,15,28,.96));
  box-shadow: 0 25px 70px rgba(0,0,0,.3);
}

.p1-project-form h2 { margin:0 0 1.4rem; color:#fff; font-size:1.5rem; }
.p1-project-form .p1-button { width:100%; }
.p1-field textarea { width:100%; min-height:140px; padding:.85rem .9rem; resize:vertical; border:1px solid rgba(156,188,230,.19); border-radius:.7rem; outline:none; background:#07111f; color:#edf5ff; }

.p1-note-panel {
  padding: 1.5rem;
  border: 1px solid rgba(255, 173, 66, .22);
  border-radius: .9rem;
  background: rgba(255, 173, 66, .055);
  color: #c9d5e5;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .p1-price-grid,
  .p1-solution-grid,
  .p1-blog-grid { grid-template-columns: 1fr 1fr; }
  .p1-model-section .p1-model-grid { grid-template-columns: 1fr; }
  .p1-model-section .p1-model-card { min-height: 0; }
  .p1-price-card { min-height: auto; }
  .p1-blog-feature,
  .p1-story-grid,
  .p1-contact-grid { grid-template-columns: 1fr; }
  .p1-values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  #phase1-home section[id] { scroll-margin-top: 78px; }
  .p1-section-nav ~ section[id] { scroll-margin-top: 138px; }
  .p1-section-nav { top: 68px; }
  .p1-page-hero { padding: 76px 0 70px; }
  .p1-about-hero { background: linear-gradient(90deg, rgba(4,10,20,.97), rgba(4,10,20,.62)), url('/assets/phase1/global-network.webp') 56% center/cover; }
  .p1-blog-hero { background: linear-gradient(90deg, rgba(4,10,20,.97), rgba(4,10,20,.64)), url('/assets/phase1/editorial-comet.webp') 54% center/cover; }
  .p1-page-hero h1 { font-size: clamp(2.65rem, 14vw, 4.3rem); }
  .p1-nav-links a[aria-current="page"]::after { display:none; }
  .p1-price-grid,
  .p1-solution-grid,
  .p1-model-grid,
  .p1-blog-grid,
  .p1-values-grid { grid-template-columns: 1fr; }
  .p1-category-header { grid-template-columns: 52px 1fr; gap: 1rem; }
  .p1-category-mark { width: 48px; height: 48px; border-radius: .72rem; font-size: 1.1rem; }
  .p1-blog-nav-label { display: none; }
  .p1-blog-feature-visual {
    min-height: 300px;
    background:
      linear-gradient(0deg, #091522 0%, rgba(9, 21, 34, .08) 55%, rgba(9, 21, 34, 0) 86%),
      url('/assets/phase1/demo-sphere-enhanced.webp') 50% 44%/cover;
  }
  .p1-story-image { min-height: 420px; background-position: 50% 50%; }
  .p1-project-form { padding: 1.1rem; }
}
