:root {
  --bg-color: #faf9f7;
  --text-primary: #1a1c1b;
  --text-secondary: #6b7280;
  --accent: #456259;
  --accent-light: #e3eadc;
  --card-bg: #ffffff;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.fade-in { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.fade-in-scale { animation: scaleIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.float-anim { animation: float 4s ease-in-out infinite; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: transparent;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-btn {
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  background: var(--accent-light);
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    padding: 6rem 5%;
    justify-content: space-between;
  }
}

.hero-content {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pill-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 99px;
  background: #e8f0ee;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.highlight {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.011em;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #3a534b;
}

/* Phone Mockup */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-frame {
  width: 320px;
  height: 650px;
  background: #ffffff;
  border-radius: 50px;
  padding: 12px;
  box-shadow: 0 50px 100px -20px rgba(50,50,93,0.25), 0 30px 60px -30px rgba(0,0,0,0.3), inset 0 -2px 6px 0 rgba(10,37,64,0.35);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #111;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.phone-screen {
  background: var(--bg-color);
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.1);
}

.app-ui {
  padding: 60px 24px 20px;
  flex: 1;
  position: relative;
  z-index: 2;
}

.app-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 4px;
}

.app-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.app-card {
  background: white;
  padding: 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  position: relative;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.app-chip {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 4px 8px;
  background: #e8f0ee;
  color: var(--accent);
  border-radius: 99px;
  margin-bottom: 8px;
}

.app-card h3 {
  font-size: 1rem;
  font-weight: 600;
  width: 70%;
}

.app-card-days {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 2px solid #f3f4f6;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.app-card-days small {
  font-size: 0.4rem;
  letter-spacing: 0.5px;
}

.app-hill {
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 40%;
  background: var(--accent-light);
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 20px;
}

.app-mascot {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto 6rem;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  background: white;
  padding: 2.5rem;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(227, 234, 220, 0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(69, 98, 89, 0.08), 0 4px 12px rgba(69, 98, 89, 0.04);
}

.feature:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--accent-light);
  color: var(--accent);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
}

.feature p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  position: relative;
}

/* Footer */
.footer { background: #f5f5f7; padding: 4rem 5%; border-top: 1px solid #d2d2d7; margin-top: 4rem; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.footer-logo { font-weight: 700; font-size: 1.25rem; color: var(--text-primary); }
.footer-left p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ── Admin Panel ─────────────────────────────── */
.hidden { display: none !important; }

.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.admin-modal {
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  animation: adminPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes adminPop {
  from { opacity: 0; transform: scale(0.88) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.admin-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.admin-lock-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.5rem;
}
.admin-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.admin-modal-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.admin-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  background: #f9fafb;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.admin-input:focus { border-color: var(--accent); }

.admin-error {
  font-size: 0.8rem;
  color: #dc2626;
  text-align: center;
  margin-bottom: 0.75rem;
}

.admin-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.admin-btn-primary {
  flex: 1;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.admin-btn-primary:hover { opacity: 0.85; }

.admin-btn-secondary {
  flex: 1;
  background: #f3f4f6;
  color: var(--text-primary);
  border: none;
  border-radius: 14px;
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.admin-btn-secondary:hover { background: #e5e7eb; }

.admin-stats {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0 0.25rem;
}
.admin-stat-card {
  flex: 1;
  background: var(--accent-light);
  border-radius: 18px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.admin-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.admin-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Download disclaimer & warning steps ── */
.download-disclaimer {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.85rem;
  text-align: center;
  opacity: 0.85;
  max-width: 300px;
}
.download-disclaimer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.download-disclaimer a:hover { text-decoration: underline; }

.dl-warning-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.25rem 0 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 14px;
}
.dl-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.dl-step-num {
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Accordion dropdowns ── */
.dl-accordion {
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.dl-accordion summary {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  background: #f9fafb;
  transition: background 0.15s;
}
.dl-accordion summary::-webkit-details-marker { display: none; }
.dl-accordion summary::after {
  content: '›';
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: transform 0.2s;
}
.dl-accordion[open] summary::after { transform: rotate(90deg); }
.dl-accordion summary:hover { background: #f3f4f6; }
.dl-accordion-body {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
