:root {
  --bg: #050914;
  --card: rgba(255,255,255,.065);
  --border: rgba(255,255,255,.1);
  --text: #f6f7fb;
  --muted: rgba(246,247,251,.62);
  --soft: rgba(246,247,251,.38);
  --accent: #ffcf62;
  --radius: 28px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 88, 103, .22), transparent 30%),
    radial-gradient(circle at 18% 0%, rgba(70, 94, 255, .18), transparent 34%),
    linear-gradient(180deg, #060a16 0%, #050914 60%, #030711 100%);
  min-height: 100vh;
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.displayNone{
  display: none!important;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fb;
    --card: rgba(8, 15, 30, .05);
    --border: rgba(8, 15, 30, .12);
    --text: #0d1321;
    --muted: rgba(13, 19, 33, .72);
    --soft: rgba(13, 19, 33, .52);
    --accent: #946400;
  }

  html { color-scheme: light; }

  body {
    background:
      radial-gradient(circle at 82% 18%, rgba(255, 199, 107, .26), transparent 30%),
      radial-gradient(circle at 18% 0%, rgba(83, 108, 255, .18), transparent 34%),
      linear-gradient(180deg, #f8faff 0%, #eef2f8 60%, #e9edf5 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.app-shell {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.app-header {
  padding: 28px 0 0;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.app-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.app-back-link {
  color: var(--soft);
  font-size: 14px;
  transition: opacity 0.2s ease, color 0.2s ease;
}

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

.app-footer {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 34px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--soft);
  border-top: 1px solid rgba(255,255,255,.08);
}

.app-footer p { margin: 0; }

.app-footer-note {
  margin-top: 8px !important;
  color: var(--soft);
}

.app-footer-legal {
  margin-top: 10px !important;
  max-width: 540px;
  color: var(--soft);
  font-size: .86rem;
  line-height: 1.55;
}

.app-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.page {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 72px 0 48px;
}

.hero {
  padding: 64px 0 72px;
}

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

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

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: .94;
  letter-spacing: -.075em;
}

.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.55;
}

.section {
  margin-top: 64px;
}

.section-header {
  margin-bottom: 24px;
}

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

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.app-card {
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.2);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
}

.app-card.featured {
  background:
    radial-gradient(circle at 80% 12%, rgba(255,207,98,.18), transparent 35%),
    radial-gradient(circle at 20% 100%, rgba(255,77,100,.16), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.04));
}

.app-card.muted { opacity: .72; }

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: block;
  margin-bottom: 28px;
  background: rgba(255,255,255,.08);
}

.app-status {
  color: var(--accent);
  font-weight: 800;
  font-size: .82rem;
  margin-bottom: 10px;
}

.app-card h3 {
  font-size: 1.65rem;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 12px;
}

.app-card p:last-child {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.philosophy {
  max-width: 760px;
  padding: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.045);
}

.philosophy p:last-child {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 34px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--soft);
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer p { margin: 0; }

.footer-note {
  margin-top: 8px !important;
  color: var(--soft);
}

.footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

@media (max-width: 860px) {
  .page {
    width: min(100% - 28px, var(--max));
    padding-top: 42px;
  }

  .hero {
    padding: 44px 0 52px;
  }

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

  .app-card {
    min-height: auto;
  }

  .footer {
    width: min(100% - 28px, var(--max));
    flex-direction: column;
  }

  .app-shell,
  .app-footer {
    width: min(100% - 28px, var(--max));
  }

  .app-topbar,
  .app-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 3.25rem; }

  .philosophy {
    padding: 28px;
  }

  .footer nav {
    flex-direction: column;
    gap: 10px;
  }
}
