:root {
  --navy: #1A1A2E;
  --navy-light: #2D2D44;
  --gold: #F5C518;
  --gold-light: #FFF3CC;
  --gold-dark: #D4A80E;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --text: #1A1A2E;
  --text-secondary: #64748B;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.05);
  --max-width: 1140px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--navy); }
.nav-brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--gray-600);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a:focus { color: var(--navy); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px;
  background: var(--navy); color: var(--white);
  font-size: 14px; font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover { background: var(--navy-light); }
.nav-cta:active { transform: scale(0.97); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  transition: all 0.3s; margin: 5px 0;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ── */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(175deg, var(--white) 60%, var(--gray-50) 100%);
}
.hero-inner { display: flex; align-items: center; gap: 60px; }
.hero-text { flex: 1; }
.hero-text h1 {
  font-size: 48px; font-weight: 800; line-height: 1.15;
  color: var(--navy); margin-bottom: 20px; letter-spacing: -0.5px;
}
.hero-text h1 .accent { color: var(--gold-dark); }
.hero-text p {
  font-size: 19px; color: var(--gray-600); line-height: 1.7;
  margin-bottom: 36px; max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; border-radius: var(--radius);
  background: var(--navy); color: var(--white);
  font-size: 16px; font-weight: 700; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--navy-light); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; border-radius: var(--radius);
  background: transparent; color: var(--navy);
  font-size: 16px; font-weight: 600; border: 2px solid var(--gray-200);
  cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--navy); background: var(--gray-50); }

.hero-visual { flex: 0 0 340px; display: flex; justify-content: center; }
.app-mockup {
  width: 280px; height: 560px;
  background: var(--navy);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
  position: relative;
}
.app-mockup-inner {
  width: 100%; height: 100%;
  background: var(--gray-50);
  border-radius: 26px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.mockup-status {
  height: 44px; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 13px; font-weight: 600;
}
.mockup-body { flex: 1; padding: 16px; }
.mockup-greeting { font-size: 11px; color: var(--gray-400); margin-bottom: 4px; }
.mockup-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.mockup-card {
  background: var(--white); border-radius: 12px; padding: 14px;
  box-shadow: var(--shadow); margin-bottom: 10px;
}
.mockup-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mockup-pet-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gold-light); display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.mockup-pet-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.mockup-pet-meta { font-size: 10px; color: var(--gray-400); }
.mockup-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mockup-tag {
  font-size: 9px; font-weight: 600; padding: 4px 8px; border-radius: 6px;
}
.mockup-tag.green { background: #ECFDF5; color: #059669; }
.mockup-tag.blue { background: #EFF6FF; color: #2563EB; }
.mockup-tag.amber { background: #FFFBEB; color: #D97706; }
.mockup-reminder {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: 10px; padding: 10px 12px;
  box-shadow: var(--shadow); margin-bottom: 6px;
}
.mockup-reminder-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.mockup-reminder-icon.vacc { background: #DBEAFE; }
.mockup-reminder-icon.med { background: #FEF3C7; }
.mockup-reminder-text { font-size: 11px; font-weight: 600; color: var(--navy); }
.mockup-reminder-sub { font-size: 9px; color: var(--gray-400); }
.mockup-tab-bar {
  height: 52px; background: var(--white);
  border-top: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-around;
  font-size: 9px; color: var(--gray-400); font-weight: 600;
}
.mockup-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mockup-tab.active { color: var(--navy); }
.mockup-tab-icon { font-size: 16px; }

/* ── FEATURES ── */
.features { padding: 100px 0; background: var(--gray-50); }
.section-label {
  display: inline-block; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold-dark);
  margin-bottom: 12px;
}
.section-title {
  font-size: 36px; font-weight: 800; color: var(--navy);
  margin-bottom: 16px; letter-spacing: -0.3px;
}
.section-subtitle {
  font-size: 18px; color: var(--gray-500); max-width: 560px;
  margin-bottom: 48px; line-height: 1.6;
}
.section-header { text-align: center; }
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--gray-200);
  transition: box-shadow 0.3s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
}
.feature-icon.records { background: #DBEAFE; }
.feature-icon.vaccines { background: #D1FAE5; }
.feature-icon.meds { background: #FEF3C7; }
.feature-icon.docs { background: #E0E7FF; }
.feature-icon.reminders { background: #FCE7F3; }
.feature-icon.pets { background: #FEE2E2; }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--gray-500); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.how-it-works { padding: 100px 0; }
.steps { display: flex; gap: 40px; justify-content: center; margin-top: 16px; }
.step { flex: 1; max-width: 300px; text-align: center; position: relative; }
.step-number {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--navy); color: var(--gold);
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--gray-500); line-height: 1.6; }
.step-connector {
  position: absolute; top: 28px; left: calc(50% + 40px);
  width: calc(100% - 40px); height: 2px;
  background: var(--gray-200);
}
.step:last-child .step-connector { display: none; }

/* ── TRUST ── */
.trust {
  padding: 80px 0;
  background: var(--navy);
  color: var(--white);
}
.trust-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.trust-inner .section-label { color: var(--gold); }
.trust-inner .section-title { color: var(--white); }
.trust-inner p { font-size: 17px; color: var(--gray-300); line-height: 1.7; }
.trust-points {
  display: flex; gap: 32px; margin-top: 40px;
  justify-content: center; flex-wrap: wrap;
}
.trust-point {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--gray-200);
}
.trust-point-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(245,197,24,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

/* ── DOWNLOAD ── */
.download { padding: 100px 0; background: var(--gray-50); }
.download-inner { text-align: center; }
.download-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px; border-radius: var(--radius);
  background: var(--navy); color: var(--white);
  font-size: 15px; font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  border: none; cursor: pointer;
}
.store-btn:hover { background: var(--navy-light); }
.store-btn:active { transform: scale(0.97); }
.store-btn.coming-soon {
  background: var(--gray-300); color: var(--gray-600); cursor: default;
}
.store-btn.coming-soon:hover { background: var(--gray-300); }
.store-btn-icon { font-size: 24px; }
.store-btn-text { text-align: left; }
.store-btn-label { font-size: 11px; font-weight: 400; opacity: 0.8; display: block; }
.store-btn-name { font-size: 16px; font-weight: 700; display: block; }

/* ── FOOTER ── */
.footer {
  padding: 60px 0 32px;
  background: var(--navy); color: var(--gray-400);
}
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-brand-name {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 12px;
}
.footer-brand-name img { width: 32px; height: 32px; border-radius: 8px; }
.footer-brand p { font-size: 14px; line-height: 1.6; }
.footer-links h4 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--gray-300); margin-bottom: 16px;
}
.footer-links a {
  display: block; font-size: 14px; color: var(--gray-400);
  padding: 4px 0; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--gray-700);
  margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; flex-wrap: wrap; gap: 12px;
}

/* ── LEGAL PAGES ── */
.legal-page { padding: 120px 0 80px; }
.legal-page h1 {
  font-size: 36px; font-weight: 800; color: var(--navy); margin-bottom: 8px;
}
.legal-page .last-updated,
.legal-page .legal-date { font-size: 14px; color: var(--gray-400); margin-bottom: 40px; }
.legal-content { max-width: 760px; }
.legal-content h2 {
  font-size: 22px; font-weight: 700; color: var(--navy);
  margin-top: 40px; margin-bottom: 12px;
}
.legal-content h3 {
  font-size: 18px; font-weight: 600; color: var(--navy);
  margin-top: 28px; margin-bottom: 8px;
}
.legal-content p {
  font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 16px;
}
.legal-content ul {
  list-style: disc; padding-left: 24px; margin-bottom: 16px;
}
.legal-content li {
  font-size: 15px; color: var(--gray-600); line-height: 1.8;
  margin-bottom: 6px;
}
.legal-content a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.legal-content a:hover { color: var(--gold-dark); }

/* ── CONTACT PAGE ── */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; max-width: 600px; }
.contact-card {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px;
}
.contact-card-icon { font-size: 28px; margin-bottom: 12px; }
.contact-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--gray-500); }
.contact-card a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.contact-card a:hover { color: var(--gold-dark); }
.contact-content { max-width: 760px; }
.contact-icon { font-size: 36px; margin-bottom: 16px; }
.contact-link {
  display: inline-block; font-size: 18px; font-weight: 700;
  color: var(--navy); text-decoration: underline; margin-top: 8px;
}
.contact-link:hover { color: var(--gold-dark); }
.contact-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 40px;
}
.contact-info-item {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 24px;
}
.contact-info-item h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.contact-info-item p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.contact-developer {
  margin-top: 40px; font-size: 15px; color: var(--gray-500);
}
.legal-header { margin-bottom: 40px; }

/* ── FOCUS STATES ── */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    padding: 16px 24px; gap: 12px;
    box-shadow: var(--shadow-lg);
  }
  .nav-toggle { display: block; }

  .hero { padding: 110px 0 60px; }
  .hero-inner { flex-direction: column; gap: 40px; text-align: center; }
  .hero-text h1 { font-size: 34px; }
  .hero-text p { font-size: 17px; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { flex: none; }
  .app-mockup { width: 240px; height: 480px; }

  .section-title { font-size: 28px; }
  .section-subtitle { font-size: 16px; }

  .features-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }

  .steps { flex-direction: column; align-items: center; }
  .step-connector { display: none; }

  .trust-points { flex-direction: column; align-items: center; }

  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .contact-cards { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 28px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .download-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 280px; justify-content: center; }
}
