/* ===== Custom Properties ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --purple: #7c3aed;
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --max-width: 1200px;
}

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

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

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

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--gray-600);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  -webkit-text-fill-color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger svg { width: 28px; height: 28px; color: var(--gray-700); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.5rem;
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--gray-700);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ===== Hero ===== */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  text-align: center;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--gray-600);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
  color: var(--white);
}

.hero-mockup {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}
.mockup-window {
  width: 100%;
  max-width: 720px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.mockup-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #eab308; }
.mockup-dot:nth-child(3) { background: #22c55e; }
.mockup-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  min-height: 260px;
}
.mockup-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.mockup-sidebar-item {
  height: 14px;
  border-radius: 4px;
  background: var(--gray-200);
}
.mockup-sidebar-item.active {
  background: var(--primary);
  opacity: 0.7;
}
.mockup-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mockup-line {
  height: 12px;
  border-radius: 4px;
  background: var(--gray-100);
}
.mockup-line:nth-child(1) { width: 60%; height: 18px; background: var(--gray-200); }
.mockup-line:nth-child(2) { width: 100%; }
.mockup-line:nth-child(3) { width: 85%; }
.mockup-line:nth-child(4) { width: 92%; }
.mockup-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.mockup-card {
  height: 60px;
  border-radius: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

/* ===== Section Shared ===== */
section { padding: 5rem 0; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 640px;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ===== Offline / USP ===== */
.offline-section {
  background: var(--gray-50);
}
.offline-header {
  text-align: center;
  margin-bottom: 3rem;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.usp-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.usp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.usp-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.usp-icon svg {
  width: 24px; height: 24px;
  color: var(--primary);
}
.usp-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.usp-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.feature-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg {
  width: 20px; height: 20px;
  color: var(--primary);
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ===== Pricing ===== */
.pricing-section { background: var(--gray-50); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}
.pricing-members {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.pricing-card ul {
  flex: 1;
  margin-bottom: 1.5rem;
}
.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-600);
  padding: 0.35rem 0;
}
.pricing-card li svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: #22c55e;
  margin-top: 2px;
}
.pricing-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--gray-500);
  font-size: 0.95rem;
}

.btn-outline {
  display: inline-flex;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-weight: 600;
  color: var(--gray-700);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-size: 0.95rem;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-gradient {
  display: inline-flex;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  background: var(--gradient);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 0.95rem;
}
.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  color: var(--white);
}

/* ===== Download CTA ===== */
.download-section {
  background: var(--gradient);
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}
.download-section .section-title {
  color: var(--white);
}
.download-section p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--primary);
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: var(--primary);
}
.download-hint {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 2.5rem 0;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-weight: 700;
  color: var(--white);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }

  .hero { padding: 6.5rem 0 3rem; }
  section { padding: 3.5rem 0; }

  .mockup-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .mockup-sidebar { display: none; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .usp-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
