/* Make Android Great Again — shared site styles
   Fluent Design ++ base tokens live in colors_and_type.css.
   This sheet adds site-wide primitives (reset, nav, footer, layout). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--fdp-font-text);
  color: var(--fdp-fg-primary);
  background: var(--fdp-bg-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: var(--fdp-lh-normal);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

:focus-visible {
  outline: 2px solid var(--fdp-accent-60);
  outline-offset: 2px;
  border-radius: 4px;
}

/* -------- Layout ----------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: 96px 0;
}
.section--tight { padding: 64px 0; }
.section--dark {
  background: var(--fdp-hyper-ink);
  color: #fff;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

/* -------- Type ------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-family: var(--fdp-font-display); font-weight: 700; letter-spacing: var(--fdp-tracking-display); line-height: var(--fdp-lh-tight); }
h1 { font-size: clamp(48px, 7vw, 96px); letter-spacing: var(--fdp-tracking-poster); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: clamp(20px, 2vw, 28px); font-family: var(--fdp-font-tight); }
h4 { font-size: 18px; font-family: var(--fdp-font-tight); }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--fdp-font-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--fdp-tracking-allcaps);
  text-transform: uppercase;
  color: var(--fdp-fg-tertiary);
}
.section--dark .eyebrow { color: rgba(255,255,255,.7); }

.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--fdp-fg-secondary);
  max-width: 60ch;
}
.section--dark .lede { color: rgba(255,255,255,.82); }

/* -------- Nav (top bar) --------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: var(--fdp-blur-thin);
  -webkit-backdrop-filter: var(--fdp-blur-thin);
  background: rgba(243,243,243,.72);
  border-bottom: 1px solid var(--fdp-stroke-divider);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fdp-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.nav__brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--fdp-grad-nocturne);
  box-shadow: var(--fdp-shadow-4);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 14px;
  letter-spacing: 0;
}
.nav__links {
  display: flex; gap: 8px; align-items: center;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fdp-fg-secondary);
  transition: background var(--fdp-dur-fast) var(--fdp-ease-standard), color var(--fdp-dur-fast) var(--fdp-ease-standard);
}
.nav__link:hover { background: var(--fdp-bg-hover); color: var(--fdp-fg-primary); }
.nav__link[aria-current="page"] { color: var(--fdp-fg-primary); background: var(--fdp-bg-hover); }

@media (max-width: 640px) {
  .nav__inner { height: 56px; }
  .nav__link { padding: 6px 10px; font-size: 13px; }
}

/* -------- Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--fdp-radius-pill);
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--fdp-dur-fast) var(--fdp-ease-standard),
              filter var(--fdp-dur-fast) var(--fdp-ease-standard),
              box-shadow var(--fdp-dur-base) var(--fdp-ease-standard);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); filter: brightness(.96); }

.btn--primary {
  background: var(--fdp-hyper-ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(10,10,31,.28);
}
.btn--accent {
  background: var(--fdp-grad-nocturne);
  color: #fff;
  box-shadow: var(--fdp-shadow-hyper);
}
.btn--ghost {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.btn--outline {
  background: transparent;
  color: var(--fdp-fg-primary);
  border-color: var(--fdp-stroke-strong);
}
.btn--outline:hover { background: var(--fdp-bg-hover); }
.btn--playstore {
  background: #0A0A1F;
  color: #fff;
  padding: 12px 22px;
  gap: 12px;
}
.btn--playstore .btn__label {
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1;
}
.btn--playstore .btn__label small {
  font-size: 10px; font-weight: 500; opacity: .8; letter-spacing: .1em; text-transform: uppercase;
}
.btn--playstore .btn__label strong {
  font-size: 16px; font-weight: 600;
}

/* -------- Card ------------------------------------------------------- */
.card {
  background: var(--fdp-bg-card);
  border: 1px solid var(--fdp-stroke-default);
  border-radius: var(--fdp-radius-lg);
  padding: 24px;
  box-shadow: var(--fdp-shadow-2);
  transition: box-shadow var(--fdp-dur-base) var(--fdp-ease-standard),
              transform var(--fdp-dur-base) var(--fdp-ease-standard);
}
.card:hover { box-shadow: var(--fdp-shadow-8); }
a.card:hover { transform: translateY(-2px); }

/* -------- Footer ---------------------------------------------------- */
.footer {
  background: var(--fdp-hyper-ink);
  color: rgba(255,255,255,.72);
  padding: 64px 0 32px;
}
.footer h4 {
  color: #fff;
  font-family: var(--fdp-font-text);
  font-size: 12px; font-weight: 600;
  letter-spacing: var(--fdp-tracking-allcaps);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__links {
  display: flex; flex-direction: column; gap: 10px;
}
.footer__links a {
  color: rgba(255,255,255,.72);
  font-size: 14px;
  transition: color var(--fdp-dur-fast);
}
.footer__links a:hover { color: #fff; }
.footer__brand-copy {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.6;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* -------- Reveal animation ------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: reveal-in 700ms var(--fdp-ease-poster) forwards;
  }
  .reveal[data-delay="1"] { animation-delay: 80ms; }
  .reveal[data-delay="2"] { animation-delay: 160ms; }
  .reveal[data-delay="3"] { animation-delay: 240ms; }
  .reveal[data-delay="4"] { animation-delay: 320ms; }
  @keyframes reveal-in {
    to { opacity: 1; transform: none; }
  }
}
