/* Shared front-door styling for the products sold separately from ClipLab.
   One file so Studio and Ads read as siblings rather than two unrelated sites.

   The look is glass over a dark, slowly moving ground: translucent panels with a
   real hairline edge and a light bloom behind them, the way Apple's material
   works. The trick that makes glass read as glass is the EDGE, not the blur, so
   every panel gets a bright top border and a darker bottom one. */

:root {
  --ink: #f4f6fb;
  --ink-2: #a8b2c6;
  --ink-3: #6d7789;
  --ground: #05070c;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --edge: rgba(255, 255, 255, 0.11);
  --edge-hi: rgba(255, 255, 255, 0.22);
  --accent: #6ea8ff;
  --accent-2: #b07cff;
  --ok: #46d39a;
  --radius: 18px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The ground. Two large soft lights that drift, so the glass has something to
   refract instead of sitting on flat black. Fixed and behind everything. */
.lf-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lf-bg span {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
}
.lf-bg span:nth-child(1) {
  width: 60vw; height: 60vw; left: -14vw; top: -18vw;
  background: radial-gradient(circle at 40% 40%, #2a4d8f, transparent 68%);
  animation: drift1 34s ease-in-out infinite alternate;
}
.lf-bg span:nth-child(2) {
  width: 52vw; height: 52vw; right: -12vw; top: 12vh;
  background: radial-gradient(circle at 60% 40%, #5b3a8f, transparent 68%);
  animation: drift2 42s ease-in-out infinite alternate;
}
.lf-bg span:nth-child(3) {
  width: 44vw; height: 44vw; left: 24vw; bottom: -20vw;
  background: radial-gradient(circle at 50% 50%, #14504a, transparent 70%);
  animation: drift1 50s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 { to { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-7vw, 7vh, 0) scale(1.08); } }

/* A fine grain over the whole page. Without it large blurred gradients band
   visibly on cheap panels. */
.lf-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lf-wrap { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- glass primitives ---- */
.glass {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-top-color: var(--edge-hi);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset,
              0 24px 60px -30px rgba(0,0,0,0.9);
}

/* ---- nav ---- */
.lf-nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(5, 7, 12, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lf-nav .lf-wrap { display: flex; align-items: center; gap: 1rem; height: 62px; }
.lf-logo { font-weight: 600; letter-spacing: -0.02em; font-size: 1.02rem; display: flex; align-items: baseline; gap: 0.5rem; }
.lf-logo b { font-weight: 650; }
.lf-logo span { color: var(--ink-3); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; }
.lf-nav nav { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.62rem 1.15rem; border-radius: 999px; font-size: 0.9rem; font-weight: 550;
  border: 1px solid var(--edge); background: var(--glass-2); color: var(--ink);
  text-decoration: none; cursor: pointer; transition: transform .18s, background .18s, border-color .18s;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn:hover { background: rgba(255,255,255,0.12); border-color: var(--edge-hi); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #7db0ff, #4f7fe0);
  border-color: rgba(255,255,255,0.28); color: #05070c; font-weight: 650;
  box-shadow: 0 10px 30px -12px rgba(110,168,255,0.7);
}
.btn-primary:hover { background: linear-gradient(180deg, #92bcff, #5b8bec); }
.btn-ghost { background: transparent; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- hero ---- */
.lf-hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3.5rem); }
.lf-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 1.4rem;
  padding: 0.36rem 0.85rem 0.36rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--edge); background: var(--glass);
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.lf-eyebrow i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 12px var(--ok); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.lf-hero h1 {
  margin: 0 0 1.1rem; font-size: clamp(2.4rem, 6.4vw, 4.5rem); line-height: 1.02;
  letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; max-width: 20ch;
}
.lf-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lf-sub { font-size: clamp(1rem, 1.7vw, 1.2rem); color: var(--ink-2); max-width: 56ch; margin: 0 0 2rem; }
.lf-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.lf-cta small { color: var(--ink-3); font-size: 0.8rem; }

/* ---- proof strip ---- */
.lf-proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px;
            background: var(--edge); border: 1px solid var(--edge); border-radius: var(--radius);
            overflow: hidden; margin: 2.5rem 0 0; }
.lf-proof div { background: rgba(255,255,255,0.03); padding: 1.05rem 1.2rem;
                backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.lf-proof b { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em;
              font-variant-numeric: tabular-nums; }
.lf-proof span { font-size: 0.78rem; color: var(--ink-3); }

/* ---- sections ---- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; z-index: 2; }
.lf-h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.025em; font-weight: 600;
         margin: 0 0 0.7rem; text-wrap: balance; }
.lf-lede { color: var(--ink-2); max-width: 62ch; margin: 0 0 2.4rem; }

.lf-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.lf-card { padding: 1.5rem; }
.lf-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.lf-card p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.lf-card .ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
               margin-bottom: 0.9rem; background: var(--glass-2); border: 1px solid var(--edge);
               font-size: 1.05rem; }

/* ---- pricing ---- */
.lf-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 1rem;
            align-items: start; }
.lf-tier { padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; position: relative; }
.lf-tier.feature { border-color: rgba(110,168,255,0.4); border-top-color: rgba(110,168,255,0.6);
                   background: rgba(110,168,255,0.075);
                   box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset,
                               0 30px 70px -30px rgba(110,168,255,0.45); }
.lf-tier .tag { position: absolute; top: -11px; left: 1.5rem; padding: 0.2rem 0.7rem;
                border-radius: 999px; font-size: 0.68rem; letter-spacing: 0.1em;
                text-transform: uppercase; font-weight: 650; color: #05070c;
                background: linear-gradient(180deg, #8fbcff, #5b8bec); }
.lf-tier h3 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.lf-tier .price { display: flex; align-items: baseline; gap: 0.35rem; }
.lf-tier .price b { font-size: 2.3rem; font-weight: 600; letter-spacing: -0.035em;
                    font-variant-numeric: tabular-nums; }
.lf-tier .price span { color: var(--ink-3); font-size: 0.86rem; }
.lf-tier .who { color: var(--ink-2); font-size: 0.88rem; margin: -0.4rem 0 0; }
.lf-tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.lf-tier li { font-size: 0.89rem; color: var(--ink-2); display: flex; gap: 0.55rem; align-items: flex-start; }
.lf-tier li::before { content: ""; flex: 0 0 auto; width: 15px; height: 15px; margin-top: 0.18rem;
                      border-radius: 50%; background: rgba(70,211,154,0.14);
                      border: 1px solid rgba(70,211,154,0.5);
                      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.3l2 2 4-4.6' fill='none' stroke='%2346d39a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
                      background-size: 11px; background-position: center; background-repeat: no-repeat; }
.lf-tier .btn { margin-top: auto; width: 100%; }

/* ---- waitlist ---- */
.lf-join { padding: clamp(1.8rem, 4vw, 2.8rem); }
.lf-join form { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lf-join label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.78rem; color: var(--ink-3); }
.lf-join .wide { grid-column: 1 / -1; }
.lf-join input, .lf-join select, .lf-join textarea {
  font: inherit; font-size: 0.92rem; color: var(--ink); padding: 0.7rem 0.85rem;
  border-radius: 12px; border: 1px solid var(--edge); background: rgba(255,255,255,0.045);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lf-join textarea { resize: vertical; min-height: 74px; }
.lf-join input:focus, .lf-join select:focus, .lf-join textarea:focus {
  outline: none; border-color: rgba(110,168,255,0.65);
  box-shadow: 0 0 0 3px rgba(110,168,255,0.16);
}
.lf-join option { background: #0c1018; color: var(--ink); }
.lf-note { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--ink-3); min-height: 1.2em; }
.lf-note.ok { color: var(--ok); }
.lf-note.bad { color: #ff8f7a; }

/* ---- footer ---- */
footer { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,0.06);
         padding: 2.2rem 0 3rem; color: var(--ink-3); font-size: 0.85rem; }
footer .lf-wrap { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .spacer { margin-left: auto; }
.lf-live { display: inline-flex; align-items: center; gap: 0.45rem; }
.lf-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d6d;
             box-shadow: 0 0 10px #ff4d6d; animation: pulse 2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .lf-bg span, .lf-eyebrow i, .lf-live i { animation: none !important; }
  .btn { transition: none; }
}
