:root {
  --bg: #0b1017;
  --bg-alt: #111823;
  --panel: #151f2d;
  --panel-soft: #192536;
  --line: rgba(255, 255, 255, 0.08);
  --text: #edf2f7;
  --muted: #9aa6b8;
  --accent: #c6914b;
  --accent-soft: #8c6331;
  --max-width: 1160px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(198, 145, 75, 0.12), transparent 26%),
    linear-gradient(180deg, #0a0f16 0%, var(--bg) 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
li {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.75;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), 760px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 16, 23, 0.88);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #101722;
}

.brand span {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

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

.site-nav a.active {
  position: relative;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: linear-gradient(180deg, #c6914b, #9f6f37);
  color: #0c1118;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.button-secondary:hover {
  filter: none;
  border-color: rgba(255, 255, 255, 0.18);
}

.button-small {
  padding: 0.8rem 1.1rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero,
.page-header {
  padding: 5.5rem 0 3rem;
}

.hero-top {
  margin-bottom: 2rem;
}

.hero-grid,
.split-panel,
.feature-panel,
.cta-panel,
.contact-panel,
.feature-split,
.app-showcase-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-grid,
.split-panel,
.feature-panel,
.cta-panel,
.contact-panel,
.feature-split,
.app-showcase-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.lead {
  font-size: 1.1rem;
  max-width: 60ch;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-device-pair {
  position: relative;
  min-height: 540px;
}

.screen-phone {
  position: absolute;
  margin: 0;
  padding: 0.7rem;
  border-radius: 38px;
  background: linear-gradient(180deg, #121a26, #0d131d);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.screen-phone-front {
  right: 0;
  top: 0;
  width: min(100%, 320px);
  z-index: 2;
}

.screen-phone-back {
  left: 0;
  bottom: 0;
  width: min(100%, 280px);
  opacity: 0.92;
  transform: translateY(18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.section {
  padding: 2rem 0 4.5rem;
}

.section-border {
  border-top: 1px solid var(--line);
}

.hero-card,
.panel,
.feature-list,
.legal-copy,
.email-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel) 0%, #121a26 100%);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
}

.hero-card img {
  width: min(100%, 360px);
  margin: 0 auto;
}

.hero-card-campaign {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero-card-campaign img {
  width: 100%;
  max-width: 440px;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-card-campaign h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.1vw, 1.8rem);
}

.panel,
.legal-copy,
.email-block {
  padding: 2rem;
}

.section-panel-intro {
  margin-bottom: 1.5rem;
  max-width: 760px;
}

.panel-quote {
  position: relative;
  overflow: hidden;
}

.panel-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(198, 145, 75, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.panel-quote > * {
  position: relative;
}

.feature-list {
  padding: 1.5rem;
}

.feature-list ul {
  display: grid;
  gap: 0.85rem;
  padding-left: 1.2rem;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.tour-grid-featured {
  margin-bottom: 1.25rem;
}

.tour-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel) 0%, #121a26 100%);
  box-shadow: var(--shadow);
}

.tour-phone,
.gallery-story-main,
.gallery-story-mini {
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #121a26, #0d131d);
}

.tour-phone {
  padding: 0.45rem;
}

.tour-phone img,
.gallery-story-main img,
.gallery-story-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.tour-copy p:last-child {
  margin-bottom: 0;
}

.display-shot-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 19vw);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.tour-support-grid {
  align-items: start;
}

.display-shot-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel) 0%, #121a26 100%);
  box-shadow: var(--shadow);
}

.display-shot-frame {
  margin: 0 0 1rem;
  padding: 0.35rem;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #121a26, #0d131d);
}

.display-shot-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.display-shot-copy p:last-child {
  margin-bottom: 0;
}

.display-shot-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(198, 145, 75, 0.14), transparent 22%),
    linear-gradient(180deg, #162232 0%, #0f1722 100%);
  box-shadow: var(--shadow);
  max-width: 1400px;
  margin-inline: auto;
}

.hero-slides {
  position: relative;
  aspect-ratio: 2 / 1;
  min-height: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 500ms ease, transform 500ms ease;
  display: flex;
  align-items: end;
  justify-content: flex-start;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 12, 0.04), rgba(4, 7, 12, 0.28) 68%, rgba(4, 7, 12, 0.58));
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-slide span {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  display: inline-flex;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.grid-3,
.grid-2,
.footer-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--panel-soft) 0%, #121a26 100%);
  transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 145, 75, 0.35);
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0;
  list-style: none;
  margin-top: 1.5rem;
}

.metric-row li {
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  line-height: 1.3;
}

.text-link {
  color: var(--text);
  font-weight: 800;
}

.legal-copy h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

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

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  display: block;
  margin: 0.45rem 0;
  color: var(--muted);
}

.brand-footer img {
  width: 44px;
  height: 44px;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
}

@media (max-width: 960px) {
  .site-header {
    position: sticky;
  }

  .hero-grid,
  .split-panel,
  .feature-panel,
  .cta-panel,
  .contact-panel,
  .feature-split,
  .app-showcase-grid,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tour-grid {
    grid-template-columns: 1fr;
  }

  .hero-device-pair {
    min-height: 460px;
  }

  .screen-phone-front {
    width: min(100%, 280px);
  }

  .screen-phone-back {
    width: min(100%, 240px);
  }

  .site-nav {
    position: absolute;
    top: 86px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(17, 24, 35, 0.98);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  }

  .site-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-weight: 800;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container,
  .narrow {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .nav-wrap {
    min-height: 72px;
  }

  .brand {
    gap: 0.7rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .site-nav {
    top: 72px;
    left: 0.625rem;
    right: 0.625rem;
    gap: 0.35rem;
    padding: 0.65rem;
    border-radius: 18px;
  }

  .site-nav a {
    width: 100%;
    padding: 0.72rem 0.85rem;
    border-radius: 14px;
    font-size: 0.96rem;
  }

  .site-nav a.active::after {
    left: 0.85rem;
    right: auto;
    width: 1.8rem;
    bottom: 0.45rem;
  }

  .site-nav .button-small {
    margin-top: 0.35rem;
    justify-content: center;
  }

  .menu-toggle {
    padding: 0.62rem 0.9rem;
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 3.8rem);
  }

  h2 {
    font-size: clamp(1.85rem, 8.6vw, 2.4rem);
  }

  p,
  li {
    line-height: 1.6;
  }

  .hero,
  .page-header {
    padding: 2.5rem 0 1.6rem;
  }

  .section {
    padding: 1.35rem 0 2.9rem;
  }

  .hero-top {
    margin-bottom: 0.9rem;
  }

  .hero-slides {
    aspect-ratio: 2 / 1;
    min-height: 188px;
  }

  .hero-slide span {
    left: 0.9rem;
    bottom: 0.9rem;
    padding: 0.45rem 0.68rem;
    font-size: 0.78rem;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    width: 100%;
    gap: 0.75rem;
    margin-top: 1.4rem;
  }

  .hero-actions .button {
    display: inline-flex;
    width: auto;
    max-width: none;
  }

  .panel,
  .hero-card,
  .legal-copy,
  .email-block,
  .feature-list,
  .card {
    padding: 1.25rem;
  }

  .hero-card img {
    width: min(100%, 240px);
    margin-inline: auto;
  }

  .metric-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    margin-top: 1.2rem;
    scrollbar-width: none;
  }

  .metric-row::-webkit-scrollbar,
  .display-shot-grid::-webkit-scrollbar {
    display: none;
  }

  .metric-row li {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .screen-phone {
    padding: 0.5rem;
    border-radius: 30px;
  }

  .screen-phone img {
    border-radius: 24px;
  }

  .hero-device-pair {
    min-height: 320px;
    margin-top: 0.5rem;
    width: 100%;
  }

  .screen-phone-front {
    width: min(100%, 220px);
    right: 0.3rem;
    top: 0;
  }

  .screen-phone-back {
    width: min(100%, 178px);
    left: 0.3rem;
    bottom: 0;
    transform: translateY(10px);
  }

  .tour-card {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1rem;
    align-items: start;
  }

  .display-shot-grid {
    grid-auto-columns: 82vw;
    gap: 0.85rem;
    margin-inline: calc(50% - 50vw + 0.625rem);
    padding-inline: calc(50vw - 50% + 0.625rem);
    padding-bottom: 0.2rem;
    scroll-snap-type: x mandatory;
  }

  .display-shot-card {
    min-height: auto;
    scroll-snap-align: start;
  }

  .tour-phone {
    width: min(100%, 220px);
    max-width: 220px;
    margin-inline: auto;
  }

  .display-shot-frame {
    width: min(100%, 260px);
    margin-inline: auto;
  }

  .display-shot-copy,
  .tour-copy {
    width: 100%;
  }

  body[data-page="home"] .hero-top {
    display: none;
  }

  body[data-page="home"] .hero-grid {
    gap: 0.75rem;
  }

  body[data-page="home"] .hero-card {
    display: grid;
    padding: 1rem;
    gap: 0.75rem;
  }

  body[data-page="home"] .hero-card-campaign img {
    max-width: 100%;
    border-radius: 1rem;
  }

  body[data-page="home"] .hero-card-campaign h2 {
    font-size: 1.1rem;
  }

  body[data-page="home"] .hero-copy .eyebrow {
    margin-bottom: 0.55rem;
  }

  body[data-page="home"] .hero-copy h1 {
    max-width: 9ch;
    margin-bottom: 0.75rem;
  }

  body[data-page="home"] .hero-copy {
    margin-top: 0;
  }

  body[data-page="home"] .hero {
    padding-top: 1.55rem;
  }

  body[data-page="home"] .hero-actions {
    margin-top: 1.1rem;
    gap: 0.65rem;
    width: 100%;
  }

  body[data-page="home"] .hero-actions .button {
    padding: 0.9rem 1.1rem;
  }

  body[data-page="home"] .metric-row {
    gap: 0.6rem;
    margin-top: 1rem;
  }

  body[data-page="home"] .metric-row li {
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
  }

  body[data-page="home"] .section:first-of-type {
    padding-top: 1rem;
  }

  body[data-page="home"] .feature-panel,
  body[data-page="about"] .split-panel {
    gap: 1rem;
  }

  body[data-page="home"] .panel-quote,
  body[data-page="about"] .panel,
  body[data-page="glint"] .panel-quote {
    padding: 1.35rem;
  }

  body[data-page="glint"] .hero-copy {
    order: 1;
  }

  body[data-page="glint"] .hero-device-pair {
    order: 2;
    min-height: 270px;
    max-width: 300px;
    margin: 0.4rem auto 0;
  }

  body[data-page="glint"] .screen-phone-front {
    width: min(100%, 168px);
    right: 0;
    top: 6px;
  }

  body[data-page="glint"] .screen-phone-back {
    width: min(100%, 150px);
    left: 0;
    bottom: 0;
    opacity: 0.88;
    transform: translateY(8px);
  }

  body[data-page="glint"] .section-heading p:last-child,
  body[data-page="about"] .lead,
  body[data-page="home"] .lead {
    max-width: 32ch;
  }

  body[data-page="glint"] .tour-copy p:last-child,
  body[data-page="glint"] .display-shot-copy p:last-child,
  body[data-page="home"] .card p:last-child,
  body[data-page="about"] .card p:last-child {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  body[data-page="glint"] .feature-list ul {
    gap: 0.7rem;
  }

  body[data-page="about"] .hero-card {
    max-width: 220px;
    margin: 0 auto;
  }

  body[data-page="glint"] .display-shot-card,
  body[data-page="glint"] .tour-card,
  body[data-page="about"] .hero-card,
  body[data-page="home"] .hero-card {
    justify-items: center;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand small {
    display: none;
  }
}
