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

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-light: #f0fdfa;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1040px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-hover);
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* header */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

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

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--text);
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s;
  border-radius: 1px;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a.active {
  color: var(--accent);
}

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 80px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.site-footer .footer-links a {
  font-size: 13px;
}

/* sections */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 560px;
}

/* hero */
.hero {
  padding: 64px 0 48px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: var(--accent);
  margin: 0 auto;
  justify-self: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* app cards grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.app-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  color: #fff;
  flex-shrink: 0;
}

.app-card-icon.teal {
  background: var(--accent);
}

.app-card-icon.amber {
  background: #d97706;
}

.app-card-icon.indigo {
  background: #6366f1;
}

.app-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.app-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.app-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a1a2e;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.play-badge:hover {
  opacity: 0.9;
  color: #fff;
}

.play-badge svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
}

/* app detail page */
.app-hero {
  padding: 48px 0 32px;
}

.split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-text .app-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  margin-bottom: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.hero-text .app-icon-large img {
  width: 80px;
  height: 80px;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-text .app-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 24px;
}

.hero-text .app-package {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--border);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-family: monospace;
}

.app-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .split-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .hero-text {
    align-items: center;
  }
  .hero-text .app-subtitle {
    max-width: 100%;
  }
  .hero-text .app-icon-large {
    margin-left: auto;
    margin-right: auto;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s;
}

.feature-item:hover {
  border-color: var(--accent);
}

.feature-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  background: var(--accent-light);
}

.feature-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 13px;
  color: var(--text-muted);
}

/* privacy page */
.privacy-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0;
}

.privacy-page h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.privacy-page .last-updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.privacy-page h2 {
  font-size: 20px;
  margin: 32px 0 12px;
}

.privacy-page p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.privacy-page ul {
  margin: 0 0 16px 24px;
  color: var(--text-muted);
}

.privacy-page ul li {
  margin-bottom: 6px;
}

.privacy-page strong {
  color: var(--text);
}

/* responsive */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero p {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-avatar {
    order: -1;
    width: 140px;
    height: 140px;
    font-size: 48px;
  }

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

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

  .section-title {
    font-size: 24px;
  }

  .section {
    text-align: center;
  }

  .section-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .site-header .container {
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .app-hero h1 {
    font-size: 26px;
  }
}

/* utility */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
