@import url('./fonts.css');

:root {
  --background: 222 60% 6%;
  --foreground: 210 30% 92%;
  --card: 221 45% 10%;
  --primary: 214 100% 56%;
  --primary-foreground: 0 0% 100%;
  --secondary: 221 40% 15%;
  --muted: 221 30% 18%;
  --muted-foreground: 214 15% 62%;
  --accent: 214 90% 60%;
  --border: 217 35% 18%;
  --radius: 0.9rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
}
.nav-links a:hover { color: hsl(var(--foreground)); }
.lang-toggle {
  display: flex;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  padding: 6px 14px;
  cursor: pointer;
  font: inherit;
}
.lang-toggle button.active {
  background: hsl(var(--primary));
  color: #fff;
}
.nav-toggle { display: none; }

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}
.tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: hsl(var(--secondary));
  color: hsl(var(--accent));
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 20px;
}
.hero p {
  max-width: 620px;
  margin: 0 auto 36px;
  color: hsl(var(--muted-foreground));
  font-size: 1.1rem;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: hsl(var(--primary));
  color: #fff;
}
.btn-primary:hover { background: hsl(214 100% 62%); }
.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.btn-secondary:hover { border-color: hsl(var(--primary)); }

/* Sections */
section { padding: 64px 0; }
.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}
.eyebrow {
  color: hsl(var(--accent));
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; }
.section-head p { color: hsl(var(--muted-foreground)); margin: 0; }

/* Apps grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.app-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.app-card:hover {
  border-color: hsl(var(--primary) / 0.5);
  transform: translateY(-3px);
}
.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: hsl(var(--secondary));
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-card h3 { font-size: 1.05rem; margin: 0; }
.app-tagline { color: hsl(var(--accent)); font-size: 0.85rem; font-weight: 600; margin: -10px 0 0; }
.app-desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.88rem;
  margin: 0;
  flex: 1;
}
.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge.noAds { background: hsl(160 70% 20%); color: hsl(150 60% 75%); }
.badge.withAds { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.app-link {
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: 0.88rem;
}
.app-link:hover { text-decoration: underline; }

/* About */
.about {
  background: hsl(var(--card) / 0.5);
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}
.about-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about-inner p { color: hsl(var(--muted-foreground)); }
.about-points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.about-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
}
.about-points li::before {
  content: "✓";
  color: hsl(var(--primary));
  font-weight: 700;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid hsl(var(--border));
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: hsl(var(--foreground)); }

/* Legal pages */
.legal-page { padding: 56px 0 96px; }
.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.legal-page .back-link:hover { color: hsl(var(--foreground)); }
.legal-page h1 { font-size: 1.9rem; margin-bottom: 8px; }
.legal-page .updated { color: hsl(var(--muted-foreground)); font-size: 0.85rem; margin-bottom: 40px; }
.legal-content { max-width: 760px; }
.legal-content h2 {
  font-size: 1.2rem;
  margin: 36px 0 12px;
  padding-top: 16px;
  border-top: 1px solid hsl(var(--border));
}
.legal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content p, .legal-content li { color: hsl(var(--muted-foreground)); font-size: 0.95rem; }
.legal-content ul { padding-left: 20px; }
.legal-content address { font-style: normal; color: hsl(var(--muted-foreground)); }

/* Cookie banner */
#cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
#cookie-banner[hidden] { display: none; }
#cookie-banner p { margin: 0; font-size: 0.85rem; color: hsl(var(--muted-foreground)); flex: 1; min-width: 220px; }
#cookie-banner p a { color: hsl(var(--primary)); text-decoration: underline; }
#cookie-banner button {
  background: hsl(var(--primary));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}
