/* Gridferno — Global Styles */

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

:root {
  --bg: #0c0a4d;
  --bg-light: #150f5e;
  --accent: #ff6b1a;
  --accent-glow: #ff8c42;
  --text: #ffffff;
  --text-muted: #8a8ea8;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-glow);
}

/* ── Nav ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 10, 77, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 107, 26, 0.15);
  padding: 0 24px;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ── Hero ── */

.hero {
  text-align: center;
  padding: 100px 24px 80px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 107, 26, 0.12) 0%, transparent 100%),
    var(--bg);
}

.hero-logo {
  max-width: min(500px, 85vw);
  height: auto;
}

.hero .tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--accent);
  margin-top: 12px;
  font-weight: 600;
}

.hero .subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── App Store Badge ── */

.badge-area {
  margin-top: 40px;
}

.badge-link {
  display: inline-block;
  background: var(--text);
  color: #000;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.badge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 26, 0.3);
  color: #000;
}

.badge-link svg {
  vertical-align: middle;
  margin-right: 8px;
}

/* ── Features ── */

.features {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-light);
  border: 1px solid rgba(255, 107, 26, 0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Legal / Prose pages ── */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.prose h1 {
  font-size: 2rem;
  margin-bottom: 6px;
}

.prose .effective {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.prose h2 {
  font-size: 1.25rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--accent);
}

.prose p,
.prose li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.prose ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Footer ── */

.footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 107, 26, 0.1);
  padding: 28px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

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