:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --line: #e6e9f0;
  --line-2: #d8dce6;
  --primary: #4f46e5;
  --primary-2: #4338ca;
  --primary-soft: #eef0ff;
  --brand: #c2186f;
  --brand-soft: #fdeef6;
  --ok: #16a34a;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04), 0 24px 48px -12px rgba(30, 27, 75, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
h1, h2, h3, h4 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; color: var(--text); letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 4px 10px -2px rgba(79, 70, 229, 0.45);
}
.brand-sub { color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--text-2); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--bg); color: var(--text); }
.lang {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 6px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; cursor: pointer;
}
.lang .ic { width: 16px; height: 16px; }
.lang:hover { border-color: var(--primary); color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid transparent; transition: background 0.15s, box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.6); }
.btn-primary:hover { background: var(--primary-2); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--text-2); color: var(--text); }
.btn-ghost .ic-heart { color: #e11d48; }
.btn-paypal { background: #ffc439; color: #111827; box-shadow: 0 6px 16px -6px rgba(234, 179, 8, 0.6); }
.btn-paypal:hover { background: #f5b800; color: #111827; }
.btn-paypal .ic { color: #b91c1c; fill: #b91c1c; }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 72px 0 80px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(124, 58, 237, 0.12), transparent 60%),
    radial-gradient(700px 380px at 0% 0%, rgba(79, 70, 229, 0.10), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-2); font-size: 13px; font-weight: 600;
}
.eyebrow .ic { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; margin: 18px 0 18px; font-weight: 700; }
.lead { font-size: 19px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero visual: dinos with the app mock in front */
.hero-visual { position: relative; padding: 0 0 70px 40px; }
.dinos { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow-lg); }

/* App mock */
.mock {
  position: absolute; left: 0; bottom: 0; width: 64%;
  background: #1e1f22; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.2); transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
}
.mock .mock-body { height: 190px; }
.mock .mock-pane { gap: 6px; padding: 8px; }
.mock .mock-side { gap: 4px; padding: 8px; }
.mock .mock-site { padding: 4px 6px; }
.mock-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: #2b2d31; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: 10px; color: #8a8f98; font-size: 12px; }
.mock-body { display: flex; height: 320px; }
.mock-side { width: 30%; background: #26282c; border-right: 1px solid #3a3d43; padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; }
.mock-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mock-logo img { width: 20px; height: 20px; }
.mock-logo b { height: 8px; width: 60%; border-radius: 4px; background: #4a4e56; }
.mock-group { height: 6px; width: 40%; border-radius: 3px; background: #3e4148; margin: 6px 0 2px; }
.mock-site { padding: 6px 8px; border-radius: 6px; display: flex; flex-direction: column; gap: 4px; }
.mock-site b { height: 7px; width: 70%; border-radius: 4px; background: #5b6069; }
.mock-site s { height: 5px; width: 50%; border-radius: 3px; background: #3e4148; }
.mock-site.active { background: rgba(61, 139, 253, 0.18); }
.mock-site.active b { background: #8ab6ff; }
.mock-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mock-tabs { display: flex; gap: 6px; padding: 10px 10px 0; border-bottom: 1px solid #3a3d43; }
.mock-tabs span { width: 46px; height: 20px; border-radius: 5px 5px 0 0; }
.mock-tabs span::after { content: ""; display: block; height: 6px; width: 60%; margin: 7px auto 0; border-radius: 3px; background: #4a4e56; }
.mock-tabs span.on { background: #1e1f22; border: 1px solid #3a3d43; border-bottom: none; }
.mock-tabs span.on::after { background: #9aa0aa; }
.mock-panes { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #3a3d43; }
.mock-pane { background: #1e1f22; padding: 10px; display: flex; flex-direction: column; gap: 9px; }
.mock-head { height: 18px; border-radius: 5px; background: #2b2d31; margin-bottom: 2px; }
.mock-pane .row { display: flex; align-items: center; gap: 8px; }
.mock-pane .row i { width: 12px; height: 10px; border-radius: 2px; background: #5b6069; flex: none; }
.mock-pane .row.f i { background: #d9a43a; }
.mock-pane .row b { height: 6px; border-radius: 3px; background: #4a4e56; }
.mock-pane .row em { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; }
.mock-pane .row em.up { background: #e0a43a; }
.mock-pane .row em.new { background: #4caf7a; }
.mock-progress { height: 26px; background: #26282c; border-top: 1px solid #3a3d43; padding: 9px 10px; }
.mock-progress span { display: block; height: 8px; width: 62%; border-radius: 4px; background: linear-gradient(90deg, #3d8bfd, #7aa9ff); }

/* Values */
.values { padding: 40px 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { display: flex; gap: 14px; align-items: flex-start; }
.value-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--primary); box-shadow: var(--shadow-sm); flex: none; }
.value strong { display: block; font-size: 16px; }
.value p { color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding: 40px 0 72px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 8px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Product */
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 36px; }
.product-top { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.collapsible .product-top { cursor: pointer; transition: padding-bottom 0.3s ease, border-color 0.3s ease; }
.collapsible.collapsed .product-top { padding-bottom: 0; border-bottom-color: transparent; }
.collapsible { position: relative; }
.product-toggle {
  position: absolute; right: 18px; bottom: 18px;
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.3s ease;
}
.collapsible:not(.collapsed) { padding-bottom: 66px; }
.collapsible { transition: padding-bottom 0.3s ease; }
.product-toggle:hover, .collapsible:has(.product-top:hover) .product-toggle { color: var(--primary); border-color: var(--primary); }
.collapsible:not(.collapsed) .product-toggle { transform: rotate(180deg); }
.product-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.3s ease; }
.product-body-inner { overflow: hidden; min-height: 0; }
.collapsed .product-body { grid-template-rows: 0fr; }
.no-anim, .no-anim * { transition: none !important; }
.product-icon { display: block; margin-top: 3px; filter: drop-shadow(0 10px 14px rgba(110, 15, 69, 0.35)); }
.product-title { display: flex; align-items: center; gap: 12px; }
.product-title h3 { font-size: 28px; line-height: 1; margin: 0; }
.product-tagline strong { color: var(--text); font-weight: 600; }
.chip-zap { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.chip.chip-zap .ic { color: #ea580c; fill: #fdba74; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-new { background: var(--brand-soft); color: var(--brand); }
.product-tagline { color: var(--muted); margin-top: 6px; max-width: 560px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.chip .ic { width: 15px; height: 15px; color: var(--muted); }
.product-dl { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; min-width: 240px; }
.dl-meta { font-size: 13px; color: var(--muted); }
.dl-alt { font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ic-sm { width: 15px; height: 15px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; padding: 32px 0 8px; }
.f-ic {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  background: var(--primary-soft); color: var(--primary);
}
.feature:nth-child(4n + 2) .f-ic { background: #ecfdf5; color: #059669; }
.feature:nth-child(4n + 3) .f-ic { background: #fff7ed; color: #ea580c; }
.feature:nth-child(4n + 4) .f-ic { background: var(--brand-soft); color: var(--brand); }
.feature h4 { margin: 0 0 6px; font-size: 16px; }
.feature p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 14px 16px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); }
.notice .ic { color: var(--primary); margin-top: 2px; }
.notice p { font-size: 14px; color: var(--text-2); }

.signing { margin-top: 16px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.signing h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; color: var(--text); }
.signing h4 .ic { width: 18px; height: 18px; color: var(--primary); }
.signing p { margin: 6px 0 0; }
.signing ul { margin: 8px 0 0; padding-left: 20px; }

.soon {
  display: flex; gap: 14px; align-items: center; margin-top: 24px; padding: 22px 26px;
  border: 1.5px dashed var(--line-2); border-radius: 16px; color: var(--muted);
}
.soon .ic { width: 24px; height: 24px; color: var(--primary); }
.soon strong { color: var(--text); display: block; }

/* Donate */
.donate { padding: 0 0 88px; }
.donate-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center;
  text-align: center; padding: 48px; border-radius: 24px; color: #fff;
  background:
    radial-gradient(600px 260px at 15% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #c2186f 100%);
  box-shadow: var(--shadow-lg);
}
.donate-dino {
  display: block; width: 100%; height: auto; border-radius: 20px;
  border: 4px solid rgba(255, 255, 255, 0.25); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45);
  transform: rotate(-3deg);
}
.donate-card h2 { color: #fff; font-size: clamp(28px, 3.4vw, 36px); margin: 0 0 10px; }
.donate-card p { max-width: 560px; margin: 0 auto 28px; color: rgba(255, 255, 255, 0.88); font-size: 17px; }
.donate-form { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.amounts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.amounts label { position: relative; cursor: pointer; }
.amounts label input { position: absolute; opacity: 0; pointer-events: none; }
.amounts label span, .amount-custom {
  display: inline-grid; place-items: center; height: 44px; min-width: 64px; padding: 0 14px;
  border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.1);
  color: #fff; font: inherit; font-weight: 600; font-size: 16px; transition: background 0.15s, border-color 0.15s;
}
.amounts label:hover span { background: rgba(255, 255, 255, 0.2); }
.amounts label input:checked + span { background: #fff; color: var(--primary-2); border-color: #fff; }
.amounts label input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.amount-custom { width: 110px; text-align: center; -moz-appearance: textfield; }
.amount-custom::-webkit-outer-spin-button, .amount-custom::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-custom::placeholder { color: rgba(255, 255, 255, 0.7); }
.amount-custom:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, 0.2); }
.amount-custom.on { background: #fff; color: var(--primary-2); border-color: #fff; }
.currency { position: relative; }
.currency-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px 0 14px; cursor: pointer;
  border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.1);
  color: #fff; font: inherit; font-weight: 600; font-size: 16px; transition: background 0.15s, border-color 0.15s;
}
.currency-btn:hover, .currency-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.2); border-color: #fff; }
.currency-btn .ic { width: 16px; height: 16px; transition: transform 0.15s; }
.currency-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.currency-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 5; min-width: 100%;
  list-style: none; margin: 0; padding: 4px; border-radius: 10px; background: #fff;
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.45); text-align: left;
}
.currency-menu li { padding: 8px 14px; border-radius: 7px; color: var(--text); font-weight: 600; cursor: pointer; }
.currency-menu li:hover, .currency-menu li.active { background: var(--primary-soft); }
.currency-menu li[aria-selected="true"] { color: var(--primary-2); }
.btn-paypal { border: none; cursor: pointer; font-family: inherit; }
.donate-msg { max-width: 520px; margin: 0 auto 24px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.95); color: var(--text); font-weight: 600; }
.donate-msg.err { color: #b91c1c; }
.donate-meta { display: block; margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.75); }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.legal { padding: 48px 0 72px; }
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); margin: 16px 0 4px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p { color: var(--text-2); margin: 0 0 12px; overflow-wrap: anywhere; }
.legal .muted { color: var(--muted); font-size: 14px; }
.legal-list { color: var(--text-2); margin: 0 0 12px; padding-left: 20px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }

.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--primary); }
.brand-sm { font-size: 16px; }
.brand-sm .brand-mark { width: 26px; height: 26px; font-size: 14px; border-radius: 7px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .mock { transform: none; }
  .donate-card { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; }
  .donate-dino { max-width: 260px; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .product-top { grid-template-columns: auto 1fr; }
  .product-dl { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 56px; }
  .nav a { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .product { padding: 24px; }
  .product-top { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero-visual { padding: 0 0 50px 16px; }
  .mock { width: 80%; }
  .mock .mock-body { height: 150px; }
  .btn-lg { width: 100%; }
  .product-dl { align-items: stretch; }
}
