:root {
  /* Android Dark Theme Colors */
  --pf-primary: #0057ff;
  --pf-primary-variant: #0046cc;
  --pf-primary-light: #3377ff;
  --pf-primary-dark: #003c99;
  --pf-secondary: #00c2ff;
  --pf-secondary-light: #33d1ff;
  --pf-secondary-dark: #0099cc;
  --pf-bg: #121212;
  --pf-surface: #1e1e1e;
  --pf-surface-2: #2a2a2a;
  --pf-text: #ffffff;
  --pf-text-muted: rgba(255, 255, 255, 0.7);
  --pf-text-subtle: rgba(255, 255, 255, 0.38);
  --pf-ok: #4caf50;
  --pf-warn: #ffc107;
  --pf-connecting: #ffa726;
  --pf-bad: #ff3b30;
  --pf-idle: #9e9e9e;

  /* Spacing & Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --container-max: 1100px;
  --header-height: 72px;

  --shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
  --border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, p, ul, ol, table {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--pf-bg);
  color: var(--pf-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  
  /* Background Atmosphere */
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 87, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 194, 255, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4, .brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--pf-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--pf-secondary-light);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.muted { color: var(--pf-text-muted); }
.subtle { color: var(--pf-text-subtle); }
.small { font-size: 0.875rem; }
.is-hidden { display: none !important; }

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--pf-primary);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Header */
.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: var(--border);
}

.header-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--pf-text);
}

.brand-mark {
  border-radius: var(--radius-sm);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pf-text-muted);
}

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

.nav-link--pill {
  background: var(--pf-surface-2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  color: var(--pf-text);
  border: var(--border);
}

/* Hero */
.hero {
  padding: 6rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

.eyebrow {
  color: var(--pf-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--pf-text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.trust-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.trust-pill {
  background: var(--pf-surface-2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pf-text-muted);
  border: var(--border);
}

.release-line {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hero Art */
.hero-art {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.logo-sheen {
  position: relative;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 194, 255, 0.2), transparent 70%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.hero-logo {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
  50% { transform: translateY(-20px) rotateX(-5deg) rotateY(5deg); }
}

/* Cards */
.card {
  background: var(--pf-surface);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card-text {
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-variant));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 87, 255, 0.3);
  color: white;
}

.btn-secondary {
  background: var(--pf-surface-2);
  color: var(--pf-text);
  border: var(--border);
}

.btn-secondary:hover {
  background: #333;
  transform: translateY(-2px);
}

/* Steps */
.steps-list {
  counter-reset: step;
  list-style: none;
}

.steps-list li {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.5rem;
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--pf-surface-2);
  border: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--pf-secondary);
}

.steps-list li:last-child {
  margin-bottom: 0;
}

/* Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th, .table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pf-text-subtle);
}

/* Downloads */
.download-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.download-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.link {
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

/* Changelog */
.changelog {
  padding: 1.5rem 2rem;
}

.list {
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--pf-text-muted);
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--pf-primary-light);
}

/* Footer */
.site-footer {
  padding: 4rem 0;
  border-top: var(--border);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas, .trust-row, .release-line {
    justify-content: center;
  }
  
  .hero-art {
    order: -1;
  }
  
  .logo-sheen {
    width: 200px;
    height: 200px;
  }
  
  .hero-logo {
    width: 140px;
    height: 140px;
  }
  
  .header-row {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .site-header {
    height: auto;
  }
}

@media (max-width: 600px) {
  .nav {
    display: none;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .footer-row {
    flex-direction: column;
    text-align: center;
  }
}
