* {
  box-sizing: border-box;
}

:root {
  --bg: #070b1a;
  --card: #171d34;
  --card-soft: #202846;
  --text: #f5f7ff;
  --muted: #aeb7d1;
  --accent: #4b8cff;
  --accent-soft: rgba(75, 140, 255, 0.16);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --danger: #ef5350;
}

body {
  margin: 0;
  font-family: 'Carlito', Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(75, 140, 255, 0.22), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(124, 77, 255, 0.15), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 11, 26, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 1.14rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 1rem;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 2rem;
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1, h2, h3 {
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(3.25rem, 9vw, 7rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.6rem;
}

.tagline {
  font-size: clamp(1.4rem, 4vw, 2.35rem);
  margin: 1rem 0 1rem;
  color: var(--text);
  font-weight: 700;
}

.hero-text {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 620px;
}

.hero-logo-card {
  background: linear-gradient(135deg, rgba(32, 40, 70, 0.94), rgba(23, 29, 52, 0.8));
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.hero-logo-card img {
  width: min(260px, 70vw);
  height: auto;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
}

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

.button.secondary {
  background: var(--accent-soft);
  border: 1px solid rgba(75, 140, 255, 0.35);
  color: var(--text);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading p {
  color: var(--muted);
  max-width: 680px;
}

.app-card {
  background: linear-gradient(135deg, rgba(32, 40, 70, 0.96), rgba(23, 29, 52, 0.96));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.app-card p {
  color: var(--muted);
  margin: 0.85rem 0 1.2rem;
}

.app-icon-wrap img {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  display: block;
}

.feature-grid,
.principles,
.support-grid {
  display: grid;
  gap: 1rem;
}

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

.feature-grid div,
.mini-card,
.support-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 18px;
}

.feature-grid strong,
.support-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.feature-grid span,
.support-card span,
.mini-card p {
  color: var(--muted);
}

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

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

.support-card {
  text-decoration: none;
  display: grid;
  gap: 0.35rem;
  overflow-wrap: anywhere;
}

.support-card:hover {
  border-color: rgba(75, 140, 255, 0.45);
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1.25rem;
}

.footer strong {
  color: var(--text);
}

.footer p {
  margin: 0.35rem 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.copyright {
  font-size: 0.95rem;
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.legal-page h1 {
  font-size: clamp(2.35rem, 6vw, 4.25rem);
}

.legal-page h2 {
  font-size: 1.55rem;
  margin-top: 2.4rem;
}

.legal-page h3 {
  font-size: 1.15rem;
  margin-top: 1.4rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page a {
  color: var(--text);
}

.back-link {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 2rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--text);
}

.footer-simple {
  display: block;
  text-align: center;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 5rem;
  }

  .hero-logo-card {
    order: -1;
    max-width: 260px;
  }

  .app-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links:not(.nav-links-static) {
    position: absolute;
    top: 64px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem;
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links-static {
    gap: 0.9rem;
  }

  .brand span {
    display: inline;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.75rem);
  }
}
