:root {
  --bg: #090b10;
  --panel: #10141d;
  --panel-2: #141a25;
  --text: #f7f8fb;
  --muted: #a7b0c0;
  --soft: #6f7a8d;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #4ca3ff;
  --amber: #f4b044;
  --green: #58d68d;
  --gold: #d9b45f;
  --indigo: #8f7cff;
  --teal: #35d4c6;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(76, 163, 255, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(88, 214, 141, 0.11), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header,
.section,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--bg);
  background: linear-gradient(135deg, var(--text), #b6c9ff);
  box-shadow: 0 12px 40px rgba(76, 163, 255, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.section {
  padding: 86px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 58px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-top: 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 780;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 7vw, 6.85rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 18px;
  color: #d8deea;
  font-size: 1.22rem;
}

.hero-subtext,
.section-heading p,
.app-card p,
.partnership p,
.problem-grid p,
.philosophy p,
.contact p {
  color: var(--muted);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.signal-row span,
.term-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.045);
  color: #d9e0ed;
  font-size: 0.88rem;
}

.hero-visual {
  min-height: 580px;
  position: relative;
}

.phone {
  width: 250px;
  min-height: 510px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
  padding: 12px;
  position: absolute;
}

.phone::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.phone-top {
  width: 72px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  margin: 5px auto 12px;
}

.app-screen {
  min-height: 456px;
  border-radius: 25px;
  background: #0c111a;
  overflow: hidden;
}

.app-screenshot {
  display: block;
  width: 100%;
  height: 456px;
  object-fit: cover;
  object-position: top center;
}

.app-kicker,
.category {
  margin-bottom: 14px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.app-screen h2 {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.phone-diagnos {
  top: 34px;
  left: 0;
  transform: rotate(-7deg);
  animation: phoneFloatA 7.5s ease-in-out infinite;
}

.phone-macro {
  top: 0;
  left: 212px;
  transform: rotate(5deg);
  animation: phoneFloatB 8.5s ease-in-out infinite;
}

.phone-anchored {
  top: 128px;
  right: 10px;
  transform: rotate(9deg);
  animation: phoneFloatC 9s ease-in-out infinite;
}

.phone-diagnos .app-screen {
  background:
    linear-gradient(180deg, rgba(76, 163, 255, 0.22), transparent 52%),
    #0b111d;
}

.phone-macro .app-screen {
  background:
    linear-gradient(180deg, rgba(88, 214, 141, 0.22), transparent 52%),
    #0c1510;
}

.phone-anchored .app-screen {
  background:
    linear-gradient(180deg, rgba(143, 124, 255, 0.22), transparent 52%),
    #111020;
}

.severity,
.metric-row,
.test-card,
.meal-card,
.macro-grid span,
.mini-screen {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.severity {
  display: inline-flex;
  margin: 8px 0 18px;
  padding: 8px 11px;
  color: #ffd489;
  font-size: 0.84rem;
  font-weight: 760;
}

.metric-row,
.test-card,
.meal-card {
  padding: 14px;
  margin-top: 12px;
}

.metric-row span {
  display: block;
  color: var(--blue);
  font-weight: 800;
}

.macro-grid {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.macro-grid span {
  padding: 11px;
}

.macro-grid strong {
  display: block;
  color: var(--green);
}

blockquote {
  margin: 24px 0;
  color: #f4dfad;
  font-size: 1.08rem;
}

.audio-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.audio-bar span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--indigo));
}

@keyframes phoneFloatA {
  0%,
  100% {
    transform: translateY(0) rotate(-7deg);
  }
  50% {
    transform: translateY(-14px) rotate(-5.5deg);
  }
}

@keyframes phoneFloatB {
  0%,
  100% {
    transform: translateY(0) rotate(5deg);
  }
  50% {
    transform: translateY(12px) rotate(3.5deg);
  }
}

@keyframes phoneFloatC {
  0%,
  100% {
    transform: translateY(0) rotate(9deg);
  }
  50% {
    transform: translateY(-10px) rotate(10.5deg);
  }
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.app-grid,
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.app-card,
.problem-grid div,
.philosophy,
.contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.app-card {
  padding: 18px;
}

.mini-screen {
  min-height: 148px;
  padding: 16px;
  margin-bottom: 22px;
}

.mini-screen p {
  margin: 8px 0 0;
  font-size: 0.94rem;
}

.status-dot {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--blue);
}

.diagnos .status-dot {
  background: linear-gradient(135deg, var(--blue), var(--amber));
}

.macro .status-dot {
  background: var(--green);
}

.anchored .status-dot {
  background: linear-gradient(135deg, var(--indigo), var(--gold));
}

.hybrid .status-dot {
  background: var(--teal);
}

.partnership {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 38px;
  align-items: center;
}

.growth-model {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(76, 163, 255, 0.12), rgba(88, 214, 141, 0.08)),
    rgba(255, 255, 255, 0.045);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.growth-step {
  min-height: 110px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(8, 12, 18, 0.62);
  font-weight: 760;
}

.arrow {
  color: var(--soft);
  font-size: 1.5rem;
}

.term-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.problem-grid div {
  padding: 22px;
}

.philosophy,
.contact {
  max-width: 930px;
  padding: 34px;
}

.contact-line {
  margin-bottom: 0;
}

.contact-line a {
  color: #dbe9ff;
  text-decoration-color: rgba(76, 163, 255, 0.6);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 38px 0 46px;
  color: var(--soft);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .partnership {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 500px;
  }

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

@media (max-width: 720px) {
  .site-header,
  .section,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .section {
    padding: 58px 0;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .hero-visual {
    min-height: 780px;
  }

  .phone {
    width: min(250px, 82vw);
  }

  .phone-diagnos {
    top: 0;
    left: 4%;
  }

  .phone-macro {
    top: 220px;
    left: auto;
    right: 2%;
  }

  .phone-anchored {
    top: 430px;
    right: auto;
    left: 10%;
  }

  .app-grid,
  .problem-grid,
  .growth-model {
    grid-template-columns: 1fr;
  }

  .arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .phone {
    animation: none;
  }
}
