/* ─── CSS Variables (from mobile/constants/theme.ts) ─── */
:root {
  --brand-primary: #1A73E8;
  --brand-light: #4285F4;
  --brand-dark: #0B57D0;
  --accent: #F9AB00;
  --success: #1E8E3E;
  --error: #D93025;

  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --border: #DADCE0;

  --text: #202124;
  --text-secondary: #5F6368;
  --text-tertiary: #80868B;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --max-width: 1120px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

/* ─── Layout ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ─── Header ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text);
}

.header-logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.header-logo span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header-nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.header-nav .btn-primary {
  font-size: 14px;
  padding: 8px 20px;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 26px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary:hover {
  background: var(--brand-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn-secondary:hover {
  background: var(--bg);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ─── Hero ─── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xxl);
}

.hero-icon-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon-inner {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon-inner img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ─── Features ─── */
.features {
  padding: 80px 0;
}

.features-heading {
  text-align: center;
  margin-bottom: var(--space-xxl);
}

.features-heading h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-sm);
}

.features-heading p {
  font-size: 18px;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Download CTA ─── */
.download-cta {
  padding: 80px 0;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download-cta h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-sm);
}

.download-cta p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

.download-cta .hero-cta {
  margin-top: var(--space-lg);
}

/* ─── Footer ─── */
.footer {
  padding: 40px 0;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text);
  text-decoration: none;
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-logo span {
  font-size: 16px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ─── Legal Pages ─── */
.legal-page {
  padding: calc(var(--header-height) + var(--space-xxl)) 0 var(--space-xxl);
}

.legal-container {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.legal-container h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-sm);
}

.legal-updated {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: var(--space-xl);
}

.legal-container h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--text);
}

.legal-container h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.legal-container p,
.legal-container li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.legal-container ul {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.legal-container li {
  margin-bottom: var(--space-sm);
}

.legal-container a {
  word-break: break-all;
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .animate-in {
    opacity: 1;
    animation: none;
  }
}

/* ─── Responsive ─── */
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 60px;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero h1 {
    font-size: 68px;
  }

  .footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-copy {
    order: -1;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .features-heading h2,
  .download-cta h2 {
    font-size: 28px;
  }

  .header-nav a:not(.btn-primary) {
    display: none;
  }
}
