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

:root {
  --green:      #1FB86E;
  --green-dark: #18a060;
  --bg:         #080b09;
  --bg-2:       #0e1210;
  --text:       #f2f5f3;
  --muted:      rgba(242, 245, 243, 0.50);
  --border:     rgba(255, 255, 255, 0.07);
  --card:       rgba(255, 255, 255, 0.04);
  --radius:     20px;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ─── Nav ───────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(8, 11, 9, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s, padding 0.3s;
}

#navbar.scrolled {
  background: rgba(8, 11, 9, 0.96);
  padding: 14px 48px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-right a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-right a:hover { color: var(--text); }

.nav-cta {
  background: var(--green) !important;
  color: #000 !important;
  padding: 9px 22px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  letter-spacing: -0.01em !important;
  transition: opacity 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.88 !important;
  transform: translateY(-1px) !important;
  color: #000 !important;
}

/* ─── Hero ───────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 24px 72px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(31,184,110,0.22) 0%, transparent 65%),
    var(--bg);
}

#hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 35% at 50% 115%, rgba(31,184,110,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31,184,110,0.10);
  border: 1px solid rgba(31,184,110,0.22);
  color: var(--green);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(1.5); }
}

#hero h1 {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 24px;
}

#hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto 42px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* ─── App Store Button ───────────────────────────────────────────── */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #000;
  padding: 13px 26px;
  border-radius: 15px;
  text-decoration: none;
  font-family: var(--font);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 28px rgba(0,0,0,0.35);
}

.app-store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.45);
}

.app-store-btn .apple-icon { font-size: 1.65rem; line-height: 1; }

.app-store-btn .text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.app-store-btn .small { font-size: 0.67rem; opacity: 0.6; font-weight: 500; }
.app-store-btn .big   { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }

.btn-ghost {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  padding: 13px 4px;
}

.btn-ghost:hover { color: var(--text); }

/* ─── Hero Phone ─────────────────────────────────────────────────── */
.hero-phone-wrap { display: inline-block; }

.hero-phone {
  width: min(340px, 78vw);
  display: block;
  border-radius: 48px;
  filter: drop-shadow(0 52px 100px rgba(0,0,0,0.7));
  animation: floatPhone 5.5s ease-in-out infinite;
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-16px) rotate(0.4deg); }
}

/* ─── Stats Bar ──────────────────────────────────────────────────── */
#stats {
  padding: 56px 48px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 8px 24px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-item .number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-item .free-text { font-size: 2rem; }

.stat-item .label {
  font-size: 0.79rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.45;
}

/* ─── Feature Sections ───────────────────────────────────────────── */
.feature-section {
  padding: 120px 48px;
  position: relative;
  overflow: hidden;
}

/* Per-section bg colours that echo each screenshot's gradient */
#section-calendar  { background: #08090f; }
#section-totals    { background: #070e0b; }
#section-expenses  { background: #0f0805; }

/* Hairline separator that picks up each section's accent colour */
#section-calendar::before,
#section-totals::before,
#section-expenses::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
}

#section-calendar::before  { background: linear-gradient(90deg, transparent, rgba(80,100,220,0.3), transparent); }
#section-totals::before    { background: linear-gradient(90deg, transparent, rgba(31,184,110,0.25), transparent); }
#section-expenses::before  { background: linear-gradient(90deg, transparent, rgba(210,80,30,0.3), transparent); }

.f-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

.feature-section.reverse .f-container { flex-direction: row-reverse; }

.feature-copy { flex: 1; max-width: 500px; }

.feature-tag {
  display: inline-block;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.feature-copy h2 {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.02;
  color: #fff;
  margin-bottom: 22px;
}

.feature-copy p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 32px;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.feature-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-bullets li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-phone-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-phone {
  width: min(300px, 64vw);
  display: block;
  border-radius: 44px;
  filter: drop-shadow(0 36px 72px rgba(0,0,0,0.6));
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-phone:hover { transform: scale(1.025) translateY(-8px); }

/* ─── Features Grid ──────────────────────────────────────────────── */
#features {
  padding: 100px 48px;
  background: var(--bg-2);
}

.wide-container { max-width: 1140px; margin: 0 auto; }

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}

.tag {
  display: inline-block;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--bg-2);
  padding: 32px 28px;
  transition: background 0.25s;
}

.feature-card:hover { background: rgba(31,184,110,0.05); }

.feature-icon { font-size: 1.65rem; margin-bottom: 14px; }

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 0.855rem;
  color: var(--muted);
  line-height: 1.62;
}

/* ─── Testimonials ───────────────────────────────────────────────── */
#testimonials {
  padding: 100px 48px;
  background: var(--bg);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.25s;
}

.testi-card:hover { border-color: rgba(255,255,255,0.14); }

.stars { color: #f5c518; font-size: 0.85rem; margin-bottom: 16px; letter-spacing: 3px; }

.testi-text {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 24px;
  font-style: italic;
}

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

.testi-avatar {
  width: 38px; height: 38px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

.testi-name { font-size: 0.875rem; font-weight: 600; color: #fff; }
.testi-role { font-size: 0.775rem; color: var(--muted); margin-top: 2px; }

/* ─── Pricing ────────────────────────────────────────────────────── */
#pricing {
  padding: 100px 48px;
  background: var(--bg-2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: border-color 0.2s, transform 0.25s;
}

.pricing-card:hover { transform: translateY(-4px); }

.pricing-card.featured {
  border-color: var(--green);
  background: rgba(31,184,110,0.05);
}

.popular-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #000;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 3.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 10px;
}

.pricing-price span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.pricing-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.pricing-features li.no { opacity: 0.3; }
.pricing-features li.no::before { content: '–'; color: var(--muted); }

.btn-pricing {
  display: block;
  text-align: center;
  padding: 13px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-pricing.solid { background: var(--green); color: #000; }
.btn-pricing.solid:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-pricing.outline { border: 1px solid var(--border); color: var(--text); }
.btn-pricing.outline:hover { border-color: rgba(255,255,255,0.25); background: var(--card); }

/* ─── CTA ────────────────────────────────────────────────────────── */
#cta {
  padding: 130px 48px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(31,184,110,0.14) 0%, transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.cta-inner { max-width: 600px; margin: 0 auto; }

#cta h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.06;
  color: #fff;
  margin-bottom: 18px;
  margin-top: 14px;
}

.green-text { color: var(--green); }

#cta p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 40px;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
footer {
  background: #050806;
  border-top: 1px solid var(--border);
  padding: 64px 48px 32px;
}

.footer-grid {
  max-width: 1140px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 0.845rem;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ─── Scroll Reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity  0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.18s; }
.delay-2 { transition-delay: 0.36s; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .f-container { gap: 52px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  #navbar { padding: 16px 24px; }
  #navbar.scrolled { padding: 12px 24px; }
  .nav-right a:not(.nav-cta) { display: none; }

  .feature-section { padding: 88px 24px; }
  .f-container { flex-direction: column !important; text-align: center; gap: 52px; }
  .feature-copy { max-width: 100%; }
  .feature-bullets { align-items: center; }
  .feature-phone { width: min(280px, 68vw); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 20px; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:last-child,
  .stat-item:nth-last-child(2) { border-bottom: none; }

  .testi-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 600px) {
  #hero { padding: 104px 20px 52px; }
  #hero h1 { font-size: 2.9rem; }
  #hero p { font-size: 1rem; }
  #stats { padding: 40px 20px; }
  #features, #testimonials, #pricing { padding: 72px 20px; }
  #cta { padding: 88px 20px; }
  footer { padding: 48px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .hero-phone { border-radius: 36px; }
  .feature-phone { border-radius: 36px; }
}
