/* Medsathi – single page site (light theme)
   Sections: Base | Dev banner | Header | Hero | Stats | Buttons | Section common
   | Features | About | Screenshots | Legal | Contact | Footer | Animations */
:root {
  --theme: #16b785;
  --theme-dark: #129870;
  --theme-shadow: rgba(22, 183, 133, 0.33);
  --bg: #f8f8f8;
  --bg-card: #ffffff;
  --surface: #e2e2e2;
  --text: #1a1a1a;
  --text-muted: #555;
  --white: #ffffff;
  --radius: 13px;
  --radius-lg: 20px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Dev environment banner (shown only on dev domain / localhost) */
.dev-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #008080;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  padding: 0.35rem 1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.has-dev-banner .header {
  top: 2rem;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--theme);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--theme-dark);
}

/* Header (Money Manager: transparent over hero, solid after scroll) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface);
  transition: background var(--transition), border-color var(--transition);
}

.header .container {
  max-width: 1400px;
  padding-left: 1rem;
  padding-right: 1rem;
}
.header.top {
  background: transparent;
  border-bottom-color: transparent;
}
.header.top .nav a,
.header.top .logo-img {
  color: #fff;
}
.header.top .logo-img {
  filter: brightness(0) invert(1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 2.25rem;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
}
.nav a:hover {
  color: var(--theme);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1.25rem;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"]::before,
.nav-toggle[aria-expanded="true"]::after {
  background: var(--text);
}
.nav-toggle::before { top: 0.65rem; }
.nav-toggle::after { bottom: 0.65rem; }
.nav-toggle[aria-expanded="true"]::before {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"]::after {
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--surface);
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  /* Drawer always has white background: force dark text so it’s visible (overrides .header.top) */
  .nav a {
    color: var(--text) !important;
  }
  .nav a:hover {
    color: var(--theme) !important;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: block; }
}

/* ========== HERO (Money Manager–style bold block) ========== */
.hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-card) 50%, var(--bg) 100%);
}
.hero--bold {
  position: relative;
  padding: 5.5rem 0 5.5rem;
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-dark) 100%);
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 20% 50%, #fff 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, #fff 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, #fff 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 70px 70px;
  pointer-events: none;
}
.hero--bold .hero-inner {
  position: relative;
  z-index: 1;
}
.hero--bold .hero-title,
.hero--bold .hero-lead {
  color: #fff;
}
.hero-line1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  font-weight: 300;
  opacity: 0.9;
  color: #fff;
}
.hero-line2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  font-weight: 300;
  opacity: 0.9;
  color: #fff;
}
.hero--bold .hero-title {
  margin: 0.5rem 0 0.5rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
}
.hero--bold .hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 32ch;
  color: #fff;
}
.hero--bold .hero-gif {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}
/* App store buttons (URLs from content/urls.json) */
/* Hero store buttons: images only, no border/background */
.btn-store {
  display: inline-block;
  text-decoration: none;
  transition: opacity var(--transition);
}
.btn-store:hover {
  opacity: 0.9;
}
.hero-cta .btn-store + .btn-store {
  margin-left: 1rem;
}
.btn-store-img {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1:not(.hero-title) {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 28ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-app-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.12));
}
.hero-gif {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-cta .btn-store + .btn-store { margin-left: 0.75rem; }
  .btn-store-img { height: 44px; }
}

/* ========== RANK (Money Manager–style strip) ========== */
.stats,
.rank {
  padding: 2.5rem 0;
  background: var(--bg-card);
  border-top: 4px solid var(--text);
}
.stats-inner,
.rank .wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.rank .rank_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.rank .rank_item {
  text-align: center;
  color: var(--text);
  list-style: none;
}
.rank .rank_item .stat-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  opacity: 0.9;
}
.rank .rank_item b {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}
.rank .rank_item span {
  display: block;
  margin-top: 2px;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
}
.stats-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}
.stat-icon {
  font-size: 1.5rem;
  opacity: 0.9;
}
.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--theme) 0%, var(--theme-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px var(--theme-shadow);
}
.btn-primary:hover {
  box-shadow: 0 8px 24px var(--theme-shadow);
}
.btn-secondary {
  background: transparent;
  color: var(--theme);
  border: 2px solid var(--theme);
}
.btn-secondary:hover {
  background: rgba(22, 183, 133, 0.08);
}

/* Section common */
.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.section-title--center {
  text-align: center;
}
.section-lead {
  margin: 0 0 2.5rem;
  color: var(--text-muted);
  font-size: clamp(0.9375rem, 1.5vw, 1.5rem);
  font-weight: 300;
  max-width: 50ch;
}
.section-lead--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ========== FEATURES (Money Manager–style: circular tabs + center panel) ========== */
.features.section,
.section--features {
  min-height: 950px;
  padding-top: 90px;
  padding-bottom: 70px;
  background-color: var(--bg);
}
.features .wrap,
.features-wrap {
  position: relative;
  text-align: center;
}
.features .section-title {
  text-align: center;
  color: var(--text);
  font-size: 48px;
  font-weight: 700;
  line-height: 57px;
  letter-spacing: -0.2px;
}
.features .section-title-span {
  display: block;
  font-size: 24px;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 8px;
}

/* point_tab: circle of items around center */
.features .point_tab {
  position: absolute;
  top: 171px;
  left: 0;
  right: 0;
  z-index: 1;
  width: 528px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
}
.features .tab_list {
  position: absolute;
  width: 390px;
  min-height: 99px;
  cursor: pointer;
}
.features .tab_list:before {
  overflow: hidden;
  display: block;
  position: absolute;
  top: 0;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  box-sizing: border-box;
  background-color: var(--surface);
  background-size: 95px 95px;
  background-repeat: no-repeat;
  background-position: center center;
  content: '';
}
.features .tab_list:after {
  display: none;
  content: '';
}
/* Positions: n1–n4 left side, n5–n8 right side (8 items, Money Manager layout) */
.features .tab_list.n1 { top: 13px; left: -315px; }
.features .tab_list.n2 { top: 169px; left: -350px; }
.features .tab_list.n3 { top: 326px; left: -350px; }
.features .tab_list.n4 { top: 483px; left: -315px; }
.features .tab_list.n5 { top: 13px; right: -315px; }
.features .tab_list.n6 { top: 169px; right: -350px; }
.features .tab_list.n7 { top: 326px; right: -350px; }
.features .tab_list.n8 { top: 483px; right: -315px; }
.features .tab_list.n1:before,
.features .tab_list.n2:before,
.features .tab_list.n3:before,
.features .tab_list.n4:before { right: 0; left: auto; }
.features .tab_list.n5:before,
.features .tab_list.n6:before,
.features .tab_list.n7:before,
.features .tab_list.n8:before { left: 0; right: auto; }
.features .tab_list.n1:after,
.features .tab_list.n2:after,
.features .tab_list.n3:after,
.features .tab_list.n4:after { right: 0; left: auto; }
.features .tab_list.n5:after,
.features .tab_list.n6:after,
.features .tab_list.n7:after,
.features .tab_list.n8:after { left: 0; right: auto; }

.features .tab_list a {
  display: block;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  color: var(--text);
  letter-spacing: -0.48px;
  word-break: keep-all;
  text-decoration: none;
}
.features .tab_list.n1 a,
.features .tab_list.n2 a,
.features .tab_list.n3 a,
.features .tab_list.n4 a {
  padding-right: 120px;
  text-align: right;
}
.features .tab_list.n5 a,
.features .tab_list.n6 a,
.features .tab_list.n7 a,
.features .tab_list.n8 a {
  padding-left: 120px;
  text-align: left;
}
.features .tab_list a span {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.2px;
  color: var(--text-muted);
  font-weight: 300;
}
.features .tab_list.active:before {
  background-image: none;
  background-color: var(--theme);
  box-shadow: 0 5px 20px 0 var(--theme-shadow);
}
.features .tab_list.active a {
  color: var(--theme);
}
/* Icon in circle (emoji): use data-icon and show via JS, or use .point_icon span */
.features .tab_list .point_icon {
  position: absolute;
  top: 0;
  width: 95px;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  pointer-events: none;
}
.features .tab_list.n1 .point_icon,
.features .tab_list.n2 .point_icon,
.features .tab_list.n3 .point_icon,
.features .tab_list.n4 .point_icon { right: 0; left: auto; }
.features .tab_list.n5 .point_icon,
.features .tab_list.n6 .point_icon,
.features .tab_list.n7 .point_icon,
.features .tab_list.n8 .point_icon { left: 0; right: auto; }

/* Center panel */
.features .point_panel {
  position: relative;
  margin: 57px auto 0 auto;
  list-style: none;
  padding: 0;
  width: 528px;
  margin-left: auto;
  margin-right: auto;
}
.features .panel_list {
  display: none;
}
.features .panel_list.active {
  display: inline-block;
}
.features .panel_list img {
  width: 528px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive: stack tabs like MM */
@media (max-width: 1100px) {
  .features.section,
  .section--features {
    min-height: 795px;
    padding-top: 35px;
    padding-bottom: 70px;
  }
  .features .section-title {
    font-size: 25px;
    line-height: 32px;
  }
  .features .section-title-span {
    font-size: 15px;
    line-height: 20px;
    margin-top: 8px;
  }
  .features .point_tab {
    position: relative;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 700px;
    margin: 2rem auto 0;
    display: block;
    overflow: hidden;
  }
  .features .tab_list {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    float: left;
    width: 50%;
    min-height: 80px;
    padding-right: 30px;
    padding-left: 0;
    margin-top: 4px;
  }
  .features .tab_list:before {
    right: auto !important;
    left: 0 !important;
    width: 50px;
    height: 50px;
    background-size: 50px 50px;
  }
  .features .tab_list:after {
    display: none;
  }
  .features .tab_list .point_icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    left: 0 !important;
    right: auto !important;
  }
  .features .tab_list.n1,
  .features .tab_list.n2,
  .features .tab_list.n3,
  .features .tab_list.n4,
  .features .tab_list.n5,
  .features .tab_list.n6,
  .features .tab_list.n7,
  .features .tab_list.n8 {
    top: auto;
    left: auto;
    right: auto;
  }
  .features .tab_list a {
    padding: 2px 0 0 71px !important;
    padding-right: 0 !important;
    text-align: left !important;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -0.36px;
  }
  .features .tab_list a span {
    font-size: 14px;
    line-height: 20px;
    margin-top: 4px;
  }
  .features .point_panel {
    margin-top: 0;
    padding-top: 15px;
    width: 100%;
    max-width: 250px;
  }
  .features .panel_list img {
    width: 250px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .features.section,
  .section--features {
    min-height: 1082px;
  }
  .features .point_tab {
    width: 100%;
    max-width: 300px;
  }
  .features .tab_list {
    width: 100%;
    padding-right: 0;
    margin-top: 6px;
  }
  .features .tab_list a {
    padding-left: 64px !important;
  }
  .features .tab_list a span {
    font-size: 14px;
    letter-spacing: -0.1px;
  }
}

@media (max-width: 600px) {
  .features.section,
  .section--features {
    min-height: 800px;
  }
  .features .wrap {
    padding-left: 25px;
    padding-right: 25px;
  }
  .features .panel_list img {
    width: 200px;
  }
}

/* About */
.about {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--surface);
  border-bottom: 1px solid var(--surface);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.about-content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 52ch;
}
.about-content p:last-child {
  margin-bottom: 0;
}
.about-logo {
  max-width: 160px;
  height: auto;
  opacity: 0.9;
}
@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-content p { margin-left: auto; margin-right: auto; }
}

/* Screenshots */
.screenshots {
  padding: 4rem 0;
}
.screenshots-wrap {
  background: var(--bg-card);
  border: 1px solid var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.screenshot-slots {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.screenshot-slot {
  width: 180px;
  height: 320px;
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  overflow: hidden;
  position: relative;
}
.screenshot-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.screenshot-slot .slot-label {
  display: none;
  padding: 0.5rem;
}
.screenshot-slot .slot-label.show {
  display: block;
  position: absolute;
}
.screenshots-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.screenshots-hint code {
  background: var(--surface);
  padding: 0.2em 0.5em;
  border-radius: 6px;
  font-size: 0.8em;
}

/* Legal (T&C, Privacy) – standalone pages (no navbar) */
.legal-page {
  padding: 2rem 0 4rem;
  min-height: 60vh;
}
.legal-page .section-title {
  margin-bottom: 0.25rem;
}
.legal-updated {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.legal-content {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.legal-content h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}
.legal-content h3:first-child {
  margin-top: 0;
}
.legal-content p {
  margin: 0 0 0.75rem;
}
.legal-back {
  margin: 2.5rem 0 0;
}
.legal-back .btn {
  margin: 0;
}

/* ========== CONTACT (two-column: visual + form) ========== */
.contact {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--surface);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.contact-visual-img {
  max-width: 220px;
  width: 100%;
  height: auto;
  opacity: 0.9;
}
.contact-form-wrap .section-title {
  margin-bottom: 0.5rem;
}
.contact-intro {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
}
.contact-form {
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-muted);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--theme);
}
.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}
.contact-note {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .contact-visual { order: -1; }
}

/* ========== FOOTER (simple row: links · copyright) ========== */
.footer {
  padding: 3rem 0 2.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background:
    radial-gradient(circle at 12% -20%, rgba(22, 183, 133, 0.12), transparent 35%),
    radial-gradient(circle at 88% 0%, rgba(18, 152, 112, 0.08), transparent 32%),
    #ffffff;
}
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e3ece8;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(11, 34, 26, 0.06);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 1.5rem;
  text-align: left;
}

.footer-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  text-align: center;
}
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.6rem;
}
.footer-nav a {
  color: #33544a;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.footer-nav a:hover {
  color: var(--theme-dark);
  background: rgba(22, 183, 133, 0.11);
  border-color: rgba(22, 183, 133, 0.2);
}
.footer-sep {
  color: #9fb5ac;
  font-weight: 300;
  pointer-events: none;
}
.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: #617a70;
  letter-spacing: 0.01em;
}

.footer-logo {
  width: min(220px, 42vw);
  height: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .footer {
    padding-top: 2.4rem;
  }

  .footer-inner {
    border-radius: 14px;
    padding: 0.95rem 0.8rem;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
  }

  .footer-details {
    align-items: center;
  }

  .footer-nav a {
    font-size: 0.86rem;
    padding: 0.22rem 0.5rem;
  }

  .footer-logo {
    width: min(190px, 70vw);
  }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .hero-line1,
  .hero-line2,
  .hero h1,
  .hero-title,
  .hero-lead,
  .hero-cta,
  .hero-cta .btn-store,
  .hero-app-logo {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
  }
  .hero-line1 { animation-delay: 0.05s; }
  .hero-line2 { animation-delay: 0.1s; }
  .hero h1 { animation-delay: 0.1s; }
  .hero-title { animation-delay: 0.15s; }
  .hero-lead { animation-delay: 0.25s; }
  .hero-cta .btn-store:nth-child(1) { animation-delay: 0.35s; }
  .hero-cta .btn-store:nth-child(2) { animation-delay: 0.4s; }
  .hero-app-logo { animation-delay: 0.2s; }
  .feature-card:nth-child(1) { animation-delay: 0.1s; }
  .feature-card:nth-child(2) { animation-delay: 0.15s; }
  .feature-card:nth-child(3) { animation-delay: 0.2s; }
  .feature-card:nth-child(4) { animation-delay: 0.25s; }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
