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

:root {
  --color-bg: #ffffff;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-accent: #0071e3;
  --color-accent-hover: #0062cc;
  --color-surface: #f5f5f7;
  --color-border: #d2d2d7;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
}

.app-icon-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon-placeholder>img {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* === Language Switch === */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2px;
  cursor: pointer;
  font-family: inherit;
}

.lang-switch-label {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.lang-switch-label.active {
  background: var(--color-accent);
  color: #fff;
}

/* === Hero === */
.hero {
  padding: 80px 0 60px;
  background: var(--color-surface);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-screenshot {
  flex-shrink: 0;
}

/* === Screenshot Placeholders === */
.screenshot-placeholder {
  width: 260px;
  height: 562px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}

.screenshot-placeholder img {
  width: 100%;
  height: auto;
}

.screenshot-placeholder small {
  font-weight: 400;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* === App Store Badge Placeholder === */
.app-store-badge-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background-color: transparent;
}

.app-store-badge-placeholder:hover {
  background-color: transparent;
}

.app-store-badge-placeholder img {
  width: 200px;
  height: auto;
}

.app-store-badge-placeholder small {
  font-weight: 400;
  font-size: 0.7rem;
  opacity: 0.7;
}

.app-store-badge-placeholder.small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.app-store-badge-placeholder.small small {
  display: none;
}

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

.features h2,
.screenshots h2,
.more-features h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* === Screenshots === */
.screenshots {
  padding: 80px 0;
  background: var(--color-surface);
}

.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshots-scroll .screenshot-placeholder {
  scroll-snap-align: start;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

/* === More Features === */
.more-features {
  padding: 80px 0;
}

.more-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.more-feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.more-feature p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* === Privacy Policy === */
.privacy {
  padding: 80px 0;
  background: var(--color-surface);
}

.privacy-content {
  max-width: 720px;
}

.privacy-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.privacy-updated {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.privacy-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 8px;
}

.privacy-content p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 4px;
}

.privacy-content a {
  color: var(--color-accent);
}

/* === Footer === */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

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

/* === Responsive === */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

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

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .more-features-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .features,
  .screenshots,
  .more-features,
  .privacy {
    padding: 56px 0;
  }

  .screenshot-placeholder {
    width: 220px;
    height: 476px;
  }
}