:root {
  --primary: #00897B;
  --primary-dark: #00695C;
  --primary-light: #4DB6AC;
  --bg: #F5FAFA;
  --surface: #FFFFFF;
  --card-bg: #E0F2F1;
  --text: #1A1C1C;
  --text-muted: #444747;
  --border: #B2DFDB;

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

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

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

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  padding: 1.5rem 0;
  background-color: rgba(245, 250, 250, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.logo img {
  height: 40px;
  width: 40px;
  border-radius: 10px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.cta-button--outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.cta-button--outline:hover {
  background-color: var(--primary);
  color: white;
}

.store-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-buttons .cta-button {
  flex: none;
}

#download .store-buttons {
  justify-content: center;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 80%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: rotate(-1deg);
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: rotate(0deg) scale(1.02);
}

/* Features - Bento Grid */
.features {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 1.5rem;
}

.bento-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bento-card.wide {
  grid-column: span 2;
}

.bento-card.tall {
  grid-row: span 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  background-color: var(--card-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.bento-icon svg {
  width: 24px;
  height: 24px;
}

.bento-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

/* Footer */
footer {
  background-color: white;
  padding: 4rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

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

.legal-text-container {
  max-width: 800px;
  margin: 4rem auto;
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-text-container h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.legal-text-container h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-text-container p {
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content p {
    margin: 0 auto 2rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.wide,
  .bento-card.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Mobile Fixes */
@media (max-width: 600px) {
  .nav-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero {
    padding: 3rem 0;
  }
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .legal-text-container {
    padding: 1.5rem;
    margin: 2rem auto;
  }
}

.legal-text-container {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 960px) {
  .footer-logo .logo {
    display: inline-flex;
    justify-content: center;
  }
}