/* PaneTrans landing page · single-file stylesheet */

:root {
  --teal: #4ECDC4;
  --teal-dark: #44B09E;
  --ink: #1a1a2e;
  --ink-2: #4a4a5e;
  --muted: #7a7a8c;
  --bg: #f8f9fb;
  --card: #ffffff;
  --line: #e0e3e8;
  --accent: linear-gradient(135deg, #4ECDC4, #44B09E);
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, system-ui, sans-serif;
  scroll-behavior: smooth;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---- Header ---- */
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
}
.logo:hover { text-decoration: none; }

.hdr nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.hdr nav a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.hdr nav a[aria-current="page"] {
  color: var(--teal-dark);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(78, 205, 196, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(78, 205, 196, 0.45); }
.btn-ghost {
  background: #fff;
  color: var(--teal-dark);
  border: 1px solid var(--teal);
}
.btn-ghost:hover { background: rgba(78, 205, 196, 0.08); }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px 64px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.hero .lede {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.hero .lede-small {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero .cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-shot img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

/* ---- Features ---- */
/* v0.5 redesign: alternating side-by-side rows (image one side, text the
   other) instead of a 3-up card grid. Feels editorial; gives the screenshots
   the room they need to actually be readable. Each row reverses the image
   side via :nth-child(even) with grid order. */
.features {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 110px 32px;
}
.features h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 80px;
  letter-spacing: -0.4px;
}
.feat-grid {
  display: flex;
  flex-direction: column;
  gap: 110px;
  max-width: 1100px;
  margin: 0 auto;
}
.feat {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
/* Even rows flip the image to the right side */
.feat:nth-child(even) .feat-img  { order: 2; }
.feat:nth-child(even) .feat-body { order: 1; }

.feat-img {
  position: relative;
}
.feat-img::before {
  /* soft tint behind the image so it pops on the white feature bg */
  content: "";
  position: absolute;
  inset: -18px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(78, 205, 196, 0.18), transparent 70%);
  z-index: 0;
  filter: blur(16px);
}
.feat img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(78, 205, 196, 0.18),
              0 4px 12px rgba(10, 31, 37, 0.08);
  position: relative;
  z-index: 1;
}
.feat-body { min-width: 0; }
.feat-step {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--teal-dark);
  background: rgba(78, 205, 196, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.feat h3 {
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.feat p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
}
.feat code {
  background: rgba(78, 205, 196, 0.12);
  color: var(--teal-dark);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* ---- Trust block ---- */
.trust {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 32px;
}
.trust h2 {
  font-size: 26px;
  margin-bottom: 28px;
  line-height: 1.3;
}
.trust-list {
  list-style: none;
  display: grid;
  gap: 18px;
}
.trust-list li {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.trust-list li strong { color: var(--ink); }

/* ---- CTA band ---- */
.cta-band {
  background: var(--accent);
  text-align: center;
  padding: 64px 32px;
  color: #fff;
}
.cta-band h2 { font-size: 28px; margin-bottom: 12px; }
.cta-band p {
  margin-bottom: 24px;
  font-size: 16px;
  opacity: 0.95;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--teal-dark);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/* ---- Pricing ---- */
.pricing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}
.pricing h1 {
  text-align: center;
  font-size: 38px;
  margin-bottom: 12px;
}
.pricing .lede {
  text-align: center;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto 48px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card-pro {
  border: 2px solid var(--teal);
  box-shadow: 0 12px 32px rgba(78, 205, 196, 0.18);
  position: relative;
}
.price-card .badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.price-card h2 {
  font-size: 24px;
  margin-bottom: 6px;
}
.price-card .price {
  font-size: 38px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.price-card .price-suffix {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}
.price-card .price-sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}
.price-card ul {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}
.price-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}
.price-card li::before {
  content: "✓ ";
  color: var(--teal);
  font-weight: 700;
}
.price-card .price-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.faq-title {
  text-align: center;
  font-size: 26px;
  margin: 0 0 24px;
}
.faq {
  max-width: 720px;
  margin: 0 auto 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.faq[open] summary {
  margin-bottom: 12px;
  color: var(--teal-dark);
}
.faq p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

/* ---- Legal pages ---- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}
.legal h1 {
  font-size: 36px;
  margin-bottom: 8px;
}
.legal .legal-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}
.legal .legal-tldr {
  background: rgba(78, 205, 196, 0.1);
  border-left: 3px solid var(--teal);
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 28px;
  color: var(--ink-2);
  font-size: 15px;
}
.legal h2 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--ink);
}
.legal p {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 12px;
}
.legal ul, .legal ol {
  color: var(--ink-2);
  font-size: 15px;
  padding-left: 24px;
  margin-bottom: 12px;
}
.legal li {
  margin-bottom: 6px;
}
.legal code {
  background: rgba(78, 205, 196, 0.12);
  color: var(--teal-dark);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* ---- Footer ---- */
footer {
  background: #1a1a2e;
  color: #c4c7d0;
  padding: 48px 32px 24px;
  margin-top: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 32px;
}
.foot-grid > div { display: flex; flex-direction: column; gap: 8px; }
.foot-grid strong {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.foot-grid a {
  color: #c4c7d0;
  font-size: 13px;
  text-decoration: none;
}
.foot-grid a:hover {
  color: #fff;
  text-decoration: underline;
}
.foot-grid p {
  font-size: 13px;
  color: #8a8d99;
  line-height: 1.5;
}
.foot-fine {
  text-align: center;
  font-size: 12px;
  color: #6a6d79;
  border-top: 1px solid #2a2a3e;
  padding-top: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- */
/*  Animations — added in the v0.4 polish pass                      */
/* ---------------------------------------------------------------- */

/* Scroll-reveal: any element with [data-reveal] starts hidden, the
   IntersectionObserver in js/effects.js flips .is-revealed once it scrolls
   into view. Plays nice with prefers-reduced-motion (the JS short-circuits
   and adds .is-revealed immediately). */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero — particle canvas + animated gradient blob behind the headline.
   Hero base is intentionally dark so the glowing teal particles pop —
   the rest of the page stays light theme. The hero overflows full-bleed
   beyond the page padding so the dark band reads as a deliberate slab. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Full-bleed: cancel the page's max-width centering inside this section */
  max-width: none;
  margin: 0;
  padding: 96px max(32px, calc((100vw - 1100px) / 2)) 80px;
  background:
    radial-gradient(120% 80% at 30% 10%, #0c2933 0%, #061b22 55%, #04141a 100%);
  color: #e6f4f3;
}
.hero::before {
  /* Glowing mesh gradient overlay — high-saturation accents on top of dark base */
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(45% 40% at 18% 18%, rgba(78, 205, 196, 0.55) 0%, transparent 60%),
    radial-gradient(40% 35% at 82% 28%, rgba(68, 176, 158, 0.42) 0%, transparent 65%),
    radial-gradient(55% 55% at 55% 95%, rgba(78, 205, 196, 0.28) 0%, transparent 70%);
  filter: blur(24px);
  z-index: -2;
  animation: heroBlob 22s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes heroBlob {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(-2%, 1%, 0) rotate(8deg); }
  100% { transform: translate3d(2%, -1%, 0) rotate(-6deg); }
}

/* Hero copy on dark background */
.hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(78, 205, 196, 0.18);
}
.hero .lede {
  color: #c8e0dd;
}
.hero .lede strong { color: #ffffff; }
.hero .lede-small {
  color: #8aaeac;
}
/* Ghost button on dark — readable against dark bg */
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #cdebe6;
  border: 1px solid rgba(127, 228, 215, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero .btn-ghost:hover {
  background: rgba(127, 228, 215, 0.14);
  border-color: rgba(127, 228, 215, 0.85);
}
.hero-text, .hero-shot, .hero-demo {
  position: relative;       /* keep above the gradient layer */
  z-index: 1;
}

/* Hero copy — fade-and-rise on first paint (no JS, just CSS animation
   so it runs immediately, before the IO-based reveal would fire) */
.hero h1 {
  animation: heroRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero .lede {
  animation: heroRise 0.9s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero .lede-small {
  animation: heroRise 0.9s 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero .cta {
  animation: heroRise 0.9s 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Hero demo (interactive drag-to-translate animation) ---- */
/* The static screenshot got replaced by a fake-browser card animated by
   js/effects.js. The cursor, selection rect, and translation popup are
   all DOM elements positioned absolutely inside .demo-frame; the JS
   moves them via inline transforms / left+top through a state machine.
   When prefers-reduced-motion is set, the JS paints the first scene
   statically and stops. */
.hero-demo {
  width: 100%;
  perspective: 1200px;
  animation: demoFloat 8s ease-in-out infinite;
}
@keyframes demoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.demo-frame {
  position: relative;
  border-radius: 14px;
  background: #0e2832;
  border: 1px solid rgba(127, 228, 215, 0.25);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(127, 228, 215, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: rotateY(-3deg) rotateX(2deg);
  transform-style: preserve-3d;
}
.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #133743 0%, #0f2c37 100%);
  border-bottom: 1px solid rgba(127, 228, 215, 0.12);
}
.demo-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #3a4f57;
}
.demo-dot:nth-child(1) { background: #ff5f57; }
.demo-dot:nth-child(2) { background: #ffbd2e; }
.demo-dot:nth-child(3) { background: #28c840; }
.demo-url {
  margin-left: 14px;
  flex: 1;
  font: 12px ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #6f9a9a;
  background: rgba(0, 0, 0, 0.25);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(127, 228, 215, 0.1);
}
.demo-page {
  position: relative;
  padding: 36px 36px 56px;
  min-height: 320px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(127, 228, 215, 0.03) 100%),
    #0a2530;
}
/* Static lines above/below the targeted region — pure scenery, dimmed */
.demo-line-static {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4d6e72;
  opacity: 0.55;
}
.demo-line-static:last-child {
  margin: 16px 0 0;
}

/* The stable-area: the rectangle wraps this exact box. Lines stack
   absolutely on top of each other; only the .is-active one is visible. */
.demo-target {
  position: relative;
  margin: 18px 0;
  height: 60px;            /* one line of text + breathing room */
  overflow: hidden;
}
.demo-target.is-translating {
  /* Brief shimmer between scene swaps so the user sees "something happened" */
  animation: targetShimmer 0.4s ease;
}
@keyframes targetShimmer {
  0%, 100% { background: transparent; }
  50%      { background: rgba(127, 228, 215, 0.06); }
}
.demo-target-line {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%) translateY(8px);
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.34s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.demo-target-line.is-active {
  opacity: 1;
  transform: translateY(-50%);
}

/* Selection rectangle drawn over the targeted line */
.demo-rect {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  pointer-events: none;
  border: 1.5px dashed #4ECDC4;
  background: rgba(78, 205, 196, 0.14);
  border-radius: 4px;
  opacity: 0;
  box-shadow: 0 0 0 1px rgba(78, 205, 196, 0.18),
              0 0 24px rgba(78, 205, 196, 0.35);
}
.demo-rect.is-shown { opacity: 1; }

/* Translation popup card */
.demo-popup {
  position: absolute;
  left: 0; top: 0;
  min-width: 220px;
  max-width: 280px;
  padding: 12px 14px;
  background: rgba(15, 36, 44, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(127, 228, 215, 0.4);
  border-radius: 10px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(127, 228, 215, 0.08),
    0 0 20px rgba(78, 205, 196, 0.18);
  opacity: 0;
  transform: scale(0.92);
  transform-origin: top left;
  pointer-events: none;
  z-index: 3;
}
.demo-popup.is-shown { opacity: 1; transform: scale(1); }
.demo-popup.is-translating .demo-popup-orig,
.demo-popup.is-translating .demo-popup-trans {
  /* Quick fade between scenes — implies the popup re-translated */
  opacity: 0.25;
  transition: opacity 0.26s ease;
}
.demo-popup-orig,
.demo-popup-trans {
  transition: opacity 0.32s ease;
}
.demo-popup-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #4ECDC4;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.demo-popup-orig {
  color: #b8d4d0;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 4px;
}
.demo-popup-arrow {
  color: rgba(127, 228, 215, 0.6);
  font-size: 12px;
  margin: 4px 0;
}
.demo-popup-trans {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* Ghost cursor (SVG) */
.demo-cursor {
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4))
          drop-shadow(0 0 6px rgba(127, 228, 215, 0.5));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
}
.demo-cursor.is-shown { opacity: 1; }

/* Primary button — subtle pulsing glow that brightens on hover */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  /* Sweep highlight on hover */
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%);
  transform: skewX(-22deg);
  transition: left 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.btn-primary:hover::after { left: 130%; }
.btn-primary {
  animation: btnPulse 3.6s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(78, 205, 196, 0.35); }
  50%      { box-shadow: 0 10px 26px rgba(78, 205, 196, 0.55); }
}

/* Feature rows — image gets a subtle scale on hover, no card chrome
   anymore so we drop the lift/tilt that lived in the v1 design. */
.feat-img img {
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.5s ease;
}
.feat:hover .feat-img img {
  transform: scale(1.025);
  box-shadow: 0 36px 80px rgba(78, 205, 196, 0.28),
              0 4px 12px rgba(10, 31, 37, 0.10);
}

/* Row 03 (model picker) — the popup screenshot is portrait-ish and
   visually heavier than the other two; constrain it so the row
   stays balanced with its text column. */
.feat:nth-child(3) .feat-img {
  display: flex;
  justify-content: center;
}
.feat:nth-child(3) .feat-img img {
  max-width: 72%;
}

/* Trust list — slide-right shimmer on hover */
.trust-list li {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}
.trust-list li:hover {
  transform: translateX(4px);
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(78, 205, 196, 0.12);
}

/* Pricing cards — Pro card gets a steady glow + subtle pulse. The earlier
   conic-gradient ring trick (mask-composite: exclude) didn't render
   reliably across Chrome versions and leaked the unmasked rectangle as
   a rotating diamond on some devices. Replaced with a simpler pulsing
   glow that's always honest about what it's drawing. */
.price-card {
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.4s ease;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(78, 205, 196, 0.20);
}
.price-card-pro {
  animation: proGlow 4.5s ease-in-out infinite;
}
@keyframes proGlow {
  0%, 100% {
    box-shadow:
      0 12px 32px rgba(78, 205, 196, 0.18),
      0 0 0 0 rgba(78, 205, 196, 0.0);
  }
  50% {
    box-shadow:
      0 18px 44px rgba(78, 205, 196, 0.28),
      0 0 0 4px rgba(78, 205, 196, 0.12);
  }
}

/* Logo wiggle on hover */
.logo img {
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.logo:hover img {
  transform: rotate(-12deg) scale(1.1);
}

/* Nav links — animated underline */
.hdr nav a {
  position: relative;
}
.hdr nav a:not([target="_blank"])::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hdr nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.hdr nav a:hover { text-decoration: none; }

/* CTA band — animated gradient shift */
.cta-band {
  background: linear-gradient(120deg, #4ECDC4 0%, #44B09E 50%, #4ECDC4 100%);
  background-size: 200% 200%;
  animation: ctaShift 12s ease-in-out infinite;
}
@keyframes ctaShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Reduced-motion: kill purely decorative loops */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .btn-primary,
  .price-card-pro::before,
  .cta-band,
  .hero-demo,
  #cursor-trail {
    animation: none !important;
  }
  .hero h1, .hero .lede, .hero .lede-small, .hero .cta {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  #cursor-trail { display: none !important; }
}

/* ---- Mobile ---- */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 20px;
    gap: 36px;
  }
  .hero h1 { font-size: 30px; }
  .demo-frame { transform: none; }
  .demo-page { padding: 24px 20px 36px; min-height: 280px; }
  .demo-line { font-size: 14px; margin-bottom: 16px; }
  .features, .trust, .pricing { padding-left: 20px; padding-right: 20px; }
  .features { padding-top: 64px; padding-bottom: 64px; }
  .feat-grid { gap: 64px; }
  /* Stack rows on mobile, image always above text */
  .feat {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feat:nth-child(even) .feat-img,
  .feat:nth-child(even) .feat-body {
    order: initial;
  }
  .feat h3 { font-size: 22px; }
  .feat p { font-size: 15px; }
  .price-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hdr { padding: 14px 20px; }
  .hdr nav { gap: 16px; }
}
