:root {
  --navy: #112847;
  --navy-deep: #09172d;
  --navy-soft: #1a365a;
  --teal: #1d8a86;
  --gold: #d7bb82;
  --gold-bright: #ecd6aa;
  --white: #fffdf8;
  --ink: #1e2840;
  --muted: rgba(30, 40, 64, 0.74);
  --line: rgba(17, 40, 71, 0.12);
  --shadow: 0 32px 70px rgba(9, 23, 45, 0.14);
  --shadow-soft: 0 24px 55px rgba(9, 23, 45, 0.08);
  --content: 1220px;
  --display-font: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(215, 187, 130, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(29, 138, 134, 0.1), transparent 24%),
    linear-gradient(180deg, #f6efdf 0%, #fbf7ee 38%, #fffdf8 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.25rem clamp(1.15rem, 2vw, 2rem) 3rem;
  background:
    radial-gradient(circle at right top, rgba(236, 214, 170, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(9, 23, 45, 0.99), rgba(17, 40, 71, 0.96) 50%, rgba(26, 54, 90, 0.92)),
    var(--navy);
  color: var(--white);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.96), transparent 88%);
}

.hero::after {
  inset: auto -10rem -14rem auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 214, 170, 0.18), transparent 68%);
  filter: blur(4px);
}

.topbar,
.hero-layout,
.section,
.site-footer {
  width: min(100%, var(--content));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(90deg, rgba(18, 39, 67, 0.9), rgba(24, 51, 84, 0.76));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
}

.brand-mark-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.75rem;
  height: 4.75rem;
  padding: 0.45rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(27, 56, 92, 0.96), rgba(11, 26, 46, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 28px rgba(0, 0, 0, 0.22);
}

.brand-mark-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-copy small {
  margin-top: 0.12rem;
  color: rgba(255, 253, 248, 0.76);
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.top-links a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 253, 248, 0.86);
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.top-links a:hover,
.top-links a:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100svh - 116px);
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

.eyebrow,
.section-kicker,
.panel-kicker,
.path-step,
.app-kicker,
.app-meta {
  margin: 0 0 0.85rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow,
.panel-kicker {
  color: var(--gold);
}

.section-kicker,
.path-step,
.app-meta {
  color: var(--teal);
}

.hero-copy h1,
.section-heading h2,
.hero-panel h2,
.app-copy h3,
.path-grid h3 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
}

.hero-text,
.hero-panel p,
.path-grid p,
.app-copy p {
  line-height: 1.72;
}

.hero-text {
  max-width: 38rem;
  margin: 1.45rem 0 0;
  color: rgba(255, 253, 248, 0.84);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
}

.hero-actions,
.hero-note {
  display: flex;
  flex-wrap: wrap;
}

.hero-actions {
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--navy-deep);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.18);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.hero-note {
  gap: 0.75rem;
  margin-top: 1.55rem;
}

.hero-note span {
  padding: 0.76rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 253, 248, 0.88);
}

.hero-scene {
  display: grid;
  gap: 1.1rem;
  align-items: start;
}

.scene-photo-shell {
  position: relative;
  overflow: hidden;
  min-height: 36rem;
  border-radius: 2.6rem;
  box-shadow: 0 38px 70px rgba(0, 0, 0, 0.26);
}

.scene-photo-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 23, 45, 0.84) 0%, rgba(9, 23, 45, 0.4) 42%, rgba(9, 23, 45, 0.12) 100%),
    linear-gradient(180deg, rgba(9, 23, 45, 0.16), rgba(9, 23, 45, 0.58));
}

.scene-photo {
  width: 100%;
  height: 100%;
  min-height: 36rem;
  object-fit: cover;
}

.hero-panel {
  width: min(100%, 27rem);
  justify-self: end;
  padding: 1.45rem;
  border-radius: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 39, 67, 0.78), rgba(10, 22, 40, 0.8)),
    rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  max-width: 10ch;
  font-size: clamp(2rem, 4vw, 3rem);
}

.ghost-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 700;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.hero-metrics article {
  padding: 0.9rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-metrics span {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.68);
}

.hero-metrics strong {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}

.section {
  padding: clamp(4.8rem, 8vw, 7rem) clamp(1.2rem, 2vw, 2rem);
}

.section-heading {
  max-width: 48rem;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1.8rem;
  margin-top: 2.2rem;
}

.path-grid article {
  padding: 1.35rem 0 0;
  border-top: 2px solid var(--line);
}

.path-grid h3 {
  font-size: 1.65rem;
}

.path-grid p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.search-shell {
  max-width: 32rem;
  margin-top: 2rem;
}

.search-label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.search-shell input {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(17, 40, 71, 0.14);
  background: rgba(255, 253, 248, 0.88);
  color: var(--ink);
}

.search-shell input:focus-visible {
  outline: 2px solid rgba(29, 138, 134, 0.28);
  outline-offset: 2px;
}

.app-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.9rem;
}

.app-row {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) minmax(230px, 260px);
  gap: 1.4rem;
  align-items: stretch;
  padding: 1.05rem;
  border-radius: 2rem;
  border: 1px solid rgba(17, 40, 71, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 253, 248, 0.72)),
    rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.app-row.is-hidden {
  display: none;
}

.app-row:hover {
  border-color: rgba(17, 40, 71, 0.16);
  box-shadow: var(--shadow);
}

.app-preview {
  position: relative;
  overflow: hidden;
  min-height: 12.5rem;
  border-radius: 1.65rem;
  background: linear-gradient(135deg, rgba(17, 40, 71, 0.12), rgba(29, 138, 134, 0.18));
}

.app-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-number {
  position: absolute;
  left: 0.95rem;
  top: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.7rem;
  min-height: 2.7rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(17, 40, 71, 0.88);
  color: var(--white);
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 10px 20px rgba(17, 40, 71, 0.18);
}

.app-copy {
  display: grid;
  align-content: center;
}

.app-copy h3 {
  margin-top: 0.1rem;
  font-size: 1.5rem;
}

.app-copy p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.app-kicker {
  margin-bottom: 0.45rem;
  color: rgba(17, 40, 71, 0.55);
}

.app-side {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 0.85rem;
}

.app-meta {
  margin-bottom: 0;
  padding: 0.54rem 0.82rem;
  border-radius: 999px;
  background: rgba(29, 138, 134, 0.09);
}

.app-actions {
  display: grid;
  gap: 0.75rem;
  width: min(100%, 16rem);
}

.launch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.82rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 40, 71, 0.12);
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 253, 248, 0.9);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.launch-lines {
  display: grid;
  gap: 0.14rem;
  text-align: center;
  line-height: 1.04;
}

.launch-lines span:last-child {
  font-size: 0.9rem;
}

.launch-button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--white);
}

.launch-button-secondary {
  background: transparent;
  color: var(--navy);
}

.site-footer {
  padding: 0 1.2rem 3rem;
  color: rgba(30, 40, 64, 0.76);
}

@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-scene,
  .scene-photo-shell,
  .scene-photo {
    min-height: 30rem;
  }
}

@media (max-width: 920px) {
  .app-row {
    grid-template-columns: 1fr;
  }

  .app-side {
    justify-items: start;
  }

  .app-actions {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .topbar,
  .path-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    justify-content: start;
  }

  .brand-mark-logo {
    width: 4rem;
    height: 4rem;
    border-radius: 1.2rem;
  }

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

  .hero-panel {
    width: 100%;
    justify-self: stretch;
  }

  .hero-scene,
  .scene-photo-shell,
  .scene-photo {
    min-height: 25rem;
  }

  .scene-photo-shell::after {
    background:
      linear-gradient(180deg, rgba(9, 23, 45, 0.3), rgba(9, 23, 45, 0.72)),
      linear-gradient(90deg, rgba(9, 23, 45, 0.72), rgba(9, 23, 45, 0.2));
  }

  .app-preview {
    min-height: 10.5rem;
  }
}
