:root {
  --bg: #0b1020;
  --bg-soft: #121a33;
  --card: #16203d;
  --accent: #6c5ce7;
  --accent-2: #00d2ff;
  --text: #eef2ff;
  --muted: #9aa6c8;
  --border: rgba(255, 255, 255, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 80% -10%, #1b2a55 0%, var(--bg) 55%) fixed;
  color: var(--text);
  line-height: 1.6;
  position: relative;
  isolation: isolate;
}

body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .10; background-image: url("/pug-pattern.png?v=20261017-1");
  background-position: center top; background-size: min(520px, 100vw) auto; background-repeat: repeat;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 16, 32, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 20px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: 0.5px; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent-2); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 180ms ease; }
.nav a:hover { color: var(--text); }
.logo span { display: inline-block; transition: transform 220ms ease, text-shadow 220ms ease; }
.logo:hover span { transform: translateY(-2px); text-shadow: 0 0 16px rgba(0, 210, 255, 0.55); }

/* buttons */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
  position: relative; overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease, color 220ms ease, border-color 220ms ease; cursor: pointer;
}
.btn::after { content: ""; position: absolute; inset: 0 auto 0 -120%; width: 60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent); transform: skewX(-18deg); transition: left 500ms ease; pointer-events: none; }
.btn:hover::after { left: 140%; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: #2586f5; color: #fff; }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 8px 24px rgba(37, 134, 245, 0.28); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent-2); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* hero */
.hero { padding: 90px 0 60px; text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -1; width: min(70vw, 760px); aspect-ratio: 1; left: 50%; top: -68%; border-radius: 50%; background: radial-gradient(circle, rgba(108,92,231,.22), rgba(0,210,255,.08) 38%, transparent 70%); filter: blur(12px); animation: ambient-drift 12s ease-in-out infinite alternate; }
.hero-content { animation: hero-enter 700ms cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.15; margin-bottom: 18px; }
.hero h1 { animation: title-in 850ms 100ms cubic-bezier(.2,.7,.2,1) both; }
.subtitle { max-width: 720px; margin: 0 auto 30px; color: var(--muted); font-size: 18px; animation: hero-enter 750ms 180ms both; }
.pug-badge {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 auto 22px;
  padding: 8px 16px 8px 9px; text-align: left; border-radius: 999px;
  border: 1px solid rgba(0, 210, 255, .24);
  background: linear-gradient(110deg, rgba(22, 32, 61, .94), rgba(18, 26, 51, .78));
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18), 0 0 24px rgba(0, 210, 255, .07);
  animation: hero-enter 650ms 60ms both;
}
.pug-face {
  width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center;
  border-radius: 50%; font-size: 27px;
  background: radial-gradient(circle at 35% 28%, #ffe1b3, #a66e4e 72%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12);
}
.pug-badge-copy strong { display: block; color: var(--text); font-size: 14px; line-height: 1.3; }
.pug-badge-copy small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.pug-paw { color: var(--accent-2); font-size: 20px; opacity: .8; margin-left: 5px; }
.logo-paw { display: inline-block; margin-right: 5px; color: var(--accent-2); font-size: .82em; }

.hero-actions { display: flex; gap: 14px; justify-content: center; margin-bottom: 34px; }
.hero-actions .btn { animation: hero-enter 650ms 300ms both; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.badges span { background: var(--bg-soft); border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: transform 220ms ease, border-color 220ms ease, background 220ms ease; animation: badge-in 550ms both; }
.badges span:nth-child(2) { animation-delay: .12s; }
.badges span:nth-child(3) { animation-delay: .24s; }
.badges span:hover { transform: translateY(-3px); border-color: rgba(0, 210, 255, .45); background: #17213d; }

/* sections */
section { padding: 70px 0; }
h2 { text-align: center; font-size: 32px; margin-bottom: 40px; }
h2.reveal.is-visible { animation: title-in 650ms cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--reveal-delay, 0ms); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; position: relative;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.card:hover, .step:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(0, 0, 0, .2); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.045) 48%, transparent 70%); transform: translateX(-115%); opacity: 0; transition: transform 650ms ease, opacity 180ms ease; pointer-events: none; }
.card:hover::after { transform: translateX(115%); opacity: 1; }
.card h3 { margin-bottom: 8px; font-size: 18px; }
.card p { color: var(--muted); font-size: 15px; }

.tariffs { background: linear-gradient(180deg, transparent, rgba(108, 92, 231, 0.08)); }
.grid-tariffs { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tariff { text-align: center; padding: 32px 20px; }
.tariff.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px rgba(108, 92, 231, 0.25); }
.price { font-size: 30px; font-weight: 800; margin: 6px 0 18px; color: var(--text) !important; }
.ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  padding: 3px 14px; border-radius: 999px; font-size: 12px; color: #fff; font-weight: 700;
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; padding: 24px; text-align: center; }
.step { transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease; }
.step b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; font-size: 18px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; margin-bottom: 12px;
  transition: transform 260ms ease, box-shadow 260ms ease;
}
.step:hover b { transform: scale(1.1) rotate(-6deg); box-shadow: 0 0 20px rgba(0, 210, 255, .28); }
.step p { color: var(--muted); font-size: 15px; }

.faq { max-width: 720px; margin: 0 auto; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; transition: border-color 200ms ease, background 200ms ease; }
details[open] { border-color: rgba(108, 92, 231, .55); background: #192442; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--muted); margin-top: 10px; font-size: 15px; }
details[open] p { animation: faq-unfold 320ms ease both; }
summary::marker { color: var(--accent-2); }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; margin-bottom: 8px; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent-2); }
.copyright { color: var(--muted); font-size: 13px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 24px; }
.legal-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.legal-links a:hover { color: var(--accent-2); }
.legal-links a { transition: color 180ms ease, transform 180ms ease; }
.legal-links a:hover { transform: translateY(-2px); }
.legal-page { padding-top: 56px; padding-bottom: 50px; }
.legal-page > h1 { text-align: center; font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.legal-lead { max-width: 780px; margin: 0 auto 28px; color: var(--muted); text-align: center; }
.legal-card { margin-bottom: 24px; }
.legal-card h2 { text-align: left; font-size: 20px; margin: 26px 0 8px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { color: var(--muted); overflow-wrap: anywhere; }
.legal-page > p:last-child { text-align: center; }

/* Consistent accent outline for every tile-like element. */
.card:hover, .step:hover, details:hover, .badges span:hover {
  border-color: var(--accent-2);
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes title-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes badge-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ambient-drift {
  from { transform: translate(-52%, 0) scale(.92); opacity: .55; }
  to { transform: translate(-46%, 18px) scale(1.08); opacity: .9; }
}
@keyframes faq-unfold {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-enter {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible { animation: reveal-enter 560ms cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--reveal-delay, 0ms); }
.popular .ribbon { animation: ribbon-glow 3.2s ease-in-out infinite; }
@keyframes ribbon-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(0, 210, 255, 0); }
  50% { box-shadow: 0 0 16px rgba(0, 210, 255, .3); }
}

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

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; justify-content: center; }
  .nav a { font-size: 14px; }
  .hero { padding-top: 50px; }
}

/* Mobile-first refinements: comfortable navigation, readable cards, no overflow. */
html { scroll-padding-top: 100px; }
img, svg, video { max-width: 100%; height: auto; }
@media (max-width: 720px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .header-inner { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .header-inner > .logo { flex: 0 0 100%; font-size: 21px; }
  .header-inner > .btn { flex: 1 1 calc(50% - 5px); min-height: 44px; padding: 10px 12px; text-align: center; font-size: 14px; }
  .nav { order: 3; flex: 0 0 100%; width: 100%; margin: 0; justify-content: flex-start; gap: 20px; overflow-x: auto; white-space: nowrap; padding: 2px 0 5px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; min-height: 36px; display: inline-flex; align-items: center; }
  .hero { padding: 48px 0 38px; }
  .hero h1 { font-size: clamp(29px, 8vw, 42px); line-height: 1.12; }
  .subtitle { font-size: 16px; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; max-width: 440px; margin: 0 auto 25px; }
  .hero-actions .btn { display: block; width: 100%; min-height: 48px; padding: 12px 14px; text-align: center; }
  .badges { gap: 8px; }
  .badges span { max-width: 100%; padding: 7px 11px; font-size: 13px; }
  section { padding: 52px 0; }
  h2 { font-size: 27px; line-height: 1.2; margin-bottom: 24px; }
  .grid, .steps { gap: 14px; }
  .card, .step { padding: 19px; }
  .tariff { padding: 28px 14px 20px; }
  .tariff .btn { display: block; min-height: 44px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .legal-links { gap: 10px 16px; }
  .legal-links a { min-height: 40px; display: inline-flex; align-items: center; }
  .legal-page { padding-top: 34px; }
}
@media (max-width: 480px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .header-inner > .btn { font-size: 13px; padding-left: 8px; padding-right: 8px; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(28px, 8.3vw, 36px); }
  .hero h1 br { display: none; }
  .badges { align-items: stretch; flex-direction: column; }
  .badges span { text-align: center; }
  .grid-tariffs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tariff h3 { font-size: 16px; }
  .price { font-size: 25px; }
  .ribbon { font-size: 10px; padding: 3px 10px; }
  .card { padding: 17px; }
  details { padding: 14px; }
  .site-footer h2 { margin: 24px 0 14px; text-align: left; font-size: 22px; }
}
@media (max-width: 360px) {
  .grid-tariffs { grid-template-columns: 1fr; }
  .header-inner > .btn { flex-basis: 100%; }
}

/* Keep the complete site header on one horizontal line. */
.header-inner { flex-wrap: nowrap; gap: clamp(8px, 1.1vw, 16px); min-width: 0; }
.header-inner > .logo { flex: 0 0 auto; white-space: nowrap; }
.nav { flex: 1 1 auto; min-width: 0; gap: clamp(8px, 1vw, 16px); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: 0 0 auto; white-space: nowrap; }
.header-inner > .btn { flex: 0 0 auto; white-space: nowrap; padding-left: clamp(7px, .85vw, 14px); padding-right: clamp(7px, .85vw, 14px); font-size: clamp(11px, .85vw, 15px); }
@media (max-width: 720px) {
  .header-inner { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
  .header-inner > .logo { flex: 0 0 auto; font-size: 18px; }
  .nav { order: 0; flex: 0 0 auto; width: auto; margin: 0; gap: 12px; overflow: visible; }
  .header-inner > .btn { flex: 0 0 auto; min-height: 40px; padding: 8px; font-size: 11px; }
}

