/* ===== Umadum Website — Global Styles ===== */

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

:root {
  --primary:  #89E0C3;
  --accent:   #0BE09D;
  --text:     #03AE78;
  --title:    #26614E;
  --error:    #D33628;
  --bg:       #ffffff;
  --bg-light: #f0faf6;
  --bg-dark:  #26614E;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-400: #ced4da;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --radius:   16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow:   0 4px 24px rgba(38,97,78,.08);
  --shadow-lg: 0 12px 48px rgba(38,97,78,.12);
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --max-w: 1120px;
}

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

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

img { max-width: 100%; display: block; }
a   { color: var(--text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--title); }

/* ---------- Utility ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Typography ---------- */
h1, h2, h3 { color: var(--title); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -.015em; }
h3 { font-size: 1.25rem; }
p  { color: var(--gray-600); }
.lead { font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--text));
  color: #fff;
  box-shadow: 0 4px 20px rgba(11,224,157,.3);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(11,224,157,.4); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--title);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--bg-light); color: var(--title); }

.btn-white {
  background: #fff;
  color: var(--title);
  box-shadow: var(--shadow);
}
.btn-white:hover { box-shadow: var(--shadow-lg); color: var(--title); }

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

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(38,97,78,.06);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 24px rgba(38,97,78,.08); }

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

.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.25rem; color: var(--title);
}
.navbar-brand img { width: 40px; height: 40px; }
.navbar-brand:hover { color: var(--title); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-weight: 500; font-size: .9rem; color: var(--gray-600);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--title); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--title);
  margin: 6px 0; transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-light) 50%, rgba(137,224,195,.15) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(11,224,157,.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(137,224,195,.15) 0%, transparent 70%);
  border-radius: 50%;
}

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

.hero-content { max-width: 540px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--radius-pill);
  background: rgba(11,224,157,.1);
  color: var(--text); font-weight: 600; font-size: .8rem;
  margin-bottom: 24px; letter-spacing: .03em; text-transform: uppercase;
}
.hero-badge span { font-size: 1rem; }
.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 1.15rem; margin-bottom: 36px; }

/* Location Search */
.location-search {
  display: flex; gap: 0;
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  max-width: 480px;
}
.location-search input {
  flex: 1; border: none; outline: none;
  padding: 14px 20px; font-size: 1rem;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--gray-800);
  min-width: 0;
}
.location-search input::placeholder { color: var(--gray-400); }
.location-search .btn { white-space: nowrap; padding: 14px 28px; }

/* Hero Visual */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-phone {
  width: 280px; height: 560px;
  background: var(--gray-800);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,255,255,.1);
  position: relative;
  overflow: hidden;
}
.hero-phone-inner {
  width: 100%; height: 100%;
  border-radius: 30px;
  background: linear-gradient(180deg, var(--bg-light) 0%, #fff 30%);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.hero-phone-statusbar {
  height: 44px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px;
}
.hero-phone-statusbar span { color: var(--title); font-weight: 600; font-size: .75rem; }
.hero-phone-content {
  flex: 1; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.mock-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.mock-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; }
.mock-dot.green { background: var(--accent); }
.mock-dot.mint  { background: var(--primary); }
.mock-dot.teal  { background: var(--title); }
.mock-line { height: 8px; border-radius: 4px; background: var(--gray-200); }
.mock-line.short { width: 60%; }
.mock-line.medium { width: 80%; }
.mock-line.accent { background: rgba(11,224,157,.2); }

.hero-float-badge {
  position: absolute;
  background: #fff; border-radius: var(--radius);
  padding: 12px 18px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .85rem; color: var(--title);
  animation: float 3s ease-in-out infinite;
}
.hero-float-badge.top-right { top: 40px; right: -20px; animation-delay: 0s; }
.hero-float-badge.bottom-left { bottom: 60px; left: -20px; animation-delay: 1.5s; }
.hero-float-badge svg { width: 24px; height: 24px; color: var(--accent); }

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

/* ---------- Sections ---------- */
section { padding: 100px 0; }

.section-header {
  text-align: center; max-width: 600px; margin: 0 auto 64px;
}
.section-header h2 { margin-bottom: 16px; }

/* Features */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(137,224,195,.2), rgba(11,224,157,.15));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; color: var(--text); }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: .92rem; }

/* App Download / CTA */
.cta-section {
  background: linear-gradient(135deg, var(--title) 0%, #1a4a3a 100%);
  border-radius: var(--radius);
  padding: 80px 48px;
  color: #fff;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(137,224,195,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,.75); margin-bottom: 36px; }
.cta-section .lead { color: rgba(255,255,255,.75); }

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

/* Tester Signup */
.tester-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.tester-box h3 { margin-bottom: 8px; text-align: center; }
.tester-box > p { text-align: center; margin-bottom: 28px; }

.tester-form { display: flex; flex-direction: column; gap: 16px; }
.tester-form input {
  padding: 14px 20px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 1rem;
  outline: none; transition: border-color var(--transition);
}
.tester-form input:focus { border-color: var(--accent); }
.tester-form .btn { justify-content: center; }
.tester-note { font-size: .82rem; color: var(--gray-400); text-align: center; margin-top: 8px; }

/* ---------- Contact Form ---------- */
.contact-section { background: var(--bg-light); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 48px; align-items: start;
}

.contact-info { padding: 16px 0; }
.contact-info h3 { margin-bottom: 16px; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 24px;
}
.contact-info-item svg { width: 22px; height: 22px; color: var(--text); flex-shrink: 0; margin-top: 2px; }
.contact-info-item p { font-size: .92rem; color: var(--gray-600); }
.contact-info-item strong { color: var(--gray-800); }

.contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; font-size: .88rem;
  color: var(--gray-800); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem; font-family: inherit;
  outline: none; transition: border-color var(--transition);
  background: #fff; color: var(--gray-800);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-success {
  display: none; text-align: center; padding: 24px;
}
.form-success svg { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 16px; }
.form-success h3 { margin-bottom: 8px; }

/* ---------- Legal Pages ---------- */
.legal-page { padding: 120px 0 80px; }
.legal-page .container { max-width: 800px; }
.legal-page h1 { margin-bottom: 12px; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.legal-page .legal-updated { color: var(--gray-400); font-size: .88rem; margin-bottom: 48px; }
.legal-content h2 { font-size: 1.3rem; margin: 40px 0 12px; color: var(--title); }
.legal-content h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.legal-content p  { margin-bottom: 14px; color: var(--gray-600); }
.legal-content ul { padding-left: 24px; margin-bottom: 14px; }
.legal-content li { margin-bottom: 6px; color: var(--gray-600); }
.legal-content a  { color: var(--text); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand span { font-weight: 700; font-size: 1.15rem; color: #fff; }
.footer p { font-size: .9rem; }
.footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--primary); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .location-search { max-width: 100%; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { 
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 24px;
    box-shadow: var(--shadow-lg); gap: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { padding: 100px 0 60px; min-height: auto; }
  section { padding: 64px 0; }

  .cta-section { padding: 48px 24px; }
  .tester-box { padding: 28px 20px; }
  .contact-form-card { padding: 24px 20px; }

  .btn { padding: 12px 24px; font-size: .9rem; }
}
