:root {
    --bg: #0b1020;
    --bg-soft: #111827;
    --surface: #172033;
    --surface-raised: #1e293b;
    --text: #f8fafc;
    --text-muted: #cbd5e1;
    --text-subtle: #94a3b8;
    --gold: #facc15;
    --coral: #fb7185;
    --purple: #a78bfa;
    --cyan: #67e8f9;
    --green: #86efac;
    --border: rgba(226, 232, 240, 0.14);
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.35);
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --content-width: 1180px;
    --section-space: clamp(4.5rem, 9vw, 8rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body, button, a { font: inherit; }

a { color: var(--cyan); }

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

button { color: inherit; }

section, main { scroll-margin-top: 96px; }

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.7rem 1rem;
    border-radius: 0.6rem;
    background: var(--gold);
    color: #111827;
    font-weight: 800;
    transform: translateY(-150%);
    transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.container, .nav-container {
    width: min(var(--content-width), calc(100% - 2.5rem));
    margin-inline: auto;
}

.site-header { position: relative; z-index: 1000; }

.navbar {
    position: fixed;
    inset: 0 0 auto;
    padding: 1rem 0;
    background: rgba(11, 16, 32, 0.88);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled .navbar { background: rgba(11, 16, 32, 0.98); box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28); }

.nav-container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo {
    color: var(--gold);
    font-size: 1.45rem;
    font-weight: 850;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.nav-links { display: flex; align-items: center; gap: clamp(0.8rem, 2.2vw, 1.8rem); margin: 0; padding: 0; list-style: none; }

.nav-links a { color: var(--text-muted); font-size: 0.94rem; font-weight: 650; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.nav-cta, .nav-cta:hover {
    display: inline-block;
    padding: 0.62rem 1rem;
    border-radius: 999px;
    background: var(--coral);
    color: #180b13 !important;
    font-weight: 800 !important;
}

.mobile-menu-btn { display: none; padding: 0.5rem; border: 1px solid var(--border); border-radius: 0.65rem; background: var(--surface); cursor: pointer; }
.mobile-menu-btn span { display: block; width: 1.45rem; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--text); transition: transform 160ms ease, opacity 160ms ease; }
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: center;
    gap: clamp(2.5rem, 8vw, 7rem);
    width: min(var(--content-width), calc(100% - 2.5rem));
    min-height: min(900px, 100vh);
    margin-inline: auto;
    padding: 9rem 0 5rem;
}

.hero-content { max-width: 650px; }
.eyebrow { margin: 0 0 0.8rem; color: var(--cyan); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { margin: 0 0 0.7rem; color: var(--gold); font-size: clamp(3.6rem, 10vw, 7rem); font-weight: 900; letter-spacing: -0.08em; line-height: 0.95; }
.hero-subtitle { max-width: 32rem; margin: 0 0 1rem; color: var(--text); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 750; line-height: 1.15; }
.hero-description { max-width: 40rem; margin: 0 0 2rem; color: var(--text-muted); font-size: 1.08rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; overflow: hidden; padding: 0.8rem 1.2rem; border: 1px solid transparent; border-radius: 0.75rem; cursor: pointer; font-size: 0.98rem; font-weight: 800; text-decoration: none; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #180b13; }
.btn-primary:hover { background: #fda4af; }
.btn-secondary { border-color: var(--border); background: transparent; color: var(--text); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.ripple { position: absolute; width: var(--ripple-size); height: var(--ripple-size); left: var(--ripple-x); top: var(--ripple-y); border-radius: 50%; background: rgba(255, 255, 255, 0.28); pointer-events: none; animation: ripple 600ms ease-out forwards; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.hero-visual { display: grid; place-items: center; min-height: 520px; }
.phone-mockup { position: relative; width: min(280px, 70vw); aspect-ratio: 1 / 2; padding: 0.8rem; border: 2px solid rgba(226, 232, 240, 0.2); border-radius: 2.4rem; background: #050816; box-shadow: var(--shadow), 0 0 70px rgba(167, 139, 250, 0.18); transform: rotate(3deg); }
.phone-mockup::before { content: ""; position: absolute; top: 0.8rem; left: 50%; z-index: 2; width: 6rem; height: 1.35rem; border-radius: 999px; background: #050816; transform: translateX(-50%); }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 1.85rem; background: radial-gradient(circle at 30% 20%, #334155, transparent 30%), linear-gradient(160deg, #312e81, #0f172a 62%, #164e63); }
.screen-glow { position: absolute; display: block; border-radius: 50%; filter: blur(2px); opacity: 0.7; }
.screen-glow-one { top: 17%; left: 8%; width: 6rem; height: 6rem; background: rgba(250, 204, 21, 0.35); }
.screen-glow-two { right: -10%; bottom: 18%; width: 9rem; height: 9rem; background: rgba(251, 113, 133, 0.3); }
.screen-label { position: absolute; right: 1rem; bottom: 1rem; color: rgba(255,255,255,0.6); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.pet-demo { position: absolute; z-index: 1; display: block; font-size: clamp(2.2rem, 6vw, 3.3rem); filter: drop-shadow(0 0.5rem 1rem rgba(0,0,0,0.35)); animation: float 3.4s ease-in-out infinite; }
.pet-corgi { top: 28%; left: 18%; }
.pet-jelly { top: 51%; right: 20%; animation-delay: 1s; }
.pet-ghost { bottom: 26%; left: 28%; opacity: 0.85; animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-1rem) rotate(5deg); } }

.section { padding: var(--section-space) 0; }
.features, .how-it-works, .privacy { background: var(--bg-soft); }
.section > .container > .eyebrow, .section h2 { text-align: center; }
h2 { margin: 0 0 3.2rem; color: var(--text); font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.05em; line-height: 1.05; }
h3 { line-height: 1.2; }

.features-grid, .pets-grid, .privacy-grid { display: grid; gap: 1.2rem; }
.features-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card, .pet-card { padding: 1.8rem; border: 1px solid var(--border); border-radius: 1.2rem; background: var(--surface); transition: transform 180ms ease, border-color 180ms ease, opacity 450ms ease; }
.feature-card:hover, .pet-card:hover { transform: translateY(-5px); border-color: rgba(250, 204, 21, 0.55); }
.feature-icon, .privacy-icon { margin-bottom: 1rem; font-size: 2.5rem; }
.feature-card h3, .privacy-item h3 { margin: 0 0 0.55rem; color: var(--text); font-size: 1.15rem; }
.feature-card p, .privacy-item p { margin: 0; color: var(--text-muted); }

.pets { background: var(--bg); }
.pets-grid { grid-template-columns: repeat(4, 1fr); }
.pet-card { background: linear-gradient(145deg, var(--surface), #111827); text-align: center; }
.pet-card-featured { border-color: rgba(103, 232, 249, 0.5); box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.08), 0 20px 45px rgba(34, 211, 238, 0.08); }
.pet-avatar { display: inline-block; margin-bottom: 0.7rem; font-size: 3.3rem; animation: bounce 2.4s ease-in-out infinite; }
.pet-card:nth-child(2) .pet-avatar { animation-delay: 0.2s; } .pet-card:nth-child(3) .pet-avatar { animation-delay: 0.4s; } .pet-card:nth-child(4) .pet-avatar { animation-delay: 0.6s; } .pet-card:nth-child(5) .pet-avatar { animation-delay: 0.8s; } .pet-card:nth-child(6) .pet-avatar { animation-delay: 1s; } .pet-card:nth-child(7) .pet-avatar { animation-delay: 1.2s; } .pet-card:nth-child(8) .pet-avatar { animation-delay: 1.4s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.45rem); } }
.pet-card h3 { margin: 0 0 0.3rem; color: var(--gold); font-size: 1.3rem; }
.pet-title { margin: 0 0 0.85rem; color: var(--coral); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; }
.pet-description { min-height: 4.8rem; margin: 0 0 1rem; color: var(--text-muted); font-size: 0.92rem; }
.pet-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.8rem; color: var(--text-subtle); font-size: 0.76rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.step { padding: 1.2rem; text-align: center; transition: opacity 450ms ease, transform 450ms ease; }
.step-number { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin: 0 auto 1rem; border-radius: 50%; background: linear-gradient(135deg, var(--coral), var(--purple)); color: #180b13; font-size: 1.35rem; font-weight: 900; }
.step h3 { margin: 0 0 0.55rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

.download { background: var(--bg); text-align: center; }
.download-card { max-width: 850px; padding: clamp(2rem, 6vw, 4rem); border: 1px solid rgba(250, 204, 21, 0.24); border-radius: 1.6rem; background: radial-gradient(circle at 50% 0, rgba(167, 139, 250, 0.18), transparent 46%), var(--surface); box-shadow: var(--shadow); }
.download-card h2 { margin-bottom: 1rem; }
.download-card > p:not(.eyebrow):not(.download-note) { max-width: 42rem; margin: 0 auto 1.8rem; color: var(--text-muted); font-size: 1.05rem; }
.btn-google-play { gap: 0.8rem; background: var(--green); color: #052e16; }
.btn-google-play:hover { background: #bbf7d0; }
.play-icon { font-size: 1.5rem; }.btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }.small-text { font-size: 0.68rem; font-weight: 650; }.big-text { font-size: 1.12rem; font-weight: 900; }.download-note { margin: 1.2rem 0 0; color: var(--text-subtle); font-size: 0.82rem; }

.privacy-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 2rem; }.privacy-item { padding: 1.5rem; text-align: center; }.text-link { display: block; width: fit-content; margin-inline: auto; font-weight: 800; text-decoration: none; }.text-link:hover { color: var(--gold); }

.footer { padding: 4rem 0 1.5rem; border-top: 1px solid var(--border); background: #070b16; }.footer-content { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }.footer-section h3 { margin: 0 0 0.8rem; color: var(--gold); }.footer-section h4 { margin: 0 0 0.8rem; font-size: 0.9rem; }.footer-section p { margin: 0 0 0.8rem; color: var(--text-subtle); font-size: 0.9rem; }.footer-section ul { margin: 0; padding: 0; list-style: none; }.footer-section li { margin-bottom: 0.45rem; }.footer-section li a { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; }.footer-section li a:hover { color: var(--gold); }.footer-bottom { padding-top: 1.3rem; border-top: 1px solid var(--border); text-align: center; }.footer-bottom p { margin: 0; color: var(--text-subtle); font-size: 0.82rem; }

.legal-page { width: min(900px, calc(100% - 2.5rem)); margin-inline: auto; padding: 9rem 0 5rem; }.back-link { display: inline-block; margin-bottom: 2.5rem; color: var(--cyan); font-weight: 800; text-decoration: none; }.back-link::before { content: "← "; }.legal-page h1 { margin: 0 0 0.5rem; color: var(--gold); font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -0.06em; line-height: 1; }.legal-date { margin: 0 0 2.2rem; color: var(--text-subtle); font-size: 0.9rem; }.legal-page h2 { margin: 2.8rem 0 0.8rem; color: var(--text); font-size: 1.55rem; }.legal-page h3 { margin: 1.7rem 0 0.5rem; color: var(--text); font-size: 1.08rem; }.legal-page p, .legal-page li { color: var(--text-muted); }.legal-page p { max-width: 78ch; margin: 0 0 1rem; }.legal-page ul { max-width: 78ch; margin: 0 0 1rem; padding-left: 1.3rem; }.legal-page li { margin-bottom: 0.45rem; }.legal-page code { padding: 0.12rem 0.35rem; border-radius: 0.35rem; background: var(--surface-raised); color: var(--gold); font-size: 0.9em; }.legal-callout { margin: 0 0 2rem; padding: 1rem 1.2rem; border-left: 4px solid var(--cyan); border-radius: 0.7rem; background: rgba(103, 232, 249, 0.08); color: var(--text-muted); }.legal-callout strong { color: var(--text); }.language-toggle { display: flex; gap: 0.5rem; margin-bottom: 2rem; }.lang-btn { padding: 0.55rem 0.9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-muted); cursor: pointer; font-weight: 800; }.lang-btn:hover, .lang-btn.active { border-color: var(--coral); background: var(--coral); color: #180b13; }.lang-content[hidden] { display: none; }.legal-page hr { margin: 3.5rem 0; border: 0; border-top: 1px solid var(--border); }.legal-content { display: block; }

.feature-card, .pet-card, .step, .privacy-item { opacity: 0.84; transform: translateY(0); }.feature-card.is-visible, .pet-card.is-visible, .step.is-visible, .privacy-item.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: no-preference) { .feature-card, .pet-card, .step, .privacy-item { opacity: 0; transform: translateY(1.2rem); } .feature-card.is-visible, .pet-card.is-visible, .step.is-visible, .privacy-item.is-visible { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) { .features-grid, .pets-grid { grid-template-columns: repeat(2, 1fr); }.steps { grid-template-columns: repeat(2, 1fr); }.footer-content { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 760px) {
    .container, .nav-container, .hero, .legal-page { width: min(100% - 2rem, var(--content-width)); }
    .mobile-menu-btn { display: block; }
    .nav-links { position: absolute; top: calc(100% + 0.5rem); right: 1rem; left: 1rem; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 0.6rem; border: 1px solid var(--border); border-radius: 0.9rem; background: var(--surface); box-shadow: var(--shadow); }
    .nav-links.active { display: flex; }.nav-links li a { display: block; padding: 0.75rem; }.nav-cta { text-align: center; }
    .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 8rem; text-align: center; }.hero-content { margin-inline: auto; }.hero-description { margin-inline: auto; }.hero-buttons { justify-content: center; }.hero-visual { order: -1; min-height: 360px; }.phone-mockup { width: 210px; }
    .section { padding-block: 4.5rem; }.features-grid, .pets-grid, .privacy-grid, .steps { grid-template-columns: 1fr; }.pet-description { min-height: auto; }.footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) { .hero h1 { font-size: 3.5rem; }.hero-buttons .btn { width: 100%; }.footer-content { grid-template-columns: 1fr; }.legal-page h2 { font-size: 1.35rem; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; } }
