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

:root {
  --bg: #0d1117;
  --bg-elevated: #151b24;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --surface-soft: #edf1f6;
  --text: #e8edf5;
  --text-dark: #0f1723;
  --muted: rgba(232, 237, 245, 0.72);
  --muted-dark: #546274;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f4bf3a;
  --gold-deep: #b67d0a;
  --silver: #dbe2ed;
  --silver-deep: #97a3b4;
  --ink-blue: #18283d;
  --accent: #82c8ff;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(244, 191, 58, 0.12), transparent 26%),
    radial-gradient(circle at 80% 18%, rgba(130, 200, 255, 0.14), transparent 22%),
    linear-gradient(180deg, #0b1016 0%, #10161e 100%);
  color: var(--text);
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-header,
.site-footer,
.section-block,
.hero-panel {
  backdrop-filter: blur(14px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(14, 20, 28, 0.72);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

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

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

.top-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.top-nav a:hover,
.footer-links a:hover,
.back-link:hover {
  color: var(--text);
}

.nav-pill,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-pill {
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--gold), #ffd978);
  color: #221a0c;
  font-weight: 700;
}

.nav-pill:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(244, 191, 58, 0.16), transparent 28%),
    radial-gradient(circle at right, rgba(130, 200, 255, 0.16), transparent 28%),
    linear-gradient(160deg, rgba(19, 28, 40, 0.95), rgba(12, 17, 23, 0.88));
  box-shadow: var(--shadow);
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 10ch;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
}

.hero-text,
.section-heading p,
.app-card p,
.principle-card p,
.metric-label,
.app-points,
.faq-answer,
.policy-note,
.section-subnote {
  color: var(--muted);
}

.hero-text {
  max-width: 60ch;
  margin: 18px 0 0;
  font-size: 1.06rem;
}

.hero-actions,
.support-actions,
.app-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  padding: 13px 20px;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, var(--gold), #ffe08a);
  color: #241a08;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-card-grid {
  display: grid;
  gap: 16px;
  align-content: end;
}

.metric-card,
.app-card,
.principle-card,
.faq-item,
.policy-card {
  border-radius: var(--radius-lg);
}

.metric-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.1);
}

.metric-card-logo {
  display: grid;
  place-items: center;
  min-height: 176px;
}

.hero-logo {
  width: min(100%, 280px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.35));
}

.metric-value {
  display: block;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.section-block {
  margin-top: 28px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(14, 20, 28, 0.72);
}

.alt-surface {
  background:
    linear-gradient(180deg, rgba(16, 23, 32, 0.9), rgba(12, 18, 26, 0.78)),
    radial-gradient(circle at top right, rgba(244, 191, 58, 0.1), transparent 24%);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.section-heading p {
  margin: 12px 0 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.app-showcase,
.principles-grid,
.feature-grid,
.screenshots-grid,
.support-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.app-showcase {
  grid-template-columns: 1.3fr 0.7fr;
}

.app-card,
.principle-card,
.policy-card,
.faq-item {
  padding: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
}

.app-card-featured {
  background:
    linear-gradient(160deg, rgba(25, 42, 65, 0.78), rgba(18, 24, 33, 0.88)),
    radial-gradient(circle at top right, rgba(244, 191, 58, 0.16), transparent 30%);
}

.app-card-coming-soon {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.app-tag,
.app-platform {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.app-tag {
  background: rgba(244, 191, 58, 0.14);
  color: #ffd772;
}

.app-platform {
  background: rgba(255,255,255,0.08);
  color: var(--muted);
}

.app-card h3,
.principle-card h3,
.feature-tile h3,
.faq-question,
.policy-card h3 {
  margin: 0 0 10px;
  color: var(--text);
}

.app-points {
  margin: 18px 0 0;
  padding-left: 18px;
}

.app-points li + li {
  margin-top: 8px;
}

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

.contact-panel {
  background:
    linear-gradient(150deg, rgba(20, 31, 46, 0.92), rgba(12, 18, 26, 0.86)),
    radial-gradient(circle at 10% 20%, rgba(130, 200, 255, 0.16), transparent 22%);
}

.site-footer {
  margin-top: 28px;
  padding: 28px 18px 8px;
  text-align: center;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.app-detail-page {
  background:
    radial-gradient(circle at top left, rgba(244, 191, 58, 0.1), transparent 24%),
    radial-gradient(circle at 75% 10%, rgba(130, 200, 255, 0.12), transparent 20%),
    linear-gradient(180deg, #0a0f14, #10161d);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.app-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.app-summary-card,
.feature-tile {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.app-summary-card dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.app-summary-card dd {
  margin: 6px 0 0;
  font-weight: 700;
  color: var(--text);
}

.app-summary-grid {
  display: grid;
  gap: 14px;
}

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

.screenshot-tile {
  padding: 16px;
  border-radius: 26px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.screenshot-tile img {
  width: 100%;
  display: block;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.screenshot-caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.feature-icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  margin-bottom: 16px;
}

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

.faq-item {
  padding: 18px 0;
  background: none;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.faq-question {
  font-size: 1rem;
  font-weight: 700;
}

.faq-answer {
  margin: 0;
  line-height: 1.7;
}

.faq-answer a,
.policy-card a {
  color: var(--accent);
}

.policy-card p,
.policy-note {
  color: var(--muted);
}

code {
  font-family: "SFMono-Regular", Menlo, monospace;
  font-size: 0.92em;
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

@media (max-width: 980px) {
  .hero-panel,
  .app-hero,
  .app-showcase,
  .support-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .site-header,
  .hero-panel,
  .section-block {
    padding: 22px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
  }

  .top-nav a {
    flex: 1 1 auto;
  }

  .hero-copy h1,
  .section-heading h2 {
    max-width: none;
  }

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