/*
 * Styling aligned with OPDPlus / Hikari ClinicPro marketing site:
 * Inter, light+dark tokens, metallic black header + yellow brand, hero img1.svg,
 * cream features + wave bg, plans + contact (water-wave section).
 */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --primary: #171717;
  --primary-foreground: #fafafa;
  --accent-blue: #155dfc;
  --accent-blue-dim: rgba(21, 93, 252, 0.12);
  --radius: 0.625rem;
  --header-h: 5.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #fafafa;
    --card: #171717;
    --muted: #262626;
    --muted-foreground: #a1a1a1;
    --border: rgba(255, 255, 255, 0.1);
    --primary: #e5e5e5;
    --primary-foreground: #171717;
    --accent-blue: #2b7fff;
    --accent-blue-dim: rgba(43, 127, 255, 0.15);
  }
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

#why,
#features,
#benefits,
#how-it-works,
#pricing,
#resource,
#contact {
  scroll-margin-top: 96px;
}

/* Visually hidden until focus — avoid left:-9999px (widens page / causes horizontal scroll on mobile). */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 2000;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  background: #fde047;
  color: #0a0a0a;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* —— Header —— */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: hidden;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, transparent 44%),
    linear-gradient(148deg, #2c2c30 0%, #141416 34%, #1b1b1e 52%, #060607 100%);
}

@media (prefers-color-scheme: dark) {
  header {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, transparent 42%),
      linear-gradient(148deg, #232326 0%, #101012 36%, #17171a 50%, #050506 100%);
  }
}

header::before {
  content: "";
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  opacity: 0.5;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 2px,
    rgba(255, 255, 255, 0.028) 2px,
    rgba(255, 255, 255, 0.028) 3px
  );
}

@media (prefers-color-scheme: dark) {
  header::before {
    opacity: 0.62;
  }
}

@media (prefers-reduced-motion: no-preference) {
  header::before {
    animation: header-grid-shift 90s linear infinite alternate;
  }
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-lockup:hover {
  transform: translateY(-2px);
}

.brand-lockup:focus-visible {
  outline: 2px solid #b57bff;
  outline-offset: 4px;
  border-radius: 4px;
}

.brand-logo {
  display: block;
  flex-shrink: 0;
  height: clamp(1.35rem, 3.2vw, 1.75rem);
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #b57bff;
  line-height: 1.15;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.header-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.header-nav a:not(.header-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 1px;
  background: #fde047;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-nav a:not(.header-cta):hover {
  color: #fde047;
}

.header-nav a:not(.header-cta):hover::after,
.header-nav a:not(.header-cta):focus-visible::after {
  width: 100%;
}

.header-nav a:focus-visible {
  outline: 2px solid #fde047;
  outline-offset: 6px;
  border-radius: 4px;
}

.header-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

.header-cta::after {
  display: none !important;
}

.header-cta:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fde047 !important;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  flex-shrink: 0;
}

.header-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.header-menu-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

header.is-open .header-menu-toggle {
  background: rgba(255, 255, 255, 0.22);
}

/* Hamburger → X when menu open */
header.is-open .header-menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

header.is-open .header-menu-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

header.is-open .header-menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 720px) {
  /* Keep overflow hidden so header::before overlay cannot widen the document. Fixed nav is still viewport-relative. */
  header {
    overflow: hidden;
  }

  /* Keep logo + menu control above the full-screen nav overlay (nav is a later sibling and would otherwise capture all taps). */
  header.is-open {
    z-index: 1100;
  }

  header.is-open .brand-lockup,
  header.is-open .header-menu-toggle {
    position: relative;
    z-index: 1002;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .brand-lockup {
    flex: 1;
    min-width: 0;
  }

  .header-menu-toggle {
    display: flex;
  }

  .header-nav {
    position: fixed;
    z-index: 1001;
    inset: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: calc(var(--header-h, 5.25rem) + 1rem) 1.5rem 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(
      180deg,
      rgba(38, 38, 42, 0.98) 0%,
      rgba(18, 18, 20, 0.98) 45%,
      rgba(10, 10, 11, 0.98) 100%
    );
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  header.is-open .header-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .header-nav a {
    font-size: 1rem;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .header-nav a:last-child {
    border-bottom: none;
  }

  .header-nav a::after {
    display: none;
  }

  .header-cta {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }
}

/* —— Hero (img1.svg + floating icons) —— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.68)),
    url("img1.svg") center/78% no-repeat;
}

@media (prefers-color-scheme: dark) {
  .hero {
    background:
      linear-gradient(to bottom, rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.56)),
      url("img1.svg") center/88% no-repeat;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.95) 10%,
    rgba(255, 255, 255, 0.65) 18%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0) 70%,
    rgba(255, 255, 255, 0.65) 82%,
    rgba(255, 255, 255, 0.95) 90%,
    rgba(255, 255, 255, 1) 100%
  );
}

@media (prefers-color-scheme: dark) {
  .hero::after {
    background: linear-gradient(
      90deg,
      rgba(10, 10, 10, 0.98) 0%,
      rgba(10, 10, 10, 0.95) 10%,
      rgba(10, 10, 10, 0.6) 18%,
      rgba(10, 10, 10, 0) 30%,
      rgba(10, 10, 10, 0) 70%,
      rgba(10, 10, 10, 0.6) 82%,
      rgba(10, 10, 10, 0.95) 90%,
      rgba(10, 10, 10, 0.98) 100%
    );
  }
}

.hero-bg-icons {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .hero-bg-icons {
    display: block;
    opacity: 0.22;
  }
}

.hero-bg-icon {
  position: absolute;
  width: 66px;
  height: 66px;
  color: #155dfc;
  z-index: 1;
  filter: drop-shadow(0 8px 16px rgba(21, 93, 252, 0.18));
  animation: hero-icon-float var(--dur, 4.2s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@media (prefers-color-scheme: dark) {
  .hero-bg-icon {
    color: #2b7fff;
  }
}

.hero-bg-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-bg-icon.icon-1 { left: 7%; top: 16%; --dur: 4s; --delay: -0.2s; }
.hero-bg-icon.icon-2 { left: 24%; top: 16%; --dur: 4.6s; --delay: -1.2s; }
.hero-bg-icon.icon-3 { left: 70%; top: 16%; --dur: 4.3s; --delay: -0.8s; }
.hero-bg-icon.icon-4 { left: 86%; top: 16%; --dur: 4.8s; --delay: -1.6s; }
.hero-bg-icon.icon-5 { left: 6%; top: 58%; --dur: 4.1s; --delay: -0.5s; }
.hero-bg-icon.icon-6 { left: 22%; top: 58%; --dur: 4.7s; --delay: -1s; }
.hero-bg-icon.icon-7 { left: 38%; top: 58%; --dur: 4.2s; --delay: -1.9s; }
.hero-bg-icon.icon-8 { left: 54%; top: 58%; --dur: 4.5s; --delay: -0.4s; }
.hero-bg-icon.icon-9 { left: 70%; top: 58%; --dur: 4s; --delay: -1.4s; }
.hero-bg-icon.icon-10 { left: 86%; top: 58%; --dur: 4.9s; --delay: -0.9s; }

@keyframes hero-icon-float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10px, 0, 0) scale(1.03); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@media (max-width: 900px) {
  .hero-bg-icon {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 720px) {
  .hero-bg-icons {
    display: none;
  }

  .hero {
    background:
      linear-gradient(to bottom, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.68)),
      url("img1.svg") center/100% no-repeat;
  }
}

@media (prefers-color-scheme: dark) and (max-width: 720px) {
  .hero {
    background:
      linear-gradient(to bottom, rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.56)),
      url("img1.svg") center/100% no-repeat;
  }
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.hero h1,
.hero .hero-headline {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--foreground);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35em;
  text-align: center;
}

.hero-headline-static {
  white-space: nowrap;
}

/* Animated suffix — CodyHouse-style rotate-1 (https://codepen.io/wikyware-net/pen/oNmaevE) */
.cd-words-wrapper {
  display: inline-block;
  position: relative;
  text-align: left;
  color: #3dc13c;
}

.cd-words-wrapper b {
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-weight: inherit;
}

.cd-words-wrapper b.is-visible {
  position: relative;
}

.cd-headline.rotate-1 .cd-words-wrapper {
  perspective: 300px;
}

.cd-headline.rotate-1 b {
  opacity: 0;
  transform-origin: 50% 100%;
  transform: rotateX(180deg);
}

.cd-headline.rotate-1 b.is-visible {
  opacity: 1;
  transform: rotateX(0deg);
  animation: cd-rotate-1-in 1.2s ease forwards;
}

.cd-headline.rotate-1 b.is-hidden {
  animation: cd-rotate-1-out 1.2s ease forwards;
}

@keyframes cd-rotate-1-in {
  0% {
    transform: rotateX(180deg);
    opacity: 0;
  }
  35% {
    transform: rotateX(120deg);
    opacity: 0;
  }
  65% {
    opacity: 0;
  }
  100% {
    transform: rotateX(360deg);
    opacity: 1;
  }
}

@keyframes cd-rotate-1-out {
  0% {
    transform: rotateX(0deg);
    opacity: 1;
  }
  35% {
    transform: rotateX(-40deg);
    opacity: 1;
  }
  65% {
    opacity: 0;
  }
  100% {
    transform: rotateX(180deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-headline.rotate-1 .cd-words-wrapper {
    width: auto !important;
    perspective: none;
  }

  .cd-headline.rotate-1 b {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .cd-headline.rotate-1 b:not(.is-visible) {
    display: none !important;
  }

  .cd-headline.rotate-1 b.is-visible {
    position: relative !important;
  }
}

.hero-lead {
  font-size: 1.0625rem;
  color: #0a0a0a;
  max-width: 42rem;
  margin: 0 auto 1.25rem;
  line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
  .hero-lead {
    color: var(--foreground);
  }
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.stars {
  color: #eab308;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* —— CTA buttons —— */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    background-color 0.2s ease;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.cta:active {
  transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
  .cta:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  }
}

.cta--outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.cta--outline:hover {
  background: var(--muted);
}

.cta .cta-arrow {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta:hover .cta-arrow {
  transform: translateX(4px);
}

/* —— Animations —— */
@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.anim-in {
  animation: hero-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.22s; }
.anim-delay-3 { animation-delay: 0.34s; }

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* —— Section typography —— */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.section-subtitle {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  max-width: 50ch;
}

.section-subtitle--tight {
  margin-bottom: 0.5rem;
}

.section-subtitle--italic {
  font-style: italic;
  max-width: none;
}

.owners .section-intro .section-subtitle:last-child {
  margin-bottom: 0;
}

.platform-heading .section-intro {
  text-align: center;
}

.platform-heading .section-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.platform-heading .section-subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 42ch;
}

/* —— Owners / intro —— */
.owners {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.owners > .container {
  position: relative;
  z-index: 2;
}

.owners--text .section-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.owners--text .section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.owners--text .section-subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 62ch;
}

/* Dual-layer scrolling square grid (CSS-only; same idea as animated grid/square backgrounds) */
@keyframes why-squares-layer-a {
  to {
    background-position: 40px 40px, 40px 40px;
  }
}

@keyframes why-squares-layer-b {
  to {
    background-position: 28px 28px, 28px 28px;
  }
}

.owners--why-squares .why-squares-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.owners--why-squares .why-squares-bg::before,
.owners--why-squares .why-squares-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}

.owners--why-squares .why-squares-bg::before {
  opacity: 0.55;
  background-image:
    linear-gradient(90deg, rgba(21, 93, 252, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(21, 93, 252, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 0 0;
  animation: why-squares-layer-a 22s linear infinite;
}

.owners--why-squares .why-squares-bg::after {
  opacity: 0.4;
  background-image:
    linear-gradient(90deg, rgba(99, 102, 241, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(99, 102, 241, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0, 0 0;
  animation: why-squares-layer-b 15s linear infinite reverse;
}

@media (prefers-color-scheme: dark) {
  .owners--why-squares .why-squares-bg::before {
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
      linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  }

  .owners--why-squares .why-squares-bg::after {
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
      linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .owners--why-squares .why-squares-bg::before,
  .owners--why-squares .why-squares-bg::after {
    animation: none;
  }
}

.owners-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.owners-bg .ball {
  position: absolute;
  border-radius: 100%;
  opacity: 0.25;
}

.owner-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .owner-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .owner-stack {
    grid-template-columns: 1fr;
  }

  .owners {
    padding: 3rem 0;
  }
}

.owner-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.96) 100%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.1rem;
  transition:
    border-color 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
  overflow: hidden;
}

.owner-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-blue);
  box-shadow: 0 10px 28px var(--accent-blue-dim);
}

.owner-card h3 {
  text-align: center;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.45rem;
}

.owner-card p {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
  margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
  .owner-card {
    background: linear-gradient(180deg, rgba(23, 23, 23, 0.94) 0%, rgba(34, 34, 34, 0.96) 100%);
  }

  .owners-bg .ball {
    opacity: 0.18;
  }
}

/* ReviewDock cards: icon instead of ::before image */
.rd-card::before {
  content: none !important;
}

.rd-card h3 {
  margin-top: 0.25rem;
}

.rd-card-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.35rem;
  border-radius: var(--radius);
  background: var(--accent-blue-dim);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-card-icon svg {
  width: 22px;
  height: 22px;
}

/* —— Platform heading —— */
.platform-heading {
  position: relative;
  padding: 2.5rem 0 2.75rem;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.platform-heading .section-intro {
  margin-bottom: 0;
}

/* —— Features (cream + CodePen LKgpOr wave animation only) —— */
.features {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: #fff9d9;
}

.features > .container {
  position: relative;
  z-index: 2;
}

.features-wave-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.features-wave-box {
  position: absolute;
  top: -25%;
  left: -35%;
  width: 170%;
  height: 170%;
  transform: rotate(80deg);
  transform-origin: 50% 50%;
}

.features-wave {
  position: absolute;
  top: 3%;
  left: 10%;
  width: clamp(520px, 185vw, 1500px);
  height: clamp(450px, 160vw, 1300px);
  margin-left: clamp(-100px, -12vw, -150px);
  margin-top: clamp(-140px, -22vw, -250px);
  opacity: 0.35;
  background: #0af;
  transform-origin: 50% 48%;
  border-radius: 43%;
  animation: features-wave-drift 14000ms infinite linear;
}

.features-wave--three {
  animation-duration: 15000ms;
  background-color: #77daff;
  opacity: 0.32;
}

.features-wave--two {
  animation-duration: 6000ms;
  opacity: 0.08;
  background: #1a1a2e;
}

@keyframes features-wave-drift {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-color-scheme: dark) {
  .features {
    background: #5f5520;
  }

  .features-wave {
    background: rgba(43, 127, 255, 0.55);
    opacity: 0.22;
  }

  .features-wave--three {
    background-color: rgba(125, 211, 252, 0.45);
    opacity: 0.2;
  }

  .features-wave--two {
    background: rgba(0, 0, 0, 0.45);
    opacity: 0.12;
  }

  .features .section-title,
  .features .section-subtitle {
    color: #fafafa;
  }

  .features .section-subtitle {
    opacity: 0.9;
  }
}

.features .section-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.features .section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.features .section-subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 48ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition:
    border-color 0.25s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.feature-card:hover {
  border-color: var(--muted-foreground);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  .feature-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--accent-blue-dim);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.3s ease,
    color 0.3s ease;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-3deg);
  background: var(--accent-blue);
  color: #ffffff;
}

.feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* —— Benefits / feature details —— */
.feature-details {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.feature-details > .container {
  position: relative;
}

.feature-details .section-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.feature-details .section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.feature-details .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-details .detail-block {
  margin-bottom: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-details .detail-block:hover {
  transform: translateX(4px);
}

.feature-details .detail-block h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.feature-details .detail-block p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* —— Platform (simple band) —— */
.platform {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.platform > .container {
  position: relative;
  z-index: 2;
}

.howit-circles-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.howit-circles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, rgba(181, 123, 255, 0.08) 100%);
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .howit-circles {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.65) 0%, rgba(181, 123, 255, 0.10) 100%);
  }
}

.howit-circles li {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  background: rgba(181, 123, 255, 0.22);
  animation: howit-circle-float 25s linear infinite;
  bottom: -150px;
}

.howit-circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.howit-circles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.howit-circles li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.howit-circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.howit-circles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.howit-circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.howit-circles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.howit-circles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.howit-circles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.howit-circles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes howit-circle-float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}

.howit-circles li {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .howit-circles li {
    animation: none;
  }
}

.platform .section-intro {
  text-align: center;
}

.platform .section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.platform .section-subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 52ch;
}

/* —— Pricing —— */
.pricing {
  position: relative;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.pricing .section-intro {
  text-align: center;
}

.pricing-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  .pricing-card {
    background: linear-gradient(180deg, rgba(23, 23, 23, 0.92) 0%, rgba(18, 18, 18, 0.94) 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  }
}

.pricing-card--featured {
  border-color: rgba(181, 123, 255, 0.55);
  box-shadow: 0 18px 60px rgba(181, 123, 255, 0.22);
}

@media (prefers-color-scheme: dark) {
  .pricing-card--featured {
    border-color: rgba(181, 123, 255, 0.7);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  }
}

.pricing-card-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.pricing-tagline {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (prefers-color-scheme: dark) {
  .pricing-tagline {
    color: rgba(255, 255, 255, 0.78);
  }
}

.pricing-badge {
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(181, 123, 255, 0.16);
  color: #7c3aed;
}

.pricing-badge--corner {
  position: absolute;
  top: 1rem;
  right: 1rem;
  justify-self: auto;
}

@media (prefers-color-scheme: dark) {
  .pricing-badge {
    background: rgba(181, 123, 255, 0.16);
    color: #d8b4fe;
  }
}

.pricing-plan {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-currency {
  font-size: 1rem;
  opacity: 0.9;
}

.pricing-amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.pricing-limits {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  padding-left: 0;
  margin: 0 0 1.1rem;
  color: var(--muted-foreground);
}

.pricing-limits strong {
  color: var(--foreground);
  font-weight: 700;
}

.pricing-cta {
  margin-top: auto;
  justify-content: center;
  width: 100%;
}

@media (prefers-color-scheme: dark) {
  .pricing-period,
  .pricing-limits {
    color: rgba(255, 255, 255, 0.78);
  }

  .pricing-limits strong {
    color: #fff;
  }
}

/* —— Plans + contact: single section, BaOOOZx-style water waves —— */
@keyframes plans-contact-wave-1000 {
  to {
    background-position-x: 1000px;
  }
}

@keyframes plans-contact-wave-1200 {
  to {
    background-position-x: 1200px;
  }
}

@keyframes plans-contact-wave-800 {
  to {
    background-position-x: 800px;
  }
}

.plans-contact {
  --plans-contact-blue: #3586ff;
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--plans-contact-blue);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .plans-contact {
    --plans-contact-blue: #2563d4;
    border-top-color: rgba(255, 255, 255, 0.12);
  }
}

.plans-contact-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.plans-contact-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background-repeat: repeat-x;
  background-position: 0 100%;
}

/* Seamless tiling SVG strips (same technique as alvarotrigo / BaOOOZx: scrolling wave layers) */
.plans-contact-wave--1 {
  height: 100px;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='0.9' d='M0,50 C166,10 333,90 500,50 C666,10 833,90 1000,50 L1000,100 L0,100 Z'/%3E%3C/svg%3E");
  background-size: 1000px 100px;
  animation: plans-contact-wave-1000 30s linear infinite;
}

.plans-contact-wave--2 {
  height: 110px;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 110' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='0.85' d='M0,55 C200,15 400,95 600,55 C800,15 1000,95 1200,55 L1200,110 L0,110 Z'/%3E%3C/svg%3E");
  background-size: 1200px 110px;
  animation: plans-contact-wave-1200 22s linear infinite reverse;
  animation-delay: -5s;
}

.plans-contact-wave--3 {
  height: 85px;
  opacity: 0.65;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 85' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='0.95' d='M0,42 C133,8 267,78 400,42 C533,8 667,78 800,42 L800,85 L0,85 Z'/%3E%3C/svg%3E");
  background-size: 800px 85px;
  animation: plans-contact-wave-800 28s linear infinite;
  animation-delay: -10s;
}

.plans-contact > .container {
  position: relative;
  z-index: 1;
}

.plans-contact-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.plans-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.plans-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.plans-contact .plans-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: #fff;
}

.plans-contact .plans-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.plans-contact .contact-card {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.contact-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-card .section-title {
  margin-bottom: 0.4rem;
}

.plans-contact .contact-card .section-title {
  color: #fff;
}

.contact-card .section-subtitle {
  margin: 0 auto 1rem;
  max-width: 60ch;
}

.plans-contact .contact-card .section-subtitle {
  color: rgba(255, 255, 255, 0.88);
}

.contact-list {
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.contact-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.contact-icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent-blue);
  animation: contact-icon-float 2.8s ease-in-out infinite;
  flex: 0 0 auto;
}

.plans-contact .contact-icon {
  color: rgba(255, 255, 255, 0.95);
}

.contact-list a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.plans-contact .contact-list a {
  color: #fff;
}

.contact-list a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.plans-contact .contact-list a:hover {
  color: rgba(255, 255, 255, 0.92);
}

@keyframes contact-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* —— Footer —— */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--background);
}

footer p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* —— Keyframes header —— */
@keyframes header-grid-shift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(40px, 40px, 0); }
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  header::before {
    animation: none;
    inset: 0;
    width: auto;
    height: auto;
  }

  .anim-in {
    animation: none;
    opacity: 1;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .feature-card:hover,
  .feature-details .detail-block:hover,
  .owner-card:hover {
    transform: none;
    box-shadow: none;
  }

  .feature-card:hover .feature-icon {
    transform: none;
  }

  .cta:hover,
  .cta:active,
  .cta:hover .cta-arrow {
    transform: none;
  }

  .contact-icon {
    animation: none;
  }

  .plans-contact-wave--1,
  .plans-contact-wave--2,
  .plans-contact-wave--3 {
    animation: none;
  }

  .hero-bg-icon {
    animation: none;
    opacity: 0.15;
  }

  .features-wave {
    animation: none;
  }

  .header-nav {
    transition: none;
  }

  .header-menu-bar {
    transition: none;
  }
}
