:root {
  --radius: 0.625rem;
  --background: #ffffff;
  --foreground: #020817;
  --card: #ffffff;
  --card-foreground: #020817;
  --primary: #0f172a;
  --primary-foreground: #f8fafc;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --sky-foreground: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }

main { position: relative; min-height: 100vh; overflow-x: hidden; }

/* ---------- HERO ---------- */
.hero { position: relative; isolation: isolate; }
.hero__bg,
.hero__fade {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg {
  background-image: url("assets/sky.jpeg");
  background-size: cover;
  background-position: center;
}
.hero__fade {
  background-image: linear-gradient(to bottom, transparent, transparent 55%, var(--background));
}
.hero__inner {
  margin: 0 auto;
  display: flex;
  max-width: 56rem;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem 11rem;
  text-align: center;
}
.badge {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.375rem 1rem;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sky-foreground);
  backdrop-filter: blur(4px);
  animation: fade-up 0.7s ease both;
}
h1 {
  margin-top: 1.5rem;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--sky-foreground);
  animation: fade-up 0.7s ease 0.08s both;
}
.hero__sub {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  animation: fade-up 0.7s ease 0.16s both;
}
.btn-download {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 9999px;
  background: var(--sky-foreground);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: 0 10px 40px -10px rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease;
  animation: fade-up 0.7s ease 0.24s both;
}
.btn-download:hover { transform: scale(1.03); }
.btn-download:active { transform: scale(0.98); }
.btn-download:hover svg { transform: translateY(2px); }
.btn-download svg { transition: transform 0.2s ease; }

/* ---------- CLOUDS + CARD ---------- */
.clouds-section { position: relative; margin-top: -8rem; }
.card-wrap { position: relative; margin: 0 auto; max-width: 72rem; padding: 0 1.5rem; }
.dashboard-card {
  position: relative;
  z-index: 20;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
  background: var(--card);
  box-shadow: 0 40px 80px -30px rgba(15, 40, 80, 0.45);
}
.clouds {
  position: relative;
  z-index: 30;
  margin-top: -49vw;
  width: 100%;
  user-select: none;
  pointer-events: none;
}

/* ---------- SECTIONS ---------- */
.section-action {
  position: relative;
  z-index: 10;
  margin-top: -1.5rem;
  padding: 2rem 1.5rem 4rem;
}
.container { margin: 0 auto; max-width: 72rem; text-align: center; }
h2 { font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; }
.lead { margin-top: 0.75rem; color: var(--muted-foreground); }

.grid-2 { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.shot {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(15, 40, 80, 0.4);
}

.section-install { padding: 0 1.5rem 5rem; }
.install-card {
  margin: 0 auto;
  max-width: 42rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.install-card h2 { font-size: 1.5rem; }
.btn-guide {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.75rem;
  background: var(--primary);
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-foreground);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: opacity 0.2s ease;
}
.btn-guide:hover { opacity: 0.9; }

/* ---------- CONTRIBUTORS ---------- */
.section-contrib { position: relative; z-index: 10; padding: 0 1.5rem 4rem; }
.contrib-wrap { margin: 0 auto; max-width: 48rem; text-align: center; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
}
.contrib-grid { margin-top: 1.5rem; display: grid; gap: 1rem; }
.contrib {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contrib:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(15, 40, 80, 0.4);
}
.contrib img {
  height: 4rem;
  width: 4rem;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--border);
}
.contrib-name { font-size: 1.125rem; font-weight: 600; }
.roles {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
}
.role {
  border-radius: 9999px;
  background: var(--secondary);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--secondary-foreground);
}

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--border); padding: 2.5rem 1.5rem; }
.footer-inner {
  margin: 0 auto;
  display: flex;
  max-width: 56rem;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-inner p { font-size: 0.875rem; color: var(--muted-foreground); }
.footer-links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.875rem; }
.footer-links a {
  color: var(--muted-foreground);
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--foreground); text-decoration: underline; }

/* ---------- LEGAL PAGES ---------- */
.legal { min-height: 100vh; background: var(--background); padding: 4rem 1.5rem; }
.legal article { margin: 0 auto; max-width: 42rem; }
.legal h1 { color: var(--foreground); font-size: 1.875rem; margin-top: 0; }
.legal .updated { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.prose { margin-top: 2rem; display: grid; gap: 1.25rem; font-size: 1rem; line-height: 1.7; color: rgba(2, 8, 23, 0.9); }
.notice {
  margin-top: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
}
.notice h2 {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}
.notice ul { margin: 0.75rem 0 0 1.25rem; display: grid; gap: 0.375rem; }
.notice p { margin-top: 1rem; }
.closing { margin-top: 2.5rem; font-size: 1.125rem; font-weight: 500; }
.closing + p { margin-top: 0.5rem; color: var(--muted-foreground); }
.back {
  margin-top: 2.5rem;
  display: inline-block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-underline-offset: 4px;
}
.back:hover { color: var(--foreground); text-decoration: underline; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 640px) {
  .hero__inner { padding: 4rem 1.5rem 16rem; }
  h1 { font-size: 3.75rem; }
  .hero__sub { font-size: 1.125rem; }
  .clouds-section { margin-top: -12rem; }
  h2 { font-size: 2.25rem; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contrib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal h1 { font-size: 2.25rem; }
}
