:root {
  --ink: #0b1220;
  --muted: #5b6b82;
  --paper: #f3f6fb;
  --line: rgba(11, 18, 32, 0.1);
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --cyan: #06b6d4;
  --white: #ffffff;
  --font: "Outfit", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #f7f9fc;
  line-height: 1.5;
  position: relative;
}

.page-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.top,
.hero,
.section,
.pricing-page,
.pricing-result,
footer {
  position: relative;
  z-index: 1;
}

/* Animated geometric stage */
.fx-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.fx-stage.fx-fixed {
  position: absolute;
  inset: 0;
}
.fx-photo {
  position: absolute;
  inset: 0;
  background:
    url("../img/geo-bg.png") center / cover no-repeat;
  opacity: 0.55;
  filter: saturate(1.05);
}
.fx-dark .fx-photo {
  display: none;
}
.fx-geo {
  position: absolute;
  width: 48vw;
  max-width: 620px;
  height: 48vw;
  max-height: 620px;
  border-radius: 28% 42% 30% 48%;
  filter: blur(0.2px);
  animation: fx-drift 18s ease-in-out infinite alternate;
}
.fx-geo-tl {
  top: -18%;
  left: -16%;
  background:
    linear-gradient(135deg, rgba(37,99,235,0.95) 0%, rgba(59,130,246,0.55) 42%, rgba(147,197,253,0.25) 70%, transparent 78%);
  transform: rotate(-28deg);
}
.fx-geo-br {
  right: -18%;
  bottom: -20%;
  background:
    linear-gradient(135deg, transparent 22%, rgba(147,197,253,0.28) 35%, rgba(37,99,235,0.7) 62%, rgba(29,78,216,0.95) 100%);
  transform: rotate(-28deg);
  animation-delay: -6s;
}
.fx-dark .fx-geo-tl {
  background:
    linear-gradient(135deg, rgba(37,99,235,0.75) 0%, rgba(59,130,246,0.28) 45%, transparent 72%);
}
.fx-dark .fx-geo-br {
  background:
    linear-gradient(135deg, transparent 25%, rgba(56,189,248,0.18) 40%, rgba(37,99,235,0.55) 100%);
}
.fx-capsules span {
  position: absolute;
  display: block;
  width: 9vw;
  min-width: 70px;
  height: 2.2vw;
  min-height: 18px;
  border-radius: 999px;
  background: rgba(147,197,253,0.35);
  transform: rotate(-32deg);
  animation: fx-float 10s ease-in-out infinite;
}
.fx-capsules span:nth-child(1) { top: 28%; left: 2%; animation-delay: 0s; }
.fx-capsules span:nth-child(2) { top: 46%; left: 6%; width: 6vw; opacity: 0.55; animation-delay: -2s; }
.fx-capsules span:nth-child(3) { top: 36%; right: 3%; animation-delay: -4s; }
.fx-capsules span:nth-child(4) { top: 58%; right: 7%; width: 7vw; opacity: 0.5; animation-delay: -6s; }
.fx-dark .fx-capsules span { background: rgba(96,165,250,0.18); }

.fx-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fx-line {
  stroke: rgba(37,99,235,0.45);
  stroke-width: 0.35;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: fx-draw 4.5s ease forwards infinite;
}
.fx-line:nth-child(2) { animation-delay: 0.4s; stroke: rgba(59,130,246,0.35); }
.fx-line:nth-child(3) { animation-delay: 0.8s; }
.fx-line:nth-child(4) { animation-delay: 1.1s; stroke: rgba(59,130,246,0.35); }
.fx-line-slow {
  stroke: rgba(37,99,235,0.22);
  animation-duration: 7s;
}
.fx-dark .fx-line { stroke: rgba(96,165,250,0.55); }
.fx-dark .fx-line-slow { stroke: rgba(125,211,252,0.28); }

.fx-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes fx-drift {
  from { transform: rotate(-28deg) translate3d(0,0,0) scale(1); }
  to { transform: rotate(-24deg) translate3d(2%, -1.5%, 0) scale(1.04); }
}
@keyframes fx-float {
  0%, 100% { transform: rotate(-32deg) translateY(0); }
  50% { transform: rotate(-32deg) translateY(-12px); }
}
@keyframes fx-draw {
  0% { stroke-dashoffset: 120; opacity: 0.2; }
  30% { opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 0.9; }
  100% { stroke-dashoffset: -120; opacity: 0.15; }
}


a { color: inherit; text-decoration: none; }

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 6vw;
  background: linear-gradient(180deg, rgba(0,0,0,0.72), transparent);
  border-bottom: 0;
  color: #fff;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
  text-transform: none;
}

nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  color: #fff;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #05070d;
  z-index: 2;
}

.hero-media,
.hero-media-fallback,
.hero-bg {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 0 6vw 12vh;
  max-width: min(92vw, 56rem);
  animation: rise 0.9s ease both;
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 6.2vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  height: 1.05em;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
  gap: 0.18em;
  max-width: 100%;
  overflow: hidden;
}

.brand-fixed { color: #fff; flex: 0 0 auto; line-height: 1; letter-spacing: -0.02em; }
.brand-typed-wrap {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 0;
  height: 1em;
  line-height: 1;
}
.brand-typed {
  color: var(--blue);
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
  min-height: 1em;
}
.caret {
  display: inline-block;
  width: 0.08em;
  height: 0.78em;
  margin-left: 0.04em;
  background: var(--blue);
  animation: blink 1s steps(1) infinite;
  flex: 0 0 auto;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  max-width: 22ch;
  color: #fff;
}

.lede {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 42ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 0.55rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-deep); }
.btn.ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn.lg { padding: 0.95rem 1.4rem; font-size: 1.05rem; }

.section { padding: 5.5rem 6vw; background: rgba(247,249,252,0.72); backdrop-filter: blur(2px); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner.narrow { max-width: 640px; text-align: center; }

.section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section-lede {
  margin: 0.9rem 0 0;
  color: var(--muted);
  max-width: 54ch;
  font-size: 1.05rem;
}

.narrow .section-lede { margin-left: auto; margin-right: auto; }

.product-block {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.product-block.flip .product-copy { order: 2; }
.product-block.flip .product-visual { order: 1; }

.product-kicker {
  display: inline-flex;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(37,99,235,0.1);
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product-copy h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
}

.pn-brand { font-weight: 800; letter-spacing: -0.02em; }

.product-tag {
  margin: 0.35rem 0 0.8rem;
  color: var(--blue-deep);
  font-weight: 600;
}

.product-copy p { margin: 0; color: var(--muted); }

.product-copy ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.product-copy li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink);
}

.product-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--blue);
}

.product-visual {
  margin: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #d7e2f4;
  min-height: 260px;
  box-shadow: 0 18px 50px rgba(11,18,32,0.12);
}

.product-visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.product-ph {
  min-height: 280px;
  background:
    linear-gradient(145deg, rgba(37,99,235,0.22), rgba(6,182,212,0.18));
}
.product-ph-1 { background: linear-gradient(145deg, #1e3a8a, #2563eb 55%, #67e8f9); }
.product-ph-2 { background: linear-gradient(145deg, #0f172a, #1d4ed8 50%, #22d3ee); }
.product-ph-3 { background: linear-gradient(145deg, #082f49, #2563eb 45%, #99f6e4); }

.gallery { background: rgba(232,238,248,0.78); }
.gallery-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-grid figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.35rem;
  background: #c9d6ea;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-grid figure:hover img { transform: scale(1.04); }

.ph {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(145deg, rgba(37,99,235,0.18), rgba(6,182,212,0.22));
}

.cta {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(37,99,235,0.1), transparent 70%),
    rgba(247,249,252,0.78);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 920px;
}

.contact-copy .section-lede { max-width: 36ch; }
.contact-copy .note { margin-top: 0.85rem; color: var(--muted); }

.form-flash {
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}
.form-flash.contact_ok,
.form-flash.ok { background: #dcfce7; color: #166534; }
.form-flash.contact_error,
.form-flash.error { background: #fee2e2; color: #991b1b; }

.contact-form {
  display: grid;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.contact-form button {
  justify-self: start;
  margin-top: 0.2rem;
  cursor: pointer;
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.cta .note {
  margin-top: 1rem;
  color: var(--muted);
}

footer {
  padding: 1.5rem 6vw 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

/* Pricing page */
.page-pricing .top-solid {
  position: sticky;
  background: rgba(5,7,13,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-pricing .top-solid .logo,
.page-pricing .top-solid nav a { color: #fff; }

.pricing-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5.5rem 6vw 4rem;
  position: relative;
  z-index: 1;
}
.pricing-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}
.pricing-hero p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  max-width: 46ch;
}
.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2rem 0 1rem;
}
.product-tab {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  background: rgba(255,255,255,0.92);
}
.product-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.pricing-blurb {
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.plan-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  backdrop-filter: blur(6px);
}
.plan-card.featured {
  border-color: var(--blue);
  box-shadow: 0 12px 40px rgba(37,99,235,0.12);
}
.plan-badge {
  margin: 0;
  justify-self: start;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-deep);
  background: rgba(37,99,235,0.1);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.plan-card h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.plan-sub { margin: 0; color: var(--muted); font-size: 0.92rem; }
.plan-price {
  margin: 0.35rem 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.plan-card ul {
  margin: 0.4rem 0 0.8rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.plan-card li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink);
  font-size: 0.95rem;
}
.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--blue);
}
.plan-card .btn { width: 100%; }
.plan-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.pricing-result {
  max-width: 560px;
  margin: 0 auto;
  padding: 7rem 6vw 4rem;
}
.pricing-result h1 { margin: 0 0 0.7rem; }
.pricing-result p { color: var(--muted); margin: 0 0 1.2rem; }

.plan-admin {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
  display: grid;
  gap: 0.7rem;
}
.plan-admin h3 { margin: 0; font-size: 1rem; }
.admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
}

@keyframes drift {
  from { transform: scale(1.02) translate3d(0,0,0); }
  to { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (max-width: 900px) {
  .product-block,
  .product-block.flip {
    grid-template-columns: 1fr;
  }
  .product-block.flip .product-copy,
  .product-block.flip .product-visual { order: initial; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure { aspect-ratio: 16 / 10; }
  nav a:not(.nav-cta) { display: none; }
  .hero-copy { padding-bottom: 8vh; }
  .contact-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
}
