:root {
  --color-hero-bg: #f5f5f7;
  --color-accent-gradient: linear-gradient(100deg, #0071e3 0%, #2997ff 100%);
  --color-section-bg: #f5f5f7;
  --color-alt-section: #ffffff;
  --color-nav: rgba(255,255,255,0.72);
  --color-footer: #f5f5f7;
  --color-text: #1d1d1f;
  --color-lighttext: #6e6e73;
  --radius-hero: 36px;
  --radius-card: 18px;
  --radius-screenshot: 28px;
  --shadow-main: 0 18px 48px rgba(0,0,0,0.08);
  --shadow-card: 0 10px 30px rgba(0,0,0,0.06);
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--color-section-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

nav {
  background: var(--color-nav);
  color: var(--color-text);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  padding: 0 2.3rem;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 13px;
}
.logo {
  border-radius: 12px;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  background: none;
  border: none;
  outline: none;
  padding: 0 6px;
}
nav a {
  position: relative;
  transition: opacity .19s;
  padding-bottom: 4px;
}
nav a:hover, nav a:focus {
  opacity: .8;
}
.hero {
  background: var(--color-hero-bg);
  color: var(--color-text);
  padding: 88px 0 56px;
  border-radius: 0 0 var(--radius-hero) var(--radius-hero);
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.hero-content {
  flex: 2 2 360px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 10;
  max-width: 560px;
}
.home-page .hero {
  justify-content: center;
}
.home-page .hero-content {
  align-items: center;
  text-align: center;
  margin: 0 auto;
}
.home-page .hero-visual {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
}
.hero-visual img {
  border-radius: 28px;
  box-shadow: var(--shadow-main);
  width: 260px;
  background: #fff;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.8rem;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}
.hero h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.2rem;
  margin-bottom: 0;
  letter-spacing: -0.03em;
}
.policy-hero {
  margin: 0 0 2rem;
  padding: 72px 0 40px;
}
.policy-hero .hero-content {
  max-width: 620px;
  gap: 1.2rem;
}
.policy-hero .hero-content p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}
.policy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.policy-badge {
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
  color: var(--color-text);
  border-radius: 999px;
  padding: .55rem .9rem;
  font-size: .95rem;
  font-weight: 600;
}
.policy-card {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}
.policy-card p {
  margin: 0;
  line-height: 1.6;
}
.cta {
  display: inline-block;
  background: var(--color-accent-gradient);
  color: #fff;
  font-weight: 600;
  border-radius: 100px;
  font-size: 1.1rem;
  box-shadow: var(--shadow-main);
  padding: 14px 26px;
  margin-top: 10px;
  transition: transform 0.17s cubic-bezier(.22,1,.36,1), box-shadow 0.17s;
  text-decoration: none;
}
.cta:hover, .cta:focus {
  transform: scale(1.03) translateY(-1px);
  box-shadow: 0 14px 40px rgba(0,113,227,0.24);
}

.features-section,
.policy-shell {
  background: var(--color-alt-section);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-main);
}

.features-section {
  margin: 2rem 0 3.2rem 0;
  padding: 36px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
}
.feature-card {
  flex: 1 1 260px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.2rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-width: 232px;
  max-width: 340px;
  min-height: 168px;
  transition: transform 0.17s, box-shadow 0.15s;
}
.feature-card h3 {
  margin: 0 0 8px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.feature-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.screenshots-section {
  background: none;
  margin: 2.2rem 0 3.2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-page .screenshots-section h2 {
  text-align: center;
}
.screenshot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
  align-items: end;
  margin-top: 1.2rem;
}
.screenshot-grid img {
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  background: #fff;
  height: auto;
  width: 220px;
  object-fit: cover;
  transition: transform 0.16s cubic-bezier(.22,1,.36,1), box-shadow 0.16s;
}

.screenshot-break {
  flex-basis: 100%;
  width: 0;
  height: 0;
}
.screenshot-grid img:hover {
  transform: scale(1.02) translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}
.policy-shell {
  max-width: 780px;
  margin: 2rem auto 0;
  padding: 2rem 1.6rem 2.2rem;
}
.policy-footer,
footer {
  background: var(--color-footer);
  color: var(--color-lighttext);
  font-size: .98rem;
  letter-spacing: .01em;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-radius: 0;
  margin-top: 1.8rem;
}
.policy-footer {
  padding: 2.4rem 0 1.2rem;
}
.policy-lang-toggle {
  color: var(--color-lighttext);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}
footer {
  padding: 2.6rem 0 1.2rem 0;
}

.hidden { display: none !important }

@media (max-width: 620px) {
  .features-section {
    flex-direction: column;
    gap: 1.2rem;
    align-items: stretch;
    padding: 22px 3vw;
  }
  .feature-card {
    max-width: 99vw;
    min-width: unset;
    margin: 0 auto;
  }
}

@media (max-width: 500px) {
  .screenshot-grid {
    gap: 0.8rem;
  }
  .screenshot-grid img {
    width: 90vw;
    max-width: 97vw;
    min-width: 120px;
  }
  body, .features-section, .hero-content {
    font-size: 15px;
  }
  .feature-card h3 {
    font-size: 1.09rem;
  }
  .brand-title {
    font-size: 0.97rem;
  }
  .nav-links {
    font-size: 0.88rem;
  }
  .cta {
    font-size: 1.08rem;
    padding: 13px 27px;
  }
}

@media (max-width: 475px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 0 0.3rem;
    align-items: flex-start;
  }
  .nav-left {
    padding-bottom: 6px;
  }
  .nav-links {
    gap: 0.75rem;
    font-size: 0.95rem;
    flex-wrap: wrap;
  }
  .brand-title {
    font-size: 1rem;
  }
}

@media (max-width: 820px) {
  .hero {
    flex-direction: column;
    padding: 44px 0 32px 0;
    gap: 18px;
    border-radius: 0;
  }
  .hero-content { max-width: 99vw; }
  .features-section {
    border-radius: 0;
    padding-inline: 4vw; padding-block: 26px 28px;
  }
  .screenshots-section {
    margin: 1.3rem 0 2.6rem 0;
  }
  .screenshot-grid img {
    width: 46vw; min-width: 128px; max-width: 240px;
  }
  nav {
    padding: 0 1.1rem;
    height: 60px;
  }
  .brand-title { font-size: 1.32rem; }
}
