/* =========================================================
   Moonlight Digital
   ========================================================= */

:root {
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --text: #13203f;
  --muted: #4d5a7c;
  --surface: rgba(255, 255, 255, 0.66);
  --surface-solid: #ffffff;
  --border: rgba(19, 32, 63, 0.09);
  --accent: #ff7440;
  --accent-2: #ffae42;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 116, 64, 0.12);
  --shadow: 0 24px 60px -24px rgba(28, 64, 128, 0.28);
  --shadow-lg: 0 40px 100px -30px rgba(28, 64, 128, 0.35);

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --orbit-time: 1.5s;

  /* Island palette (day) */
  --grass-top: #93e27c;
  --grass-bottom: #4cb15a;
  --grass-edge: #3a8a47;
  --rock-top: #cf9f75;
  --rock-bottom: #6f4c39;
  --rock-line: rgba(70, 40, 25, 0.35);
  --wall: #fff8ec;
  --wall-side: #f0dcc0;
  --roof: #ff7a59;
  --roof-edge: #e3583b;
  --chimney: #b65a40;
  --door: #8a5a3c;
  --window: #bfe6ff;
  --leaf: #41b05c;
  --leaf-2: #35a050;
  --leaf-hi: #86e08c;
  --trunk: #85563a;
  --water: #a6e0ff;
  --flower-1: #ff8fb1;
  --flower-2: #fff27a;
  --cloud: #ffffff;

  color-scheme: light;
}

[data-theme="dark"] {
  --text: #eef0ff;
  --muted: #a9b0d8;
  --surface: rgba(20, 25, 62, 0.6);
  --surface-solid: #161b44;
  --border: rgba(255, 255, 255, 0.09);
  --accent: #ffd36b;
  --accent-2: #ffb36b;
  --accent-ink: #1a1640;
  --accent-soft: rgba(255, 211, 107, 0.12);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, 0.7);

  --grass-top: #3f7d68;
  --grass-bottom: #24574b;
  --grass-edge: #1a3f39;
  --rock-top: #5d4c6c;
  --rock-bottom: #221a3a;
  --rock-line: rgba(0, 0, 0, 0.35);
  --wall: #dcd9f2;
  --wall-side: #b7b2db;
  --roof: #a9566f;
  --roof-edge: #8a4159;
  --chimney: #6e3e55;
  --door: #4e3550;
  --window: #ffd76a;
  --leaf: #2d6c57;
  --leaf-2: #255d4b;
  --leaf-hi: #4a8f74;
  --trunk: #4a3346;
  --water: #8fb0ff;
  --flower-1: #c97ba6;
  --flower-2: #d8d08a;
  --cloud: #3a4278;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #dff0ff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[data-theme="dark"] body { background: #0a0f2a; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Smooth color crossfade (fallback when View Transitions are not supported) */
html.theme-fade *,
html.theme-fade *::before,
html.theme-fade *::after {
  transition: background-color 0.8s var(--ease), color 0.8s var(--ease), border-color 0.8s var(--ease),
    fill 0.8s var(--ease), stroke 0.8s var(--ease), stop-color 0.8s var(--ease), box-shadow 0.8s var(--ease) !important;
}

/* Circular reveal for theme change */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* Keep the reveal crisp: colors snap inside the circle, only the sky bodies animate */
.vt-running .sky-day,
.vt-running .sky-night,
.vt-running .island *,
.vt-running .cloud,
.vt-running .tt-track {
  transition: none !important;
}

/* ---------- Sky ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.sky-day,
.sky-night {
  position: absolute;
  inset: 0;
  transition: opacity 0.8s var(--ease);
}

.sky-day {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 236, 190, 0.9), transparent 60%),
    linear-gradient(180deg, #a8d6ff 0%, #cfe8ff 38%, #eaf5ff 70%, #fff5e8 100%);
}

.sky-night {
  opacity: 0;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(120, 110, 255, 0.25), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(255, 120, 200, 0.12), transparent 60%),
    linear-gradient(180deg, #060a1f 0%, #0e1538 45%, #1d1846 100%);
}

[data-theme="dark"] .sky-day { opacity: 0; }
[data-theme="dark"] .sky-night { opacity: 1; }

.stars {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease) 0.2s;
}

[data-theme="dark"] .stars { opacity: 1; }

.star {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  animation: twinkle var(--d, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

.shooting-star {
  position: absolute;
  top: 12%;
  left: 70%;
  width: 140px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), transparent);
  transform: rotate(-24deg);
  opacity: 0;
}

[data-theme="dark"] .shooting-star { animation: shoot 9s ease-in 3s infinite; }

@keyframes shoot {
  0%, 88% { opacity: 0; transform: translate(0, 0) rotate(-24deg) scaleX(0.2); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translate(-420px, 190px) rotate(-24deg) scaleX(1); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1160px;
  margin: 16px auto 0;
  padding: 10px 10px 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow);
  width: calc(100% - 32px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2a2f7a, #4b3c9e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 16px -6px rgba(60, 50, 160, 0.6);
}

.brand-mark svg { width: 20px; height: 20px; fill: #ffd36b; }

.brand-name span {
  font-weight: 500;
  margin-left: 4px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: relative;
  width: 70px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

.tt-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(180deg, #6fbdff, #a8dbff);
  box-shadow: inset 0 2px 6px rgba(0, 40, 100, 0.25);
  transition: background 0.6s var(--ease);
}

[data-theme="dark"] .tt-track {
  background: linear-gradient(180deg, #0d1235, #2a2468);
}

.tt-cloud {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.6s var(--ease), opacity 0.4s;
}

.tt-cloud.c1 { width: 22px; height: 8px; right: 8px; top: 20px; }
.tt-cloud.c1::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  left: 5px;
  top: -5px;
}
.tt-cloud.c2 { width: 14px; height: 6px; right: 22px; top: 11px; opacity: 0.8; }

[data-theme="dark"] .tt-cloud { transform: translateY(26px); opacity: 0; }

.tt-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: translateY(-14px) scale(0.4);
  transition: transform 0.6s var(--ease), opacity 0.4s;
}

.tt-star.s1 { left: 12px; top: 10px; }
.tt-star.s2 { left: 22px; top: 22px; width: 2px; height: 2px; }
.tt-star.s3 { left: 32px; top: 9px; width: 2px; height: 2px; }

[data-theme="dark"] .tt-star { opacity: 1; transform: none; }
[data-theme="dark"] .tt-star.s2 { transition-delay: 0.08s; }
[data-theme="dark"] .tt-star.s3 { transition-delay: 0.16s; }

.tt-knob {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3b0, #ffc93c 60%, #ffae1a);
  box-shadow: 0 0 0 4px rgba(255, 210, 80, 0.25), 0 0 18px rgba(255, 190, 40, 0.8);
  transition: transform 0.6s var(--ease-out), background 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.theme-toggle:hover .tt-knob { box-shadow: 0 0 0 6px rgba(255, 210, 80, 0.3), 0 0 24px rgba(255, 190, 40, 0.9); }

[data-theme="dark"] .tt-knob {
  transform: translateX(32px) rotate(-200deg);
  background: radial-gradient(circle at 35% 35%, #ffffff, #e6e3f7 55%, #c4c0e3);
  box-shadow: 0 0 0 4px rgba(200, 195, 255, 0.15), 0 0 16px rgba(200, 195, 255, 0.55);
}

[data-theme="dark"] .theme-toggle:hover .tt-knob {
  box-shadow: 0 0 0 6px rgba(200, 195, 255, 0.2), 0 0 22px rgba(200, 195, 255, 0.7);
}

.tt-crater {
  position: absolute;
  border-radius: 50%;
  background: rgba(130, 125, 175, 0.45);
  opacity: 0;
  transform: scale(0);
  transition: transform 0.5s var(--ease-out) 0.15s, opacity 0.3s 0.15s;
}

.tt-crater.k1 { width: 9px; height: 9px; top: 15px; left: 14px; }
.tt-crater.k2 { width: 5px; height: 5px; top: 8px; left: 8px; }
.tt-crater.k3 { width: 3px; height: 3px; top: 6px; left: 18px; opacity: 0; }

[data-theme="dark"] .tt-crater.k3 { opacity: 0.7; }

[data-theme="dark"] .tt-crater { opacity: 1; transform: scale(1); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  font: 600 16px/1 var(--font-body);
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px -10px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), filter 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn:active { transform: translateY(0) scale(0.98); }

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover svg { transform: translateX(3px); }

.btn-small { padding: 11px 18px; font-size: 15px; }

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover { box-shadow: var(--shadow); }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
main { overflow-x: clip; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  min-height: calc(100vh - 90px);
  min-height: calc(100svh - 90px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #33c46b;
}

.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2s var(--ease-out) infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3); opacity: 0; }
}

h1 {
  font-size: clamp(38px, 5.4vw, 70px);
  font-weight: 800;
}

.underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 8px;
}

.underline svg {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 18px;
  overflow: visible;
}

.underline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw 1.2s var(--ease-out) 0.7s forwards;
  opacity: 0.85;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.lead {
  margin-top: 26px;
  max-width: 470px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points svg,
.included svg {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--accent-soft);
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Hero art ---------- */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1 / 1;
  justify-self: center;
  container-type: inline-size;
}

/* Orbit: sun and moon ride a wheel that turns between themes */
.orbit {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 0;
  height: 0;
  transform: rotate(32deg);
  transition: transform var(--orbit-time) var(--ease);
}

[data-theme="dark"] .orbit { transform: rotate(212deg); }

.body {
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 0.9s var(--ease);
}

.sun-wrap { transform: translate(-50%, -50%) translateY(-47cqw); }
.moon-wrap { transform: translate(-50%, -50%) translateY(47cqw); opacity: 0; }

[data-theme="dark"] .sun-wrap { opacity: 0; }
[data-theme="dark"] .moon-wrap { opacity: 1; transition-delay: 0.25s; }

.sun,
.moon {
  transition: transform var(--orbit-time) var(--ease);
}

.sun { transform: rotate(-32deg); }
[data-theme="dark"] .sun { transform: rotate(-212deg); }

.moon { transform: rotate(-32deg); }
[data-theme="dark"] .moon { transform: rotate(-212deg); }

.sun {
  position: relative;
  width: 19cqw;
  height: 19cqw;
}

.sun-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fff8c9 0%, #ffd34d 45%, #ffab2e 100%);
  box-shadow: 0 0 40px 10px rgba(255, 200, 70, 0.55), 0 0 120px 40px rgba(255, 190, 80, 0.3);
}

.sun-rays {
  position: absolute;
  inset: -34%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 90, 0.35) 0deg 6deg, transparent 6deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 36%, #000 40%, transparent 70%);
  mask: radial-gradient(circle, transparent 36%, #000 40%, transparent 70%);
  animation: spin 40s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.moon {
  position: relative;
  width: 16cqw;
  height: 16cqw;
}

.moon-glow {
  position: absolute;
  inset: -60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 200, 255, 0.35), transparent 60%);
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

.moon-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #ecebfb 50%, #c9c6e8 100%);
  box-shadow: 0 0 30px rgba(220, 220, 255, 0.6), inset -10px -8px 0 rgba(150, 145, 200, 0.25);
  overflow: hidden;
}

.moon-core span {
  position: absolute;
  border-radius: 50%;
  background: rgba(150, 145, 200, 0.35);
}

.moon-core span:nth-child(1) { width: 26%; height: 26%; top: 22%; left: 52%; }
.moon-core span:nth-child(2) { width: 16%; height: 16%; top: 58%; left: 28%; }
.moon-core span:nth-child(3) { width: 11%; height: 11%; top: 30%; left: 24%; }

/* Clouds */
.cloud {
  position: absolute;
  height: 5cqw;
  border-radius: 999px;
  background: var(--cloud);
  opacity: 0.95;
  filter: drop-shadow(0 8px 14px rgba(40, 90, 160, 0.12));
  animation: drift 26s ease-in-out infinite alternate;
  transition: opacity 0.9s var(--ease), background-color 0.9s var(--ease);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before { width: 48%; height: 180%; left: 16%; bottom: 20%; }
.cloud::after { width: 34%; height: 130%; left: 52%; bottom: 25%; }

.cl1 { width: 22cqw; top: 22%; left: -2%; }
.cl2 { width: 16cqw; top: 12%; right: 4%; animation-duration: 32s; animation-delay: -8s; }
.cl3 { width: 13cqw; top: 82%; left: 10%; animation-duration: 22s; animation-delay: -4s; opacity: 0.8; }

[data-theme="dark"] .cloud { opacity: 0.35; filter: none; }

@keyframes drift {
  from { transform: translateX(-4cqw); }
  to { transform: translateX(6cqw); }
}

/* Birds */
.birds {
  position: absolute;
  top: 8%;
  left: 18%;
  width: 18cqw;
  fill: none;
  stroke: #3b4a6b;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
  animation: fly 18s linear infinite;
  transition: opacity 0.6s;
}

[data-theme="dark"] .birds { opacity: 0; }

@keyframes fly {
  0% { transform: translate(-10cqw, 4cqw); }
  50% { transform: translate(12cqw, -2cqw); }
  100% { transform: translate(-10cqw, 4cqw); }
}

/* Island */
.island-float {
  position: absolute;
  inset: 8% 4% 2%;
  animation: float 7s ease-in-out infinite;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-3.2cqw) rotate(0.6deg); }
}

.island-tilt {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
}

.island {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 30px 40px rgba(40, 70, 140, 0.25));
}

[data-theme="dark"] .island { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5)); }

.island-shadow {
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 0;
  height: 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30, 60, 120, 0.18), transparent);
  animation: shadow 7s ease-in-out infinite;
}

[data-theme="dark"] .island-shadow { background: radial-gradient(closest-side, rgba(140, 150, 255, 0.18), transparent); }

@keyframes shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.82); opacity: 0.6; }
}

/* Island SVG parts */
.island * { transition: fill 0.9s var(--ease), stroke 0.9s var(--ease), stop-color 0.9s var(--ease), opacity 0.9s var(--ease); }

.rock-top { stop-color: var(--rock-top); }
.rock-bottom { stop-color: var(--rock-bottom); }
.grass-top { stop-color: var(--grass-top); }
.grass-bottom { stop-color: var(--grass-bottom); }
.water-top { stop-color: var(--water); }
.water-bottom { stop-color: var(--water); }

.rock-shade { fill: rgba(0, 0, 0, 0.14); }
.rock-line { fill: none; stroke: var(--rock-line); stroke-width: 3; stroke-linecap: round; }
.grass-edge { fill: var(--grass-edge); }
.grass-drip { fill: none; stroke: var(--grass-bottom); stroke-width: 6; stroke-linecap: round; }
.stone-path { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 2 12; }

.mini-rock { animation: bob 5s ease-in-out infinite; transform-box: fill-box; }
.mini-rock.m2 { animation-duration: 6.5s; animation-delay: -2s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.water-flow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 18;
  animation: flow 1.1s linear infinite;
}

@keyframes flow { to { stroke-dashoffset: -28; } }

.trunk { fill: var(--trunk); }
.leaf { fill: var(--leaf); }
.leaf-2 { fill: var(--leaf-2); }
.leaf-hi { fill: var(--leaf-hi); opacity: 0.8; }

.tree { transform-origin: 99px 188px; animation: sway 6s ease-in-out infinite; }
.pine { transform-origin: 321px 188px; animation: sway 7s ease-in-out infinite reverse; }

@keyframes sway {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}

.house-shadow { fill: rgba(0, 0, 0, 0.12); }
.wall { fill: var(--wall); }
.wall-side { fill: var(--wall-side); }
.roof { fill: var(--roof); }
.roof-edge { fill: none; stroke: var(--roof-edge); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.chimney { fill: var(--chimney); }
.door { fill: var(--door); }
.knob { fill: #ffd76a; }
.window { fill: var(--window); }
.window-bar { fill: none; stroke: var(--wall); stroke-width: 2; }

.window-glow,
.lamp-halo { opacity: 0; }

[data-theme="dark"] .window-glow { opacity: 1; animation: flicker 4s ease-in-out infinite; }
[data-theme="dark"] .lamp-halo { opacity: 1; }

@keyframes flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.85; }
  50% { opacity: 0.95; }
}

.lamp-pole { fill: #4a4a63; }
.lamp-light { fill: #e9e6d8; }
[data-theme="dark"] .lamp-light { fill: #ffe08a; }

.smoke circle {
  fill: rgba(255, 255, 255, 0.85);
  transform-box: fill-box;
  transform-origin: center;
  animation: smoke 4s ease-out infinite;
}

.smoke circle:nth-child(2) { animation-delay: 1.3s; }
.smoke circle:nth-child(3) { animation-delay: 2.6s; }

[data-theme="dark"] .smoke circle { fill: rgba(200, 200, 240, 0.35); }

@keyframes smoke {
  0% { transform: translateY(10px) scale(0.4); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-24px) scale(1.4); opacity: 0; }
}

.f1 { fill: var(--flower-1); }
.f2 { fill: var(--flower-2); }

/* Fireflies */
.fireflies span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff3a0;
  box-shadow: 0 0 10px 3px rgba(255, 230, 120, 0.8);
  opacity: 0;
  transition: opacity 0.8s;
}

[data-theme="dark"] .fireflies span {
  animation: firefly 6s ease-in-out infinite;
}

.fireflies span:nth-child(1) { left: 18%; top: 36%; animation-delay: 0s; }
.fireflies span:nth-child(2) { left: 34%; top: 28%; animation-delay: -1s; animation-duration: 7s; }
.fireflies span:nth-child(3) { left: 66%; top: 32%; animation-delay: -2s; }
.fireflies span:nth-child(4) { left: 80%; top: 40%; animation-delay: -3s; animation-duration: 8s; }
.fireflies span:nth-child(5) { left: 50%; top: 22%; animation-delay: -4s; }
.fireflies span:nth-child(6) { left: 26%; top: 46%; animation-delay: -5s; animation-duration: 5s; }

@keyframes firefly {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: 1; }
  50% { opacity: 0.3; transform: translate(14px, -18px); }
  80% { opacity: 1; transform: translate(-10px, -6px); }
}

/* ---------- For who ---------- */
.for-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.for-who p {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.for-who ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.for-who li {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Sections ---------- */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800;
}

.sub {
  margin-top: 16px;
  font-size: 19px;
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 34px 30px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  opacity: 0.16;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 24px -12px var(--accent);
}

.step-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p { color: var(--muted); }

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.why {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 20px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.why:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.why-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent-soft);
}

.why-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0 8px;
}

.why p { color: var(--muted); }

/* Pricing */
.price-card {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

.price-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  filter: blur(10px);
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent), transparent 35%, transparent 65%, var(--accent-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px dashed var(--border);
}

.price-block { text-align: center; }

.price-label {
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.price {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 78px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.cur {
  font-size: 0.5em;
  vertical-align: 0.6em;
  margin-right: 2px;
  color: var(--accent);
}

.per {
  font-size: 0.3em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 4px;
}

.price-note { color: var(--muted); font-size: 15px; }

.price-plus {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px -10px var(--accent);
}

.included {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  padding: 36px 8px;
}

.included li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.price-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--accent-soft);
}

.year-one { color: var(--muted); }
.year-one strong { color: var(--text); }

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.faq details[open] {
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.faq details::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.35s var(--ease), content-visibility 0.35s allow-discrete;
}

.faq details[open]::details-content { height: auto; }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary h3 {
  font: inherit;
  letter-spacing: inherit;
  text-wrap: pretty;
}

.chev {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  transition: transform 0.35s var(--ease), background-color 0.3s;
}

.chev::before,
.chev::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.chev::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease); }

.faq details[open] .chev { transform: rotate(180deg); }
.faq details[open] .chev::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq details p {
  padding: 0 26px 24px;
  color: var(--muted);
}

/* Contact */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.contact-copy h2 { font-size: clamp(34px, 4vw, 48px); }

.contact-points {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.contact-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}

.contact-points span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
}

.contact-side { position: relative; }

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label span {
  font-size: 14px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); opacity: 0.6; }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.contact-form .invalid {
  border-color: #ef4f4f;
  box-shadow: 0 0 0 4px rgba(239, 79, 79, 0.15);
}

[hidden] { display: none !important; }

.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.loading { pointer-events: none; filter: saturate(0.85); }
.btn.loading .btn-spinner { display: inline-block; }
.btn.loading svg { display: none; }
.btn.loading .btn-label::after { content: "..."; }

.form-success {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  height: 100%;
  min-height: 380px;
  padding: 24px;
  text-align: center;
  border-radius: 24px;
  background: var(--accent-soft);
  animation: pop-in 0.6s var(--ease-out) both;
}

.form-success h3 { font-size: 32px; font-weight: 800; }
.form-success p { max-width: 320px; color: var(--muted); }
.form-success .btn { margin-top: 8px; }

.success-badge svg {
  width: 84px;
  height: 84px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-badge circle {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
  animation: draw 0.7s var(--ease-out) 0.1s forwards;
}

.success-badge path {
  stroke: var(--accent);
  stroke-width: 4;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.45s var(--ease-out) 0.65s forwards;
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: none; }
}

.form-status a { color: var(--accent); font-weight: 600; text-decoration: underline; }

.form-status {
  min-height: 1.5em;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  color: var(--muted);
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

.footer .brand { color: var(--text); }

.footer-brand {
  display: grid;
  gap: 10px;
  max-width: 340px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

.footer .copy { width: 100%; font-size: 14px; }

/* ---------- Hero entrance (transform only, so text paints on the first frame) ---------- */
.rise { animation: rise 0.9s var(--ease-out) both; }
.hero-copy .rise:nth-child(2) { animation-delay: 0.06s; }
.hero-copy .rise:nth-child(3) { animation-delay: 0.12s; }
.hero-copy .rise:nth-child(4) { animation-delay: 0.18s; }
.hero-copy .rise:nth-child(5) { animation-delay: 0.24s; }

@keyframes rise {
  from { transform: translateY(18px); }
  to { transform: none; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--rd, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 56px;
    min-height: 0;
    gap: 16px;
  }

  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-inline: auto; }
  .hero-ctas, .hero-points { justify-content: center; }
  .hero-art { max-width: 480px; }

  .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }

  .contact-card { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .brand-name span { display: none; }

  .section { padding: 72px 20px; }

  .price-card { padding: 32px 22px; border-radius: 28px; }
  .price-row { grid-template-columns: 1fr; gap: 14px; }
  .price-plus { margin: 0 auto; width: 40px; height: 40px; }
  .included { grid-template-columns: 1fr; padding: 28px 4px; }
  .price-footer { flex-direction: column; text-align: center; }
  .price-footer .btn { width: 100%; }

  .footer { flex-direction: column; text-align: center; }
  .footer-brand { justify-items: center; }
  .footer-links { justify-content: center; }
  .why { padding: 24px; column-gap: 16px; }
}

@media (max-width: 420px) {
  h1 { font-size: 34px; }
  .btn-small { padding: 10px 14px; font-size: 14px; }
  .nav { padding-left: 14px; }
}

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