/* ═══════════════════════════════════════════════════════════════
   Zoory – Landing Page Styles
   Matching the Flutter app design system (Poppins + Outfit)
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Primary */
  --primary: #6A2C58;
  --primary-light: #8E4A7A;
  --primary-dark: #4A1D3D;

  /* Secondary */
  --secondary: #D4A574;
  --secondary-light: #E8C9A8;
  --secondary-dark: #B8864E;

  /* Neutrals */
  --background: #F5F0EB;
  --surface: #FAF8F5;
  --on-surface: #1C1B1F;
  --on-surface-muted: #5C5560;
  --outline: #CBC4CF;
  --outline-variant: #E8E0EC;

  /* Semantic */
  --success: #2E8B57;
  --error: #CF3B3B;

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(106, 44, 88, .08);
  --shadow-md: 0 4px 20px rgba(106, 44, 88, .12);
  --shadow-lg: 0 8px 40px rgba(106, 44, 88, .16);
}

/* ── Reset / Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--on-surface);
  background: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Utility ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}

.nav.scrolled {
  background: rgba(250, 248, 245, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.nav-brand span {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-muted);
  transition: color .25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width .25s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background .25s, transform .2s, box-shadow .25s;
}

.nav-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--on-surface);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(106, 44, 88, .06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 165, 116, .08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp .8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 18px;
  color: var(--on-surface-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-btn--apple {
  background: var(--on-surface);
  color: #fff;
}

.store-btn--google {
  background: var(--primary);
  color: #fff;
}

.store-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-btn-text small {
  font-size: 10px;
  font-weight: 400;
  opacity: .8;
  line-height: 1;
}

.store-btn-text strong {
  font-size: 16px;
  line-height: 1.2;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInUp .8s ease-out .2s both;
}

.hero-phone {
  position: relative;
  z-index: 2;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, var(--surface) 0%, #fff 100%);
  border-radius: 40px;
  border: 3px solid var(--outline-variant);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, .03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: var(--on-surface);
  border-radius: 12px;
}

.phone-mockup .app-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin-bottom: 20px;
  margin-top: 20px;
  box-shadow: var(--shadow-md);
}

.phone-mockup .app-name {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.phone-mockup .app-tagline {
  font-size: 13px;
  color: var(--on-surface-muted);
  text-align: center;
}

/* Floating decorations */
.float-card {
  position: absolute;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.float-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.float-card--vet {
  top: 15%;
  left: -10%;
  animation-delay: 0s;
}

.float-card--vet .icon {
  background: rgba(106, 44, 88, .1);
}

.float-card--chat {
  bottom: 25%;
  right: -5%;
  animation-delay: 1.5s;
}

.float-card--chat .icon {
  background: rgba(212, 165, 116, .15);
}

.float-card--doc {
  bottom: 8%;
  left: 0%;
  animation-delay: 3s;
}

.float-card--doc .icon {
  background: rgba(46, 139, 87, .1);
}

/* ── Features ─────────────────────────────────────────────── */
.features {
  padding: 100px 0;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--outline), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .overline {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--on-surface-muted);
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity .3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--outline);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-icon--primary {
  background: rgba(106, 44, 88, .1);
}

.feature-icon--secondary {
  background: rgba(212, 165, 116, .15);
}

.feature-icon--success {
  background: rgba(46, 139, 87, .1);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--on-surface-muted);
  line-height: 1.6;
}

/* ── Download CTA Section ─────────────────────────────────── */
.download-cta {
  padding: 100px 0;
  position: relative;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 165, 116, .15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, .05) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-card>* {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 17px;
  opacity: .85;
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .store-btn--apple {
  background: #fff;
  color: var(--on-surface);
}

.cta-buttons .store-btn--google {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
}

.cta-buttons .store-btn--google:hover {
  background: rgba(255, 255, 255, .25);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--outline-variant);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.footer-brand span {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
}

.footer-copy {
  font-size: 13px;
  color: var(--on-surface-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--on-surface-muted);
  transition: color .25s;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ── Language Switcher ────────────────────────────────────── */
.lang-switch {
  padding: 4px 12px;
  border: 1px solid var(--outline);
  border-radius: 100px;
  font-size: 13px !important;
  transition: background .25s, border-color .25s;
}

.lang-switch:hover {
  background: var(--outline-variant);
  border-color: var(--outline);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Subpages (privacy, terms, contact) ──────────────────── */
.page-content {
  padding: 120px 0 80px;
  min-height: calc(100vh - 120px);
}

.page-header {
  margin-bottom: 48px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
  transition: opacity .25s;
}

.back-link:hover {
  opacity: .7;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-date,
.page-subtitle {
  font-size: 15px;
  color: var(--on-surface-muted);
}

/* Prose (legal pages) */
.prose {
  max-width: 780px;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.prose h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--outline-variant);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.prose p {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--on-surface-muted);
}

.prose ul {
  margin-bottom: 12px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 6px;
  line-height: 1.6;
  color: var(--on-surface-muted);
}

.prose a {
  color: var(--primary);
  font-weight: 500;
  transition: opacity .25s;
}

.prose a:hover {
  opacity: .7;
}

.prose-warning {
  background: rgba(232, 163, 23, .08);
  border: 1px solid rgba(232, 163, 23, .25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-surface);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-icon--primary {
  background: rgba(106, 44, 88, .1);
  color: var(--primary);
}

.contact-icon--secondary {
  background: rgba(212, 165, 116, .15);
  color: var(--secondary-dark);
}

.contact-icon--success {
  background: rgba(46, 139, 87, .1);
  color: var(--success);
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 13px;
  color: var(--on-surface-muted);
  margin-bottom: 12px;
}

.contact-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: opacity .25s;
}

a.contact-link:hover {
  opacity: .7;
}

/* Contact form */
.contact-form-wrapper {
  max-width: 700px;
}

.contact-form-wrapper h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-form-wrapper>p {
  color: var(--on-surface-muted);
  margin-bottom: 32px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--on-surface);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  background: var(--background);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--on-surface);
  transition: border-color .25s, box-shadow .25s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106, 44, 88, .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s, transform .2s, box-shadow .25s;
}

.form-submit:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--outline-variant);
    animation: fadeInUp .3s ease-out;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }

  .float-card {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .prose {
    padding: 28px 20px;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .store-btn {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .store-btn {
    width: 100%;
    max-width: 280px;
  }
}