:root {
  color-scheme: dark;
  --bg: #050608;
  --bg-alt: #090b0f;
  --surface: rgba(13, 16, 21, 0.86);
  --surface-strong: rgba(16, 19, 25, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f4f6f8;
  --muted: #98a0ab;
  --accent: #f59a3a;
  --accent-soft: #ffc17b;
  --accent-cool: #7ad6ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --radius-lg: 32px;
  --radius-md: 24px;
  --content-width: 1180px;
  --font-sans: "SF Pro Display", "SF Pro Text", "Segoe UI", "Helvetica Neue",
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 154, 58, 0.15), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(122, 214, 255, 0.07), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, #06080b 55%, var(--bg) 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 92%);
  opacity: 0.32;
}

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

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.03em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

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

.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(245, 154, 58, 0.12);
}

.brand-text {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-link-accent {
  color: var(--text);
}

.nav-link-accent {
  color: var(--accent);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-tight {
  padding-top: 1rem;
}

.hero {
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.hero-branding {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.2rem);
}

.hero-logo {
  width: clamp(58px, 8vw, 84px);
  height: auto;
  flex-shrink: 0;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(245, 154, 58, 0.12);
}

.hero-heading-copy {
  display: grid;
  gap: 0.5rem;
}

.hero-grid,
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.eyebrow,
.metric-label,
.feature-number,
.policy-updated {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1,
.policy-hero h1 {
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  line-height: 0.94;
}

.lead {
  margin-top: 1.2rem;
  max-width: 42rem;
  color: #cbd0d7;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #190f06;
  border-color: transparent;
  background: linear-gradient(180deg, #ffb76a 0%, #f59a3a 68%, #da7318 100%);
  box-shadow: 0 16px 40px rgba(245, 154, 58, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 1.6rem 0 0;
  list-style: none;
}

.hero-pills li {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.92rem;
}

.showcase-panel,
.metric-card,
.feature-card,
.gallery-card,
.support-card,
.policy-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
}

.showcase-panel {
  min-height: 580px;
  padding: clamp(1rem, 2vw, 1.4rem);
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 22%, rgba(245, 154, 58, 0.13), transparent 22%),
    radial-gradient(circle at 84% 44%, rgba(122, 214, 255, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(15, 18, 24, 0.95), rgba(8, 10, 14, 0.92));
}

.showcase-panel::before,
.feature-card::before,
.policy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 42%);
  pointer-events: none;
}

.showcase-panel::after {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
  pointer-events: none;
}

.device {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050608;
}

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

.device-tablet {
  width: min(100%, 700px);
  aspect-ratio: 2732 / 2048;
  margin: 3rem auto 0;
}

.device-phone {
  position: absolute;
  right: clamp(0.8rem, 2vw, 1.5rem);
  bottom: 1rem;
  width: min(38vw, 250px);
  aspect-ratio: 1320 / 2868;
  border-radius: 42px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(245, 154, 58, 0.12);
}

.metric-strip,
.feature-grid,
.policy-grid {
  display: grid;
  gap: 1rem;
}

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

.metric-card {
  padding: 1.4rem 1.45rem;
  border-radius: 24px;
}

.metric-value {
  margin-top: 0.55rem;
  font-size: 1.08rem;
  line-height: 1.5;
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin-top: 0.5rem;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.section-head p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

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

.feature-card {
  min-height: 220px;
  padding: 1.55rem;
  border-radius: 28px;
}

.feature-card h3 {
  margin-top: 1rem;
  font-size: 1.18rem;
  line-height: 1.25;
}

.feature-card p:last-child {
  margin-top: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.feature-number {
  color: var(--accent);
}

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

.gallery-card {
  border-radius: 28px;
  padding: 1rem;
}

.card-phone-portrait {
  grid-column: span 4;
}

.card-tablet-landscape {
  grid-column: span 8;
}

.card-tablet-portrait {
  grid-column: span 5;
}

.card-phone-landscape {
  grid-column: span 7;
}

.screenshot-frame {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: #050608;
}

.frame-phone-portrait {
  aspect-ratio: 1320 / 2868;
}

.frame-tablet-landscape {
  aspect-ratio: 2732 / 2048;
}

.frame-tablet-portrait {
  aspect-ratio: 2048 / 2732;
}

.frame-phone-landscape {
  aspect-ratio: 2868 / 1320;
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card figcaption {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 0.2rem 0.15rem;
}

.gallery-card strong {
  font-size: 1.02rem;
}

.section-support-donation {
  padding-top: 0;
}

.donation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 30px;
  border: 1px solid rgba(245, 154, 58, 0.12);
  background:
    radial-gradient(circle at 18% 24%, rgba(245, 154, 58, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
}

.donation-copy h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  line-height: 1.05;
}

.donation-copy p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 44rem;
}

.donation-note {
  font-size: 0.93rem;
  color: var(--text-muted, #7f8893);
}

.donation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.donation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 3.15rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.donation-button:hover,
.donation-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(245, 154, 58, 0.28);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

.donation-button-accent {
  border-color: rgba(245, 154, 58, 0.22);
  color: var(--accent-soft);
}

.gallery-card span,
.support-copy p,
.support-meta,
.policy-card p,
.policy-entity {
  color: var(--muted);
  line-height: 1.7;
}

.support-copy h2 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.support-copy p:last-child {
  margin-top: 1rem;
}

.support-card {
  padding: 1.7rem;
  border-radius: 28px;
}

.support-line {
  margin-top: 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.support-line a,
.policy-card a,
.site-footer a {
  color: var(--accent-soft);
}

.support-meta {
  margin-top: 0.9rem;
}

.policy-main {
  padding-bottom: 2rem;
}

.policy-hero-inner {
  max-width: 900px;
}

.policy-updated {
  margin-top: 1.6rem;
}

.policy-entity {
  margin-top: 0.85rem;
  font-size: 0.98rem;
}

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

.policy-card {
  padding: 1.65rem;
  border-radius: 28px;
}

.policy-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

.policy-card-wide {
  grid-column: span 2;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.4rem 0 2.2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-phone-portrait,
  .card-tablet-landscape,
  .card-tablet-portrait,
  .card-phone-landscape {
    grid-column: span 6;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .support-layout,
  .metric-strip,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .donation-panel {
    grid-template-columns: 1fr;
  }

  .donation-actions {
    justify-content: flex-start;
  }

  .policy-card-wide {
    grid-column: span 1;
  }

  .showcase-panel {
    min-height: auto;
    padding-bottom: 2rem;
  }

  .device-tablet {
    margin-top: 2rem;
  }

  .device-phone {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(58vw, 260px);
    margin: -4.5rem auto 0;
  }
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 0.9rem;
  }

  .feature-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .donation-actions {
    flex-direction: column;
  }

  .card-phone-portrait,
  .card-tablet-landscape,
  .card-tablet-portrait,
  .card-phone-landscape {
    grid-column: span 1;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .donation-button {
    width: 100%;
  }

  .hero-branding {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--content-width), calc(100% - 1.25rem));
  }

  .hero-pills {
    gap: 0.55rem;
  }

  .hero-pills li {
    width: 100%;
    text-align: center;
  }

  .showcase-panel,
  .gallery-card,
  .feature-card,
  .support-card,
  .policy-card {
    border-radius: 24px;
  }

  .screenshot-frame {
    border-radius: 18px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .hero-logo {
    width: 56px;
    border-radius: 16px;
  }
}
