:root {
  color-scheme: dark;
  --bg: #06150f;
  --bg-elevated: #0a1d16;
  --bg-muted: #10241b;
  --surface: rgba(247, 255, 250, .055);
  --surface-solid: #0d2219;
  --surface-strong: rgba(247, 255, 250, .09);
  --line: rgba(214, 244, 226, .16);
  --line-strong: rgba(214, 244, 226, .28);
  --text: #f7fff9;
  --muted: #b7c9c0;
  --muted-soft: #8fa399;
  --brand: #38e5a1;
  --brand-deep: #0b8f61;
  --brand-soft: rgba(56, 229, 161, .14);
  --accent: #d9bb73;
  --warning: #d9bb73;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
  --inner-highlight: inset 0 1px 0 rgba(255, 255, 255, .08);
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --container: 1180px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f2e8;
  --bg-elevated: #eee8dc;
  --bg-muted: #e5ded0;
  --surface: rgba(255, 255, 255, .72);
  --surface-solid: #fffdf8;
  --surface-strong: rgba(255, 255, 255, .92);
  --line: rgba(24, 58, 43, .14);
  --line-strong: rgba(24, 58, 43, .24);
  --text: #10231a;
  --muted: #56685f;
  --muted-soft: #77867e;
  --brand: #047a4f;
  --brand-deep: #035d3d;
  --brand-soft: rgba(4, 122, 79, .11);
  --accent: #9b6d1b;
  --warning: #9b6d1b;
  --shadow: 0 20px 56px rgba(16, 35, 26, .14);
  --inner-highlight: inset 0 1px 0 rgba(255, 255, 255, .74);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 48%, var(--bg) 100%);
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(56, 229, 161, .06) 48%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(217, 187, 115, .045) 72%, transparent 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .38), transparent 70%);
  opacity: .34;
}

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

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

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.container {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 78px 0;
}

.section--compact {
  padding: 30px 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand__mark {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 16px 26px rgba(56, 229, 161, .24));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.nav__links a {
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: background .18s ease, color .18s ease;
}

.nav__links a:hover {
  background: var(--surface);
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
}

.theme-toggle {
  width: 58px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--inner-highlight);
}

.theme-toggle__track {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.theme-toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
  transition: transform .2s ease, background .2s ease;
}

:root[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(24px);
}

.theme-toggle__icon {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  opacity: .62;
}

.theme-toggle__icon--sun {
  left: 10px;
  border: 2px solid var(--accent);
  border-radius: 999px;
}

.theme-toggle__icon--moon {
  right: 11px;
  border-radius: 999px;
  box-shadow: inset 4px 0 0 var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: var(--inner-highlight);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  background: var(--surface-strong);
}

.button--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #03130d;
  box-shadow: 0 18px 46px rgba(56, 229, 161, .18);
}

:root[data-theme="light"] .button--primary {
  color: #f7fff9;
}

.button--ghost {
  background: transparent;
}

.hero {
  padding-top: 88px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0;
  box-shadow: var(--inner-highlight);
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-soft);
}

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

h1 {
  max-width: 800px;
  margin: 22px 0 18px;
  font-size: 72px;
  line-height: .98;
  font-weight: 870;
  letter-spacing: 0;
}

h1 span {
  color: var(--text);
}

.hero__copy {
  max-width: 700px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__actions--center {
  justify-content: center;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 760;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 8px 10px;
}

.hero__visual {
  position: relative;
  display: grid;
  min-height: 610px;
  place-items: center;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 62px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--surface-strong), transparent 70%),
    linear-gradient(180deg, var(--brand-soft), transparent);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.phone-card {
  position: relative;
  z-index: 1;
  width: min(370px, 88%);
  filter: drop-shadow(0 36px 70px rgba(0, 0, 0, .38));
}

:root[data-theme="light"] .phone-card {
  filter: drop-shadow(0 30px 48px rgba(16, 35, 26, .18));
}

.floating-pill {
  position: absolute;
  z-index: 2;
  max-width: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 15px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  box-shadow: var(--shadow);
  font-weight: 820;
}

.floating-pill small {
  display: block;
  margin-top: 4px;
  color: var(--muted-soft);
  font-weight: 680;
}

.floating-pill--left {
  top: 110px;
  left: 0;
}

.floating-pill--right {
  right: 0;
  bottom: 120px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metrics article,
.principles article,
.app-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--inner-highlight);
}

.metrics article {
  padding: 22px;
}

.metrics strong {
  display: block;
  font-size: 32px;
  font-weight: 850;
  letter-spacing: 0;
}

.metrics span {
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 720;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.kicker {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: 46px;
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
}

.section-heading > p {
  max-width: 560px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.flagship {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 34px;
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flagship__visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--inner-highlight);
}

.flagship__content {
  align-self: center;
}

.flagship__content h3 {
  margin: 8px 0 14px;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
}

.flagship__content p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}

.feature-list span {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  padding: 13px;
  font-weight: 760;
}

.portfolio-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.search span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 780;
}

.search input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  outline: none;
  background: var(--surface-strong);
  color: var(--text);
  padding: 0 16px;
  font-weight: 680;
}

.search input::placeholder {
  color: var(--muted-soft);
}

.search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  padding: 10px 13px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 780;
}

.filter:hover,
.filter.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--text);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.apps-grid > a {
  display: block;
  min-width: 0;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 256px;
  height: 100%;
  padding: 20px;
  overflow: hidden;
  border-top-color: var(--accent);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  border-top-color: var(--accent);
  background: var(--surface-strong);
}

.app-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app-card__icon {
  width: 52px;
  height: 52px;
}

.app-card__tag {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted-soft);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 780;
}

.app-card h3 {
  margin: 20px 0 8px;
  font-size: 21px;
  font-weight: 820;
  letter-spacing: 0;
}

.app-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.app-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 780;
}

.status-live {
  color: var(--brand);
}

.status-soon {
  color: var(--warning);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  padding: 34px;
  text-align: center;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.principles article {
  padding: 24px;
}

.principles img {
  width: 54px;
  height: 54px;
}

.principles h3 {
  margin: 18px 0 8px;
  font-size: 23px;
  font-weight: 820;
  letter-spacing: 0;
}

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

.cta {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
  text-align: center;
}

.cta h2 {
  max-width: 820px;
  margin: 0 auto 16px;
}

.cta p:not(.kicker) {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--muted);
  line-height: 1.65;
}

.footer {
  padding: 50px 0 70px;
  color: var(--muted-soft);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.footer p {
  margin: 12px 0 0;
  color: var(--muted-soft);
  font-weight: 620;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 760;
}

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

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

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

@media (max-width: 1040px) {
  .hero__grid,
  .flagship {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 520px;
  }

  .hero__visual::before {
    inset: 46px 18%;
  }

  .phone-card {
    width: min(340px, 82vw);
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 14px;
  }

  .metrics,
  .principles,
  .apps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .nav__actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav__cta {
    display: none;
  }

  .nav__links {
    position: fixed;
    inset: 76px 14px auto 14px;
    display: grid;
    gap: 6px;
    margin-left: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
    box-shadow: var(--shadow);
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .18s ease, transform .18s ease;
  }

  .nav__links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__links a {
    padding: 14px 16px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 58px 0;
  }

  .section--compact {
    padding: 24px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .brand {
    font-size: 20px;
  }

  h1 {
    font-size: 46px;
    line-height: 1.02;
  }

  h2 {
    font-size: 32px;
  }

  .hero__copy {
    font-size: 17px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .metrics,
  .principles,
  .apps-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .floating-pill {
    display: none;
  }

  .hero__visual {
    min-height: 420px;
  }

  .hero__visual::before {
    inset: 44px 7%;
  }

  .footer__inner {
    display: block;
  }

  .footer__links {
    margin-top: 18px;
  }
}
