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

:root {
  --primary: #0B5D66;
  --primary-light: #0e7a86;
  --primary-dark: #084950;
  --bg: #ffffff;
  --bg-subtle: #f7f8fa;
  --text: #1a1a2e;
  --text-muted: #5a5a7a;
  --border: #e2e4ea;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --max-width: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-light); color: #fff; }

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
}
.btn-sm:hover { background: var(--primary-light); color: #fff; }

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

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.925rem; }
.nav-links a:hover { color: var(--primary); }
.nav-links .btn-sm { color: #fff; }
.nav-links .btn-sm:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #f0f9fa 0%, #fff 50%, #f0f5f0 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-sub {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
}
.hero-mockup {
  display: flex;
  justify-content: center;
}
.mockup-placeholder {
  width: 320px;
  height: 440px;
  border-radius: 24px;
  background: var(--bg-subtle);
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== Section Titles ===== */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ===== Features ===== */
.features {
  padding: 80px 0;
}
.features .section-title { margin-bottom: 48px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #e8f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Screenshots ===== */
.screenshots {
  padding: 60px 0 80px;
  background: var(--bg-subtle);
}
.screenshots .section-title { margin-bottom: 40px; }
.screenshots-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screenshots-scroll::-webkit-scrollbar { height: 6px; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.screenshot-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
}
.screenshot-placeholder {
  width: 280px;
  height: 500px;
  border-radius: 16px;
  background: #fff;
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== Platforms ===== */
.platforms {
  padding: 80px 0;
  text-align: center;
}
.platform-badges {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
}
.platform-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}
.platform-badge span { font-weight: 600; font-size: 1rem; color: var(--text); }
.platform-badge small { color: var(--text-muted); font-size: 0.8rem; }

/* ===== Docs CTA ===== */
.docs-cta {
  padding: 80px 0;
  background: var(--primary);
  color: #fff;
  text-align: center;
}
.docs-cta h2 { font-size: 1.75rem; margin-bottom: 12px; }
.docs-cta p { opacity: 0.85; margin-bottom: 28px; }
.docs-cta .btn-primary {
  background: #fff;
  color: var(--primary);
}
.docs-cta .btn-primary:hover { background: #f0f0f0; }

/* ===== Footer ===== */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .mockup-placeholder { width: 260px; height: 360px; }

  .features-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }

  .platform-badges { gap: 32px; }

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

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.5rem; }
}
