/* ===== Reset & Base ===== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1d1d1f;
  background: #fafafa;
}

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

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

/* ===== Layout helpers ===== */

.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
}

.logo-text {
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #4F6BF0;
}

/* ===== Hero ===== */

.hero {
  text-align: center;
  padding: 100px 24px 80px;
  background: linear-gradient(170deg, #f0f2ff 0%, #fafafa 60%);
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero-logo {
  margin: 0 auto 28px;
  filter: drop-shadow(0 4px 12px rgba(79, 107, 240, 0.25));
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111;
}

.hero-tagline {
  font-size: 1.25rem;
  color: #555;
  margin-top: 8px;
}

.hero-sub {
  font-size: 1.05rem;
  color: #666;
  margin-top: 16px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 12px 28px;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #4F6BF0, #7B5CF5);
  color: #fff;
  margin-top: 28px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3d58d8, #6a4ae0);
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 14px 36px;
}

/* ===== Features ===== */

.features {
  padding: 80px 0;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.screenshot-wrap {
  margin-bottom: 48px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.screenshot {
  width: 100%;
  height: auto;
  display: block;
}

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

.feature-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.15s;
}

.feature-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef0ff, #f3eeff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4F6BF0;
  margin-bottom: 16px;
}

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

.feature-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.55;
}

/* ===== Download ===== */

.download {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(170deg, #fafafa 0%, #f0f2ff 100%);
}

.download h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.download p {
  color: #555;
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ===== Contact ===== */

.contact {
  padding: 80px 0;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.contact > .section-inner > p {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
}

.contact-link:hover {
  border-color: #4F6BF0;
  box-shadow: 0 4px 16px rgba(79, 107, 240, 0.12);
  transform: translateY(-1px);
}

.contact-link svg {
  flex-shrink: 0;
  color: #4F6BF0;
}

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-inner a {
  color: #555;
  transition: color 0.15s;
}

.footer-inner a:hover {
  color: #4F6BF0;
}

.footer-sep {
  color: #ccc;
}

/* ===== Privacy page ===== */

.privacy-page {
  padding: 80px 0 60px;
}

.privacy-page h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}

.privacy-updated {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 40px;
}

.privacy-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 8px;
}

.privacy-page p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

.privacy-page a {
  color: #4F6BF0;
  text-decoration: underline;
  text-decoration-color: rgba(79, 107, 240, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

.privacy-page a:hover {
  text-decoration-color: #4F6BF0;
}

.nav-active {
  color: #4F6BF0 !important;
}

/* ===== Responsive ===== */

@media (max-width: 680px) {
  .nav-links {
    gap: 16px;
  }

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

  .hero {
    padding: 72px 20px 56px;
  }

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

  .hero-tagline {
    font-size: 1.05rem;
  }

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

  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 440px) {
  .logo-text {
    display: none;
  }

  .nav-links {
    gap: 12px;
  }
}

/* ===== Dark mode ===== */

@media (prefers-color-scheme: dark) {
  body {
    color: #e5e5e7;
    background: #1a1a1a;
  }

  .site-header {
    background: rgba(26, 26, 26, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .nav-links a {
    color: #aaa;
  }

  .nav-links a:hover {
    color: #8fa4ff;
  }

  .hero {
    background: linear-gradient(170deg, #1f2235 0%, #1a1a1a 60%);
  }

  .hero h1 {
    color: #f0f0f2;
  }

  .hero-tagline {
    color: #aaa;
  }

  .hero-sub {
    color: #999;
  }

  .features h2,
  .download h2,
  .contact h2 {
    color: #f0f0f2;
  }

  .feature-card {
    background: #242424;
    border-color: rgba(255, 255, 255, 0.06);
  }

  .screenshot-wrap {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  }

  .feature-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  }

  .feature-icon {
    background: linear-gradient(135deg, #252840, #2a2540);
  }

  .feature-card h3 {
    color: #e5e5e7;
  }

  .feature-card p {
    color: #999;
  }

  .download {
    background: linear-gradient(170deg, #1a1a1a 0%, #1f2235 100%);
  }

  .download p,
  .contact > .section-inner > p {
    color: #999;
  }

  .btn-primary {
    background: linear-gradient(135deg, #4F6BF0, #7B5CF5);
  }

  .btn-primary:hover {
    background: linear-gradient(135deg, #5d78ff, #8b6cff);
  }

  .contact-link {
    background: #242424;
    border-color: rgba(255, 255, 255, 0.08);
    color: #ddd;
  }

  .contact-link:hover {
    border-color: #6880ff;
    box-shadow: 0 4px 16px rgba(79, 107, 240, 0.2);
  }

  .contact-link svg {
    color: #8fa4ff;
  }

  .site-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
    color: #666;
  }

  .footer-inner a {
    color: #999;
  }

  .footer-inner a:hover {
    color: #8fa4ff;
  }

  .footer-sep {
    color: #444;
  }

  .privacy-page p {
    color: #bbb;
  }

  .privacy-page h1,
  .privacy-page h2 {
    color: #f0f0f2;
  }

  .privacy-updated {
    color: #666;
  }

  .privacy-page a {
    color: #8fa4ff;
    text-decoration-color: rgba(143, 164, 255, 0.3);
  }

  .privacy-page a:hover {
    text-decoration-color: #8fa4ff;
  }

  .nav-active {
    color: #8fa4ff !important;
  }
}
