:root {
  color-scheme: light;
  --ink: #182026;
  --muted: #5c6974;
  --line: #d8e0e6;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --blue: #1456d9;
  --teal: #0f766e;
  --coral: #c94835;
  --yellow: #f4c542;
  --shadow: 0 22px 60px rgba(18, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(251, 252, 248, 0.93);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 220px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

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

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 10px;
  text-decoration: none;
}

nav a:hover {
  background: #eef4f1;
  color: var(--ink);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  min-height: calc(100vh - 128px);
  padding: clamp(38px, 6vw, 78px) clamp(18px, 5vw, 64px) clamp(32px, 4vw, 56px);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.45rem, 6vw, 5.9rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 22px;
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.75rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: 0;
  line-height: 1.16;
  margin-bottom: 10px;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.3rem);
  max-width: 650px;
}

.hero-actions,
.card-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.primary:hover {
  background: #2b3942;
}

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

.button.secondary:hover {
  background: #eef4f1;
}

.hero-visual {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  min-height: 520px;
  position: relative;
}

.phone-preview {
  background: #101820;
  border: 8px solid #101820;
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.phone-preview img {
  aspect-ratio: 390 / 844;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.phone-preview-main {
  align-self: end;
  grid-column: 1 / 2;
  justify-self: end;
  max-width: 290px;
  transform: translateX(20px);
  width: 76%;
  z-index: 2;
}

.phone-preview-secondary {
  align-self: start;
  border-color: #263642;
  grid-column: 2 / 3;
  justify-self: start;
  max-width: 230px;
  transform: translate(-8px, 38px);
  width: 90%;
}

.status-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.status-strip div {
  align-items: baseline;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 92px;
  padding: 26px 18px;
}

.status-strip div:last-child {
  border-right: 0;
}

.status-strip strong {
  color: var(--blue);
  font-size: 2rem;
}

.status-strip span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(56px, 8vw, 108px) clamp(18px, 5vw, 64px);
}

.section-heading {
  margin-bottom: 28px;
  max-width: 720px;
}

.featured-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-card,
.project-card,
.support-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  min-height: 520px;
}

.app-media {
  align-items: start;
  background: #dbe7ea;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 24px 18px 0;
}

.app-media img {
  border: 6px solid #162027;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 18px 38px rgba(18, 32, 38, 0.18);
  max-width: 245px;
  min-width: 170px;
  width: 72%;
}

.app-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 36px);
}

.app-content p,
.project-card p,
.about-copy p,
.policy-content p,
.support-card p {
  color: var(--muted);
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 7px 9px;
  text-transform: uppercase;
}

.status.live {
  background: #d9f5ec;
  color: #075a49;
}

.status.appstore {
  background: #dfe9ff;
  color: #114ab8;
}

.status.protected {
  background: #ffecd8;
  color: #8b3f00;
}

.status.prototype,
.status.build {
  background: #f2e8ff;
  color: #58308f;
}

.meta-list {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 0;
}

.meta-list div {
  padding: 14px 14px 14px 0;
}

.meta-list dt {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-list dd {
  font-weight: 800;
  margin: 4px 0 0;
}

.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.project-card,
.support-card {
  padding: 24px;
}

.project-card h3 {
  margin-top: 18px;
}

.split-section {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.about-copy {
  font-size: 1.08rem;
  max-width: 760px;
}

.contact-band {
  align-items: center;
  background: #eaf3ef;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: clamp(36px, 6vw, 64px) clamp(18px, 5vw, 64px);
}

.contact-band h2 {
  margin-bottom: 0;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.92rem;
  gap: 16px;
  justify-content: space-between;
  padding: 22px clamp(18px, 5vw, 64px);
}

.site-footer span:last-child {
  display: flex;
  gap: 16px;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.policy-page {
  padding: clamp(42px, 7vw, 90px) clamp(18px, 5vw, 64px);
}

.policy-hero {
  margin-bottom: 32px;
  max-width: 780px;
}

.policy-hero h1 {
  margin-bottom: 12px;
}

.policy-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 850px;
  padding: clamp(24px, 5vw, 46px);
}

.policy-content h2,
.support-card h2 {
  font-size: 1.3rem;
  line-height: 1.16;
  margin-top: 28px;
}

.policy-content h2:first-child,
.support-card h2:first-child {
  margin-top: 0;
}

.support-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1060px) {
  .hero,
  .featured-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-visual {
    margin: 0 auto;
    max-width: 620px;
    width: 100%;
  }

  .featured-card {
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    position: static;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    gap: 16px;
    padding-top: 26px;
    padding-bottom: 8px;
  }

  h1 {
    font-size: 2.12rem;
    margin-bottom: 14px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions,
  .card-actions,
  .contact-actions {
    margin-top: 18px;
  }

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

  .phone-preview-main {
    max-width: 134px;
  }

  .phone-preview-secondary {
    max-width: 110px;
    transform: translate(-6px, 24px);
  }

  .status-strip,
  .featured-card,
  .project-grid,
  .meta-list,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .status-strip div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    justify-content: flex-start;
    min-height: 78px;
  }

  .status-strip div:last-child {
    border-bottom: 0;
  }

  .featured-card {
    min-height: 0;
  }

  .app-media {
    max-height: 360px;
  }

  .contact-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
