:root {
  --bg-1: #ffdcd6;
  --bg-2: #dff2ff;
  --bg-3: #ddffe9;
  --text: #1f2430;
  --muted: #505a6b;
  --glass-strong: rgba(255, 255, 255, 0.24);
  --glass-soft: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.4);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 20px;
  --accent-cyan: rgba(88, 217, 255, 0.35);
  --accent-purple: rgba(157, 125, 255, 0.35);
  --accent-blue: rgba(124, 167, 255, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(48% 58% at 14% 12%, rgba(255, 168, 184, 0.44), transparent 70%),
    radial-gradient(52% 62% at 86% 16%, rgba(137, 217, 255, 0.45), transparent 72%),
    radial-gradient(44% 54% at 74% 84%, rgba(120, 246, 176, 0.4), transparent 70%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 52%, var(--bg-3) 100%);
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: -1;
}
body::before {
  background:
    radial-gradient(circle at 20% 24%, rgba(155, 117, 255, 0.32), transparent 34%),
    radial-gradient(circle at 78% 20%, rgba(109, 232, 255, 0.34), transparent 36%),
    radial-gradient(circle at 70% 82%, rgba(115, 255, 180, 0.32), transparent 36%);
  animation: ambientFloat 18s ease-in-out infinite alternate;
}
body::after {
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.38) 36%, transparent 68%);
  opacity: .25;
  animation: sheenSweep 16s linear infinite;
}

@keyframes ambientFloat {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-18px,10px,0) scale(1.05); }
}
@keyframes sheenSweep {
  from { transform: translateX(-30%); }
  to { transform: translateX(30%); }
}

.container { width: min(1160px, 92%); margin: 0 auto; }
main { min-height: 70vh; }
section { padding: 3.2rem 0; }

header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: .8rem;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .82rem 1.1rem;
}

.logo { font-size: 2rem; font-weight: 800; text-decoration: none; color: #3c4658; }
.nav-links { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: #4b5568;
  text-decoration: none;
  padding: .52rem .86rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: .28s ease;
}
.nav-links a:hover,
.nav-links a.active {
  border-color: var(--line);
  background: rgba(255,255,255,.24);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.25);
  padding: .36rem .62rem;
}
.menu-btn span { display: block; width: 4px; height: 4px; border-radius: 50%; background: #4f5a6f; margin: 2px auto; }

h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.02em; }
.section-title { font-size: clamp(1.4rem, 3vw, 2.35rem); margin-bottom: .75rem; }
.sub,p,li { color: var(--muted); line-height: 1.62; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.2rem; align-items: center; }

.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--glass-strong), var(--glass-soft));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.7);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,.45), transparent 34%, rgba(255,255,255,.16) 56%, transparent 80%),
    radial-gradient(circle at 85% 86%, var(--accent-cyan), transparent 40%),
    radial-gradient(circle at 16% 18%, var(--accent-purple), transparent 38%);
  opacity: .48;
}

.nav-wrap,
.card,
.btn,
input,
textarea,
select,
.chip,
.faq details,
footer {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--glass-strong), var(--glass-soft));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.72);
}


.card {
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  --mx: 50%;
  --my: 50%;
}

.card::after,
.nav-wrap::after,
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.55), rgba(255,255,255,.16) 18%, rgba(255,255,255,0) 42%),
    linear-gradient(130deg, rgba(255,255,255,.28), transparent 40%);
  opacity: .55;
}

.card:hover,
.btn:hover,
.nav-wrap:hover {
  transform: translateY(-3px);
  box-shadow:
    0 26px 62px rgba(0,0,0,.14),
    0 8px 18px rgba(77, 111, 188, .2),
    inset 0 1px 0 rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.64);
}

.tile { padding: 1.12rem; }
.thumb,.hero-visual { width: 100%; display: block; border-radius: 18px; }
.thumb { position: relative; }

.grid-2 { display:grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.grid-4 { display:grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.problem-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: .9rem; }
.problem { padding: 1rem; border-left: 3px solid rgba(148, 132, 255, .52); }

.btns { display:flex; flex-wrap:wrap; gap: .75rem; margin-top: 1rem; }
.btn {
  position: relative;
  border-radius: 999px;
  padding: .8rem 1.2rem;
  text-decoration: none;
  color: #333c4d;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .28s ease, box-shadow .28s ease;
}
.btn.primary {
  background: linear-gradient(145deg, rgba(255,186,217,.38), rgba(157,255,245,.28));
}
.btn.ghost {
  background: linear-gradient(145deg, rgba(255,255,255,.23), rgba(255,255,255,.14));
}
.btn::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 5px;
  height: 34%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.56), transparent);
  pointer-events: none;
}

.badge { font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #5e6980; }

form { display:grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
label { display: block; font-size: .92rem; font-weight: 600; color: #445065; }
input,textarea,select {
  width: 100%;
  margin-top: .33rem;
  border-radius: 14px;
  padding: .72rem;
  border: 1px solid rgba(255,255,255,.58);
  background: rgba(255,255,255,.22);
  color: #334155;
  font: inherit;
  box-shadow: inset 0 1px 4px rgba(255,255,255,.35);
}
input::placeholder,textarea::placeholder { color: rgba(70,84,107,.65); }
textarea { min-height: 130px; resize: vertical; }
.full { grid-column: 1 / -1; }
fieldset { border: 1px solid rgba(255,255,255,.58); border-radius: 16px; }
fieldset label { display: inline-flex; align-items: center; gap: .35rem; margin: .3rem .75rem .3rem 0; font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border-radius: 999px; padding: .32rem .65rem; color: #45526a; }

.table-wrap { overflow: auto; }
.table-footer { display:grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
footer { margin-top: 2.2rem; }
footer .container { padding: 1.5rem 0; }
footer a { color: #4b5b79; text-decoration: none; }
.bottom-line { color: #434f66; font-size: .94rem; }

.most-popular {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: .24rem .58rem;
  border: 1px solid rgba(255,255,255,.58);
  background: rgba(255,255,255,.25);
  font-size: .75rem;
  font-weight: 800;
}

.faq details { border-radius: 14px; padding: .9rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 700; color: #364255; }

.reveal-card { opacity: 0; transform: translateY(44px) scale(.96); }
.reveal-card.in-view { animation: revealUp .85s cubic-bezier(.2,.75,.3,1) forwards; }
@keyframes revealUp {
  0% { opacity: 0; transform: translateY(44px) scale(.96); }
  70% { opacity: 1; transform: translateY(-2px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.sticky-cta { position: fixed; right: 18px; bottom: 18px; z-index: 120; }

/* liquid logo hero */
.liquid-main-shell {
  min-height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.liquid-logo-pill,
.liquid-floating-card {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.5);
  background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.14));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.82);
  position: relative;
  overflow: hidden;
}
.liquid-logo-pill {
  width: min(420px, 92%);
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: .9rem;
  padding: 1.05rem 1.3rem;
  animation: logoFloat 6.2s ease-in-out infinite;
}
.liquid-floating-card {
  position: absolute;
  right: 6%;
  bottom: -22px;
  width: min(280px, 78%);
  padding: .9rem 1rem;
  animation: floatCard 5.8s ease-in-out infinite;
}
.liquid-distort { transform: translateZ(0); }
.castflow-logo-mark { width: 64px; height: 64px; position: relative; }
.castflow-logo-mark span { position: absolute; left: 0; right: 0; margin: auto; background: #fff; border-radius: 999px; }
.castflow-logo-mark span:nth-child(1) { width: 58px; height: 18px; top: 7px; transform: rotate(-20deg); }
.castflow-logo-mark span:nth-child(2) { width: 54px; height: 16px; top: 24px; transform: rotate(-14deg); }
.castflow-logo-mark span:nth-child(3) { width: 46px; height: 16px; top: 41px; transform: rotate(8deg); }
.logo-stack strong { display:block; font-size: clamp(1.8rem, 4vw, 2.5rem); color:#fff; text-shadow:0 0 10px rgba(255,255,255,.48); }
.logo-stack small { color: rgba(255,255,255,.95); letter-spacing: .07em; font-weight: 600; }

@keyframes floatCard {
  0%,100% { transform: translateY(-3px); }
  50% { transform: translateY(5px); }
}
@keyframes logoFloat {
  0%,100% { transform: translateY(-5px) scale(1); }
  50% { transform: translateY(6px) scale(1.03); }
}

/* Added by interactive JS */
.glass-orbs {
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: .52;
  animation: orbFloat 18s ease-in-out infinite;
}
.orb-1 { width: 34vw; height: 34vw; min-width: 250px; min-height: 250px; left: -8%; top: 10%; background: radial-gradient(circle, rgba(171,115,255,.7), rgba(171,115,255,0)); }
.orb-2 { width: 30vw; height: 30vw; min-width: 220px; min-height: 220px; right: -8%; top: 12%; background: radial-gradient(circle, rgba(96,218,255,.72), rgba(96,218,255,0)); animation-delay: -6s; }
.orb-3 { width: 38vw; height: 38vw; min-width: 290px; min-height: 290px; right: 8%; bottom: -12%; background: radial-gradient(circle, rgba(128,255,182,.68), rgba(128,255,182,0)); animation-delay: -10s; }
@keyframes orbFloat {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(20px,-16px,0) scale(1.06); }
}

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 920px) {
  .hero,.grid-2,.grid-3,.grid-4,.problem-grid,.table-footer,form { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    right: 4%;
    width: min(360px,92vw);
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.26);
    padding: .55rem;
    flex-direction: column;
    align-items: stretch;
    z-index: 120;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .sticky-cta { left: 14px; right: 14px; text-align: center; }
  .sticky-cta .btn { width: 100%; }
  .liquid-main-shell { min-height: 350px; }
  .liquid-floating-card { position: static; width: 100%; margin-top: .8rem; }
  .orb { opacity: .45; }
  .card:hover,
  .btn:hover,
  .nav-wrap:hover { transform: none; }
}
