/* =========================================================================
   Flomax.ai — landing page, Kling-style edition.

   Product-first layout: centered hero with one big still, alternating
   feature blocks, a short about band, a plain CTA panel.
   Monochrome only — all colour comes from the generated stills and the
   logo. One typeface (Archivo) for everything. No animations at all:
   hover states switch instantly.
   ========================================================================= */

/* ================================================================ fonts */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body.landing {
  /* Scoped overrides: only this page changes type and palette. Every
     value here re-declares a token base.css already defines. The neutrals
     are cooled from cream/grey to blue-violet greys so the page sits in
     the same violet-and-blue theme as the rest of the app. */
  --font: "Archivo", "Inter", system-ui, sans-serif;
  --bg: #0a0a10;
  --panel: #101018;
  --surface: #14141e;
  --ink: #f1f2f9;
  --ink-2: #a5a8c2;
  --ink-3: #787b96;
  --line: rgba(226, 228, 255, .12);
  --line-strong: rgba(226, 228, 255, .28);
  --blue: #6f9bff;
  --violet: #a78bfa;
  --grad: linear-gradient(100deg, #6813fd 0%, #4f8cff 55%, #a78bfa 100%);
  --radius: 14px;
  background: var(--bg);
  color: var(--ink);
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -.03em;
}

/* ================================================================ header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 10, 16, .88);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1200px, calc(100% - 48px));
  height: 68px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 25px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}

.site-nav a {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover { background: rgba(167, 139, 250, .14); color: var(--ink); }

.site-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch button,
.lang-switch a {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
}

.lang-switch button + button,
.lang-switch a + a { border-left: 1px solid var(--line); }
.lang-switch button[aria-pressed="true"],
.lang-switch a[aria-current="page"] { background: var(--grad); color: #fff; }
.lang-switch button:hover,
.lang-switch a:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"]:hover,
.lang-switch a[aria-current="page"]:hover { color: #fff; }

.site-signin {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}

.site-signin:hover { color: var(--violet); }

.site-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-cta svg { width: 15px; height: 15px; }
.site-cta:hover { background: linear-gradient(100deg, #7a2bff 0%, #5f9bff 55%, #b79bff 100%); }

.site-menu-btn {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.site-menu-btn svg { width: 20px; height: 20px; }
.site-menu-btn .menu-close { display: none; }

.site-header.nav-open .site-menu-btn .menu-open { display: none; }
.site-header.nav-open .site-menu-btn .menu-close { display: block; }

/* ============================================================ mobile menu */

.mobile-menu {
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 16, .97);
  backdrop-filter: blur(16px);
  padding: 14px 24px 22px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.mobile-nav a:active { color: var(--ink); }

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.mobile-actions .btn-ghost { flex: 1; height: 42px; }
.mobile-actions .site-cta { flex: 1.4; justify-content: center; height: 42px; }

/* =============================================================== buttons */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary svg { width: 17px; height: 17px; }
.btn-primary:hover { background: linear-gradient(100deg, #7a2bff 0%, #5f9bff 55%, #b79bff 100%); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.btn-ghost svg { width: 16px; height: 16px; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(167, 139, 250, .12); border-color: var(--violet); }

/* ================================================================== hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(118px, 15vw, 164px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

/* The moving picture: a looping clip behind the headline. Poster keeps
   the frame filled before the video loads, and stands in for it entirely
   under prefers-reduced-motion (see the end of this file). */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0a0a10 url("/stills/hero.jpg") center / cover no-repeat;
}

.hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrim: dark under the header and the specs, lighter through the middle
   so the clip reads, solid at the bottom so the hero dissolves into page. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 16, .86) 0%,
    rgba(10, 10, 16, .52) 40%,
    rgba(10, 10, 16, .74) 74%,
    #0a0a10 100%
  );
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

/* Centered, product-first — the Kling hero shape. */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  padding: 7px 15px;
  border: 1px solid rgba(167, 139, 250, .38);
  border-radius: 999px;
  background: rgba(167, 139, 250, .1);
  color: #c9b6ff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
}

/* Palette gradient across the headline: light blue into violet, the two
   colours of the Flomax mark. Painted on the h1 box and cut out of the
   glyphs, so both lines read as one continuous sweep. The solid ink
   colour is the fallback for engines without background-clip:text. */
.hero-inner h1 {
  max-width: 900px;
  margin-top: 26px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  color: var(--ink);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-inner h1 {
    background-image: linear-gradient(100deg, #6fc8ff 0%, #5b8cff 45%, #8f7bff 75%, #b57bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 16px rgba(0, 0, 0, .5));
  }
}

.hero-inner h1 span,
.hero-inner h1 em { display: block; font-style: normal; }

.hero-lede {
  max-width: 640px;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 520px;
  margin-top: 22px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.hero-note svg { width: 15px; height: 15px; margin-top: 2px; flex: none; }

/* Six-up spec strip under the still. */
.hero-specs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: clamp(36px, 6vw, 72px) 0 0;
  border-top: 1px solid var(--line);
}

.hero-specs div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 20px 18px;
}

.hero-specs div + div { border-left: 1px solid var(--line); }

.hero-specs dd {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.hero-specs dt {
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
}

/* ==================================================== feature blocks */

.section {
  padding: clamp(72px, 9vw, 116px) 0;
  scroll-margin-top: 84px;
}

/* Alternating copy ↔ still rows, the Kling model-section pattern. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }

.feature--flip .feature-copy { order: 2; }
.feature--flip .feature-shot { order: 1; }

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.feature-tag span:first-child {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.feature-copy h2 {
  max-width: 460px;
  margin-top: 20px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
}

.feature-copy > p:not(.feature-tag) {
  max-width: 500px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}

.feature-copy .btn-primary { margin-top: 28px; }

.feature-shot {
  margin: 0;
}

.feature-shot img,
.feature-shot video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

/* Section headings shared by the about band and the CTA panel. */

.about-inner h2,
.cta-panel h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
}

/* =============================================================== about */

.about-inner {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.about-inner p {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ====================================================== ambient gradient */

/* Two ink washes behind #services and #about: layer A carries the violet and
   blue blobs, layer B a lone light-violet one drifting on a different clock,
   so the two shear past each other like ink dispersing in water instead of
   one plate sliding around. Only transforms animate — the browser composites
   textures rather than repainting them. Every blob finishes fading to
   transparent inside the layer box, so a swung edge never shows a seam. Each
   color sits at a quarter of its original strength (.38/.30/.20 -> .095/
   .075/.05). */
.features,
.about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.features::before,
.about::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 30% 35%, rgba(104, 19, 253, .095), transparent 70%),
    radial-gradient(38% 40% at 70% 65%, rgba(79, 140, 255, .075), transparent 72%);
  animation: ink-current-a 24s ease-in-out infinite;
}

.features::after,
.about::after {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 44% at 55% 45%, rgba(167, 139, 250, .05), transparent 70%);
  animation: ink-current-b 31s ease-in-out infinite;
}

/* The copy sits above the washes, never inside them. */
.features > .wrap,
.about > .wrap {
  position: relative;
  z-index: 1;
}

/* Ink motion: each wash spreads (scale up reads as dispersion), contracts,
   curls a few degrees and travels on an off-kilter loop. First and last stop
   match, so each loop seams shut; ease-in-out eases into every turn instead
   of snapping. The 24s / 31s pairing never realigns, so the two washes keep
   passing each other in new configurations forever. */
@keyframes ink-current-a {
  0%   { transform: translate3d(-12%, -6%, 0) rotate(0deg) scale(1.05); }
  25%  { transform: translate3d(4%, -13%, 0) rotate(5deg) scale(1.22); }
  50%  { transform: translate3d(13%, 5%, 0) rotate(2deg) scale(1.08); }
  75%  { transform: translate3d(-3%, 13%, 0) rotate(-6deg) scale(1.26); }
  100% { transform: translate3d(-12%, -6%, 0) rotate(0deg) scale(1.05); }
}

@keyframes ink-current-b {
  0%   { transform: translate3d(10%, 8%, 0) rotate(0deg) scale(1.15); }
  33%  { transform: translate3d(-9%, 2%, 0) rotate(-7deg) scale(1.02); }
  66%  { transform: translate3d(2%, -12%, 0) rotate(4deg) scale(1.2); }
  100% { transform: translate3d(10%, 8%, 0) rotate(0deg) scale(1.15); }
}

/* ================================================================ cta */

.section--cta { padding-top: clamp(20px, 3vw, 40px); }

.cta-panel {
  padding: clamp(44px, 7vw, 84px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  text-align: center;
}

.cta-panel h2 { max-width: 700px; margin-inline: auto; }

.cta-panel > p {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* =============================================================== footer */

.site-footer {
  margin-top: clamp(72px, 9vw, 116px);
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) auto;
  gap: 36px;
  align-items: start;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 4px;
}

.footer-nav a {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover { color: var(--violet); }

.footer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-mail {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}

.footer-mail:hover { color: var(--violet); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12.5px;
}

/* ============================================================ responsive */

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-menu-btn { display: grid; }
  .site-signin { display: none; }
  .site-actions .site-cta { display: none; }

  .hero-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-specs div:nth-child(4) { border-left: 0; }
  .hero-specs div:nth-child(n+4) { border-top: 1px solid var(--line); }

  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature--flip .feature-copy { order: 1; }
  .feature--flip .feature-shot { order: 2; }
  .feature-copy h2 { max-width: none; }
}

@media (max-width: 760px) {
  .wrap, .site-header-inner { width: calc(100% - 36px); }
  .site-header-inner { height: 62px; }

  .hero { padding-top: 96px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: min(360px, 100%); }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; }
  .hero-note { text-align: left; }

  .hero-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-specs div { padding: 16px 14px; }
  .hero-specs div:nth-child(odd) { border-left: 0; }
  .hero-specs div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-specs div:nth-child(4) { border-left: 1px solid var(--line); }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn-primary,
  .cta-actions .btn-ghost { width: 100%; }

  .footer-side { flex-direction: column; align-items: flex-start; }
}

/* The hero clip and the services examples are the page's moving pictures —
   anyone who asks for reduced motion gets their poster frames instead, and
   the ink washes keep their colors but stop flowing. */
@media (prefers-reduced-motion: reduce) {
  .hero-media video { display: none; }
  .features::before,
  .about::before,
  .features::after,
  .about::after { animation: none; }
}
