@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,600&display=swap');

:root {
  --bg: #f6f4ee;
  --surface: #fffefa;
  --surface-2: #ece9df;
  --text: #15221c;
  --muted: #657069;
  --line: rgba(21, 34, 28, .12);
  --forest: #10281f;
  --forest-2: #193d30;
  --gold: #e3b85f;
  --gold-soft: #f4dfad;
  --shadow: 0 24px 70px rgba(15, 38, 29, .12);
  --radius: 24px;
}

[data-theme="dark"] {
  --bg: #0d1511;
  --surface: #142019;
  --surface-2: #1b2a22;
  --text: #f3f1e8;
  --muted: #a7b2ac;
  --line: rgba(255, 255, 255, .1);
  --shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Manrope, system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

.ambient { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(100px); opacity: .14; pointer-events: none; z-index: -1; }
.ambient-one { background: #dcb45d; top: -180px; right: -100px; }
.ambient-two { background: #4a8d70; bottom: 10%; left: -220px; }
.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header { width: min(1240px, calc(100% - 28px)); margin: 14px auto 0; padding: 12px 14px 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: sticky; top: 12px; z-index: 30; background: color-mix(in srgb, var(--surface) 84%, transparent); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 40px rgba(15, 38, 29, .08); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--forest); color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: -.5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.brand > span:last-child { display: grid; line-height: 1.1; }
.brand strong { font-size: 14px; letter-spacing: -.2px; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; }
.desktop-nav { display: flex; gap: 28px; font-size: 13px; font-weight: 600; }
.desktop-nav a { color: var(--muted); transition: color .2s; }
.desktop-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.button { border: 0; border-radius: 13px; padding: 11px 17px; cursor: pointer; font-weight: 700; font-size: 13px; transition: transform .2s, box-shadow .2s, background .2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #10281f; background: var(--gold); box-shadow: 0 10px 24px rgba(227, 184, 95, .24); }
.button.primary:hover { background: #ecc76f; box-shadow: 0 13px 28px rgba(227, 184, 95, .34); }
.button.ghost { color: var(--text); background: transparent; }
.button.glass { color: var(--text); background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--line); }
.button.large { padding: 15px 22px; border-radius: 15px; }
.button.full { width: 100%; padding: 14px; }
.icon-button, .avatar-button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); background: transparent; cursor: pointer; }
.avatar-button { background: var(--forest); color: var(--gold); font-weight: 800; }

.hero { min-height: 710px; display: grid; grid-template-columns: 1.06fr .94fr; gap: 70px; align-items: center; padding-block: 84px 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #92722f; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #3b9b6e; box-shadow: 0 0 0 5px rgba(59,155,110,.12); }
.hero h1 { margin: 22px 0 24px; font-size: clamp(48px, 6vw, 77px); line-height: 1.02; letter-spacing: -4px; max-width: 740px; }
.hero h1 em { color: #a47e32; font-family: 'Playfair Display', serif; font-weight: 600; }
.hero-copy > p { max-width: 620px; font-size: 17px; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.trust-row { display: flex; gap: 42px; margin-top: 52px; }
.trust-row div { display: grid; }
.trust-row strong { font-size: 20px; }
.trust-row span { color: var(--muted); font-size: 11px; }
.hero-visual { position: relative; padding: 30px 0 40px 25px; }
.image-frame { position: relative; border-radius: 34px; overflow: hidden; aspect-ratio: .84; background: var(--forest); box-shadow: var(--shadow); }
.image-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,25,18,.76) 100%); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.verified-chip { position: absolute; z-index: 2; top: 22px; left: 22px; padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,.9); color: #173d2f; font-size: 11px; font-weight: 800; backdrop-filter: blur(10px); }
.profile-float { position: absolute; z-index: 2; left: 25px; right: 25px; bottom: 24px; color: white; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.profile-float div { display: grid; }
.profile-float small { opacity: .76; margin-bottom: 4px; }
.profile-float strong { font-size: 22px; }
.status-dot { width: 8px; height: 8px; background: #50c990; border-radius: 50%; display: inline-block; margin-bottom: 9px; }
.score { padding: 9px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; background: rgba(255,255,255,.12); backdrop-filter: blur(12px); font-weight: 800; }
.floating-card { position: absolute; z-index: 4; padding: 15px 18px; border: 1px solid rgba(255,255,255,.6); border-radius: 18px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 18px 45px rgba(15,38,29,.16); backdrop-filter: blur(16px); display: grid; }
.floating-card span { color: #91712f; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.floating-card strong { font-size: 15px; }
.floating-card small { color: var(--muted); font-size: 10px; }
.health-card { left: -35px; bottom: 92px; }
.lineage-card { right: -34px; top: 90px; }

.search-band { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 76%, transparent); }
.search-inner { padding-block: 28px; }
.search-box { max-width: 850px; margin: auto; padding: 8px 8px 8px 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 35px rgba(15,38,29,.06); }
.search-box span { color: var(--muted); font-size: 25px; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 14px; }
.quick-filters { margin-top: 14px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.quick-filters button, .generation-control button { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; }
.quick-filters button:hover { color: var(--text); border-color: rgba(164,126,50,.45); }

.section-block { padding-block: 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-heading h2 { margin: 8px 0 0; max-width: 720px; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; letter-spacing: -2px; }
.text-button, .link-button { border: 0; color: #987631; background: transparent; cursor: pointer; font-weight: 800; }
.dog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dog-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); transition: transform .25s, box-shadow .25s; cursor: pointer; }
.dog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.dog-image { height: 235px; position: relative; overflow: hidden; background: var(--surface-2); }
.dog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dog-card:hover .dog-image img { transform: scale(1.035); }
.dog-badge { position: absolute; top: 14px; left: 14px; padding: 7px 10px; border-radius: 999px; color: #173d2f; background: rgba(255,255,255,.9); font-size: 9px; font-weight: 800; }
.favorite { position: absolute; top: 13px; right: 13px; width: 32px; height: 32px; border-radius: 50%; border: 0; color: #21362c; background: rgba(255,255,255,.86); cursor: pointer; }
.favorite.active { color: #b74f51; }
.dog-content { padding: 18px; }
.dog-content small { color: var(--muted); }
.dog-content h3 { margin: 4px 0 12px; font-size: 17px; }
.dog-meta { padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.dog-meta strong { color: var(--text); }

.pedigree-section { padding-block: 100px; background: var(--forest); color: #f5f1e5; }
.light-heading .eyebrow { color: var(--gold); }
.light-heading h2 { color: white; }
.generation-control { padding: 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; display: flex; gap: 2px; }
.generation-control button { color: rgba(255,255,255,.55); border: 0; }
.generation-control button.active { color: #10281f; background: var(--gold); }
.pedigree-canvas { min-width: 930px; min-height: 445px; padding: 36px; border: 1px solid rgba(255,255,255,.1); border-radius: 26px; background: rgba(255,255,255,.035); display: grid; grid-template-columns: 1fr 70px 1fr 70px 1.1fr; align-items: stretch; gap: 0; overflow: hidden; }
.pedigree-column { display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.pedigree-node { min-height: 84px; padding: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.06); display: flex; gap: 11px; align-items: center; cursor: pointer; transition: background .2s, border .2s; }
.pedigree-node:hover { background: rgba(255,255,255,.1); border-color: rgba(227,184,95,.45); }
.pedigree-node img { width: 58px; height: 58px; border-radius: 11px; object-fit: cover; }
.pedigree-node div { min-width: 0; display: grid; }
.pedigree-node strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.pedigree-node span { color: rgba(255,255,255,.53); font-size: 9px; }
.pedigree-node.root { border-color: rgba(227,184,95,.6); background: rgba(227,184,95,.12); }
.connector { opacity: .28; background: linear-gradient(90deg, transparent 0 49%, rgba(255,255,255,.7) 49% 51%, transparent 51%) center / 100% 100% no-repeat; position: relative; }
.connector::before, .connector::after { content: ''; position: absolute; left: 50%; width: 50%; height: 25%; border-block: 1px solid white; }
.connector::before { top: 18%; }
.connector::after { bottom: 18%; }
.pedigree-note { margin-top: 16px; color: rgba(255,255,255,.52); font-size: 11px; text-align: center; }

.feature-layout { padding-block: 110px; display: grid; grid-template-columns: 1fr .92fr; gap: 90px; align-items: center; }
.feature-copy h2 { margin: 14px 0 20px; font-size: clamp(36px, 4vw, 54px); line-height: 1.08; letter-spacing: -2.6px; }
.feature-copy > p { color: var(--muted); max-width: 600px; }
.feature-list { margin-top: 35px; display: grid; gap: 18px; }
.feature-list article { display: flex; gap: 18px; }
.feature-list article > span { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #896923; background: var(--gold-soft); font-size: 10px; font-weight: 800; }
.feature-list strong { font-size: 14px; }
.feature-list p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.community-card { padding: 16px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.post-head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 12px; }
.mini-avatar { width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--gold); font-size: 10px; font-weight: 800; }
.post-head div:nth-child(2) { flex: 1; display: grid; }
.post-head strong { font-size: 12px; }
.post-head span { color: var(--muted); font-size: 9px; }
.post-head button { border: 0; background: transparent; color: var(--muted); }
.community-card > p { font-size: 12px; }
.community-card > img { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 18px; }
.post-stats { display: flex; justify-content: space-between; padding: 13px 4px 0; color: var(--muted); font-size: 10px; }

.events-section { padding-block: 95px; background: var(--surface-2); }
.event-grid { display: grid; gap: 12px; }
.event-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 22px; }
.event-date { padding-right: 20px; border-right: 1px solid var(--line); display: grid; text-align: center; }
.event-date strong { font-size: 27px; line-height: 1; }
.event-date span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.tag { color: #8b6c29; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.event-grid h3 { margin: 3px 0; font-size: 16px; }
.event-grid p { margin: 0; color: var(--muted); font-size: 11px; }
.circle-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); color: var(--text); background: transparent; cursor: pointer; }

.cta-section { margin-block: 100px; padding: 55px 60px; border-radius: 30px; color: white; background: linear-gradient(120deg, #10281f, #1d4938); display: flex; align-items: center; justify-content: space-between; gap: 30px; box-shadow: var(--shadow); }
.cta-section .eyebrow { color: var(--gold); }
.cta-section h2 { margin: 9px 0 6px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -2px; }
.cta-section p { margin: 0; color: rgba(255,255,255,.6); }
.site-footer { padding-top: 65px; color: rgba(255,255,255,.76); background: #0a1712; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 60px; padding-bottom: 55px; }
.footer-brand { color: white; }
.footer-grid > div { display: grid; align-content: start; gap: 10px; }
.footer-grid p { max-width: 330px; color: rgba(255,255,255,.42); font-size: 12px; }
.footer-grid > div:not(:first-child) strong { color: white; margin-bottom: 9px; font-size: 12px; }
.footer-grid a:not(.brand) { color: rgba(255,255,255,.45); font-size: 11px; }
.footer-bottom { padding-block: 20px; border-top: 1px solid rgba(255,255,255,.09); display: flex; justify-content: space-between; color: rgba(255,255,255,.35); font-size: 9px; }

.auth-dialog { width: min(440px, calc(100% - 28px)); padding: 30px; border: 1px solid var(--line); border-radius: 26px; color: var(--text); background: var(--surface); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.auth-dialog::backdrop { background: rgba(7,19,14,.64); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; top: 13px; right: 13px; width: 34px; height: 34px; border-radius: 50%; border: 0; color: var(--muted); background: var(--surface-2); cursor: pointer; font-size: 20px; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand > div { display: grid; }
.auth-brand > div span { color: var(--muted); font-size: 10px; }
.auth-tabs { margin: 24px 0 16px; padding: 4px; border-radius: 13px; background: var(--surface-2); display: grid; grid-template-columns: 1fr 1fr; }
.auth-tabs button { padding: 9px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.auth-tabs button.active { color: var(--text); background: var(--surface); box-shadow: 0 4px 14px rgba(15,38,29,.08); }
.google-button { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: var(--surface); cursor: pointer; font-weight: 700; }
.google-button span { margin-right: 8px; color: #4285f4; font-weight: 800; }
.or { margin: 18px 0; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.or span { height: 1px; flex: 1; background: var(--line); }
.auth-dialog form { display: grid; gap: 13px; }
.auth-dialog label:not(.checkbox) { display: grid; gap: 6px; font-size: 10px; font-weight: 700; }
.auth-dialog input { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; color: var(--text); background: var(--bg); }
.auth-dialog input:focus { border-color: rgba(164,126,50,.7); box-shadow: 0 0 0 3px rgba(227,184,95,.13); }
.form-row { display: flex; justify-content: space-between; align-items: center; }
.checkbox { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.checkbox input { width: 14px; }
.link-button { padding: 0; font-size: 9px; }
.form-message { min-height: 18px; margin: 0; color: #b34c4c; text-align: center; font-size: 10px; }
.auth-terms { display: block; margin-top: 14px; color: var(--muted); text-align: center; font-size: 8px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 11px 15px; border-radius: 12px; color: white; background: #183b2e; box-shadow: 0 16px 40px rgba(0,0,0,.18); font-size: 11px; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 65px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-visual { width: min(600px, 100%); margin-inline: auto; padding-left: 0; }
  .dog-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-layout { grid-template-columns: 1fr; gap: 50px; }
  .community-card { max-width: 650px; margin: auto; transform: none; }
  .pedigree-section .section-shell { overflow-x: auto; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { display: none; }
}

@media (max-width: 680px) {
  .section-shell { width: min(100% - 24px, 1180px); }
  .site-header { width: calc(100% - 16px); top: 7px; margin-top: 7px; padding-left: 12px; }
  .brand small, .header-actions .ghost, .site-header .brand > span:last-child { display: none; }
  .site-header .brand-mark { width: 38px; height: 38px; }
  .hero { min-height: auto; padding-block: 65px 55px; }
  .hero h1 { letter-spacing: -2.7px; }
  .hero-actions { flex-direction: column; }
  .trust-row { gap: 22px; }
  .trust-row strong { font-size: 16px; }
  .hero-visual { padding-bottom: 70px; }
  .image-frame { border-radius: 25px; }
  .floating-card { transform: scale(.9); }
  .health-card { left: -8px; bottom: 25px; }
  .lineage-card { right: -8px; top: 45px; }
  .search-box { padding-left: 12px; }
  .search-box .button { padding-inline: 13px; }
  .dog-grid { grid-template-columns: 1fr; }
  .dog-image { height: 300px; }
  .section-block, .pedigree-section, .feature-layout, .events-section { padding-block: 70px; }
  .section-heading { align-items: start; }
  .section-heading .text-button { display: none; }
  .light-heading { display: grid; }
  .generation-control { width: max-content; }
  .event-grid article { grid-template-columns: 60px 1fr; gap: 14px; }
  .event-grid .circle-arrow { display: none; }
  .cta-section { margin-block: 65px; padding: 38px 25px; text-align: center; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(3) { display: none; }
  .footer-bottom { display: grid; gap: 4px; text-align: center; }
  .auth-dialog { padding: 25px 20px; }
}
