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

:root {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-card: #0f3460;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0b0;
  --accent: #00d2ff;
  --accent-dim: #0098b8;
  --border: #2a2a4a;
  --font-mono: "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

.site-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.site-icon {
  width: 32px;
  height: 32px;
  border-radius: 22%;
  transition: opacity 0.2s;
}

.site-title:hover .site-icon {
  opacity: 0.8;
}

.lang-switch {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.lang-switch a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

.lang-switch .current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 22%;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 210, 255, 0.2);
}

.hero-title {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* Screenshots */
.screenshots {
  padding: 2rem 0 3rem;
}

.screenshots-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
}

.screenshot-img {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.screenshot-ipad {
  height: 420px;
  width: auto;
}

.screenshot-iphone {
  height: 380px;
  width: auto;
}

/* Features */
.features {
  padding: 3rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

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

/* CTA / Footer links */
.cta {
  padding: 2rem 0 3rem;
  text-align: center;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.footer-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Single page (privacy policy etc.) */
.single-page {
  padding: 3rem 0;
  max-width: 720px;
}

.single-page h1 {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 2rem;
}

.single-page h2 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.single-page p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.single-page ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.single-page li {
  margin-bottom: 0.25rem;
}

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

.single-page a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 600px) {
  .hero {
    padding: 3rem 0 1.5rem;
  }

  .hero-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .screenshots-gallery {
    flex-direction: column;
  }

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

  .screenshot-iphone {
    height: 320px;
    width: auto;
  }

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