/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS Variables ===== */
:root {
  --primary: #1B5E3B;
  --primary-light: #2E7D4F;
  --primary-dark: #0D3F25;
  --primary-rgb: 27, 94, 59;
  --accent: #4CAF50;
  --accent-light: #81C784;
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  padding: 10px 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--surface);
  z-index: 1001;
}

.navbar.scrolled .nav-brand { color: var(--primary); }

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-light);
  transition: width var(--transition);
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.navbar.scrolled .nav-links a { color: var(--text-secondary); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }
.navbar.scrolled .nav-links a::after { background: var(--primary); }

.nav-cta {
  background: rgba(255,255,255,0.15) !important;
  backdrop-filter: blur(8px);
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  transition: all var(--transition) !important;
}

.nav-cta:hover { background: #fff !important; color: var(--primary) !important; }
.nav-cta::after { display: none !important; }

.navbar.scrolled .nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.navbar.scrolled .nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .menu-toggle span { background: var(--text-primary); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(165deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(76,175,80,0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { color: #fff; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-badge span { color: var(--accent-light); }

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-light), #A5D6A7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.btn-green {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(27,94,59,0.3);
}

.btn-green:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(27,94,59,0.4);
}

.btn svg { width: 20px; height: 20px; }

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 280px;
}

.phone-frame {
  background: #111;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35), inset 0 0 0 2px rgba(255,255,255,0.1);
  position: relative;
  z-index: 2;
}

.phone-frame img {
  border-radius: 26px;
  width: 100%;
}

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(76,175,80,0.3) 0%, transparent 70%);
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stats .stat h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-light);
}

.hero-stats .stat p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
}

/* ===== Section Shared ===== */
section {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--primary);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

/* ===== Features ===== */
.features { background: var(--bg); }

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

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(var(--primary-rgb),0.08), rgba(var(--primary-rgb),0.03));
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Showcase ===== */
.showcase {
  background: linear-gradient(180deg, var(--bg) 0%, #f0f5f1 100%);
  text-align: center;
}

.showcase-scroll {
  display: flex;
  gap: 24px;
  margin-top: 56px;
  overflow-x: auto;
  padding: 20px 0 40px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.showcase-scroll::-webkit-scrollbar { display: none; }

.showcase-item {
  flex: 0 0 220px;
  scroll-snap-align: center;
  transition: transform var(--transition);
}

.showcase-item:hover { transform: scale(1.03); }

.showcase-item img {
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.showcase-item p {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===== Why Section ===== */
.why { background: var(--surface); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.why-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(var(--primary-rgb),0.1), rgba(var(--primary-rgb),0.03));
}

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(165deg, var(--primary-dark), var(--primary), var(--primary-light));
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(76,175,80,0.15) 0%, transparent 50%);
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.download-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.download-qr-link {
  display: block;
  transition: transform var(--transition);
}

.download-qr-link:hover {
  transform: scale(1.05);
}

.qr-image {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  object-fit: contain;
}

/* ===== Footer ===== */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand h3 img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 5px 0;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--accent-light); }

/* ===== Terms Page ===== */
.terms-page {
  padding-top: 100px;
  min-height: 100vh;
}

.terms-page .navbar { background: var(--surface); box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.terms-page .nav-brand { color: var(--primary); }
.terms-page .nav-links a { color: var(--text-secondary); }
.terms-page .nav-links a:hover { color: var(--primary); }
.terms-page .nav-links a::after { background: var(--primary); }
.terms-page .menu-toggle span { background: var(--text-primary); }
.terms-page .nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.terms-header {
  background: linear-gradient(135deg, rgba(var(--primary-rgb),0.06), rgba(var(--primary-rgb),0.02));
  padding: 48px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.terms-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.terms-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.terms-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--primary-dark);
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(var(--primary-rgb),0.1);
}

.terms-content h2:first-child { margin-top: 0; }

.terms-content p {
  margin-bottom: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.terms-content ul {
  margin: 12px 0 20px 24px;
  list-style: disc;
}

.terms-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.terms-content strong { color: var(--text-primary); }

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .phone-mockup { width: 240px; }
  .features-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-title { font-size: 2rem; }
  .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: -8px 0 32px rgba(0,0,0,0.1);
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    font-size: 1.1rem !important;
    color: var(--text-primary) !important;
  }

  .nav-links a::after { background: var(--primary) !important; }

  .nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
  }

  .menu-toggle { display: flex; }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { gap: 24px; }
  .hero-stats .stat h3 { font-size: 1.4rem; }
  .section-title { font-size: 1.7rem; }
  .cta-section h2 { font-size: 1.8rem; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .phone-mockup { width: 200px; }
}
