/* ============================================================
   TRIALFLO — Enterprise lifesciences SaaS aesthetic
   Modeled after: Veeva Vault, Crio, Stripe, Linear
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;1,9..144,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --navy:       #0B1F3F;
  --navy-2:     #0A2A6E;
  --navy-deep:  #071633;
  --ink:        #0B1220;
  --ink-2:      #1A2340;
  --white:      #FFFFFF;
  --mist:       #F5F7FB;
  --mist-2:     #EEF2F8;
  --line:       #E3E8F0;
  --line-2:     #D4DCEA;
  --muted:      #5B6B85;
  --muted-2:    #8695AE;
  --teal:       #14B8B1;
  --teal-deep:  #0E918C;
  --teal-soft:  #E6FAF8;
  --blue:       #2563EB;
  --blue-soft:  #EEF4FF;
  --success:    #10B981;
  --warn:       #F59E0B;
  --danger:     #EF4444;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11,31,63,0.06), 0 1px 1px rgba(11,31,63,0.04);
  --shadow-md: 0 4px 12px rgba(11,31,63,0.08), 0 2px 4px rgba(11,31,63,0.04);
  --shadow-lg: 0 20px 48px -12px rgba(11,31,63,0.18), 0 8px 16px -4px rgba(11,31,63,0.08);
  --shadow-xl: 0 32px 80px -16px rgba(11,31,63,0.28), 0 12px 24px -6px rgba(11,31,63,0.10);

  --container: 1200px;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1340px; margin: 0 auto; padding: 0 24px; }

.mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.serif { font-family: 'Fraunces', Georgia, serif; font-weight: 400; letter-spacing: -0.02em; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--navy); }
h1 { font-size: clamp(40px, 5.5vw, 68px); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1.08; }
h3 { font-size: 22px; }
h4 { font-size: 17px; }
p { color: var(--ink-2); }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); }

/* ==== nav ==== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: 1340px; margin: 0 auto; padding: 0 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--navy); }
.nav__brand .accent { color: var(--teal); }
.nav__brand svg { border-radius: 8px; }
.nav__links { display: flex; gap: 4px; align-items: center; }
.nav__links a { padding: 8px 14px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); border-radius: 8px; transition: all .18s ease; }
.nav__links a:hover { color: var(--navy); background: var(--mist); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__signin { color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 8px 14px; }
.nav__signin:hover { color: var(--navy); }

/* ==== buttons ==== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; font-size: 14.5px; font-weight: 600; border-radius: 10px; transition: all .2s cubic-bezier(.2,.7,.2,1); white-space: nowrap; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 1px 2px rgba(11,31,63,0.2); }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--navy); background: var(--mist); }
.btn-accent { background: var(--teal); color: var(--white); }
.btn-accent:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 15.5px; border-radius: 12px; }
.btn-ghost { color: var(--navy); padding: 11px 16px; }
.btn-ghost:hover { background: var(--mist); }
.btn svg { width: 16px; height: 16px; }
.btn-arrow { transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ==== pill ==== */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 100px; background: var(--teal-soft); border: 1px solid rgba(20,184,177,0.2); color: var(--teal-deep); font-size: 12.5px; font-weight: 600; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.pill-blue { background: var(--blue-soft); color: var(--blue); border-color: rgba(37,99,235,0.18); }
.pill-blue .dot { background: var(--blue); }

/* ==== HERO ==== */
.hero { position: relative; padding: 88px 0 80px; background: radial-gradient(1000px 500px at 85% -10%, rgba(20,184,177,0.08), transparent 60%), radial-gradient(800px 400px at 15% 110%, rgba(37,99,235,0.06), transparent 60%), linear-gradient(180deg, #FAFBFE 0%, #FFFFFF 100%); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(11,31,63,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(11,31,63,0.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 35%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 0%, transparent 70%); pointer-events: none; }
.hero__inner { position: relative; max-width: 980px; margin: 0 auto; padding: 0 24px; text-align: center; }
.hero__pill { margin-bottom: 22px; }
.hero__title { margin-bottom: 20px; }
.hero__title .gradient { background: linear-gradient(135deg, var(--navy) 0%, var(--teal-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; color: var(--teal-deep); }
.hero__lede { max-width: 640px; margin: 0 auto 32px; font-size: 20px; line-height: 1.5; color: var(--muted); }
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__trust { margin-top: 28px; display: flex; align-items: center; gap: 12px; justify-content: center; color: var(--muted-2); font-size: 13.5px; }
.hero__trust .avatars { display: flex; }
.hero__trust .avatars span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--white); margin-left: -8px; background: linear-gradient(135deg, #a8c5ff, #5b8def); }
.hero__trust .avatars span:first-child { margin-left: 0; background: linear-gradient(135deg,#ffc3a8,#ff8e72);}
.hero__trust .avatars span:nth-child(2) { background: linear-gradient(135deg,#b8f2e6,#14b8b1);}
.hero__trust .avatars span:nth-child(3) { background: linear-gradient(135deg,#c9b8f2,#7e5bef);}
.hero__trust .avatars span:nth-child(4) { background: linear-gradient(135deg,#ffb8d1,#ef5b8f);}
.hero__trust strong { color: var(--ink); font-weight: 700; }

/* ==== product mockup ==== */
.hero__product { position: relative; max-width: 1080px; margin: 64px auto 0; padding: 0 24px; }
.browser { border-radius: var(--r-xl); background: var(--white); box-shadow: var(--shadow-xl); overflow: hidden; border: 1px solid var(--line); transform: perspective(1600px) rotateX(1.2deg); }
.browser__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--mist); border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots span { width: 11px; height: 11px; border-radius: 50%; background: #E4E9F2; }
.browser__dots span:nth-child(1) { background: #FF5F57; }
.browser__dots span:nth-child(2) { background: #FEBC2E; }
.browser__dots span:nth-child(3) { background: #28C840; }
.browser__url { flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); text-align: center; }

.screenshot { display: grid; grid-template-columns: 220px 1fr 320px; min-height: 480px; background: var(--white); }
.ss-side { border-right: 1px solid var(--line); padding: 18px 14px; background: var(--mist); font-size: 13px; }
.ss-side__title { font-weight: 800; color: var(--navy); margin-bottom: 14px; font-size: 15px; }
.ss-side ul { list-style: none; }
.ss-side li { padding: 8px 10px; border-radius: 7px; margin-bottom: 2px; color: var(--muted); display: flex; justify-content: space-between; align-items: center;}
.ss-side li.active { background: var(--white); color: var(--navy); font-weight: 600; box-shadow: var(--shadow-sm);}
.ss-side li small { background: var(--teal-soft); color: var(--teal-deep); padding: 1px 7px; border-radius: 20px; font-size: 11px; font-weight: 700;}

.ss-main { padding: 24px; overflow: hidden; }
.ss-main__header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px;}
.ss-main__title { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em;}
.ss-main__title span { color: var(--teal); }
.ss-chip { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--teal-soft); color: var(--teal-deep); text-transform: uppercase; letter-spacing: 0.06em;}

.ss-list__row { display: grid; grid-template-columns: 32px 1fr 100px 120px 70px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ss-list__row .idx { font-family: 'JetBrains Mono', monospace; color: var(--muted-2); font-size: 11px; font-weight: 600;}
.ss-list__row .nm { color: var(--navy); font-weight: 600;}
.ss-list__row .nm small { display: block; font-weight: 500; color: var(--muted-2); font-size: 11.5px; margin-top: 2px;}
.ss-list__row .badge { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.06em; width: fit-content;}
.ss-list__row .badge.done { background: #E6F9F1; color: #047857; }
.ss-list__row .badge.pro  { background: var(--teal-soft); color: var(--teal-deep); }
.ss-list__row .badge.new  { background: var(--blue-soft); color: var(--blue); }
.ss-list__row .bar { height: 4px; background: var(--mist-2); border-radius: 2px; overflow: hidden; position: relative;}
.ss-list__row .bar span { position: absolute; left: 0; top:0; bottom:0; background: var(--teal); border-radius: 2px;}
.ss-list__row .act { font-size: 11px; font-weight: 700; color: var(--teal-deep); text-align: right;}

.ss-right { border-left: 1px solid var(--line); padding: 20px 18px; background: var(--mist); font-size: 13px; }
.ss-right h5 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.ss-right p { color: var(--muted); font-size: 12.5px; margin-bottom: 16px; }
.ss-stat { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.ss-stat__label { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;}
.ss-stat__value { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em;}
.ss-stat__value span { font-size: 11px; color: var(--success); margin-left: 6px; font-weight: 700;}
.ss-mini-chart { height: 50px; display: flex; align-items: end; gap: 3px; margin-top: 8px;}
.ss-mini-chart span { flex: 1; background: linear-gradient(180deg, var(--teal), rgba(20,184,177,0.3)); border-radius: 2px 2px 0 0;}

.float-label { position: absolute; background: var(--navy); color: var(--white); padding: 8px 12px; border-radius: 10px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 3; }
.float-label::before { content: ''; position: absolute; width: 10px; height: 10px; background: var(--navy); transform: rotate(45deg); }
.fl-1 { top: 22%; left: 0; }
.fl-1::before { right: -4px; top: 50%; margin-top: -5px; }
.fl-2 { top: 48%; right: 0; }
.fl-2::before { left: -4px; top: 50%; margin-top: -5px; }
.fl-3 { bottom: 15%; left: 8%; }
.fl-3::before { top: -4px; left: 30px; }
.float-label .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 6px; vertical-align: 1px;}

/* ==== logos strip ==== */
.logos { padding: 48px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.logos__label { text-align: center; margin-bottom: 28px; color: var(--muted-2); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.logos__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; align-items: center; }
.logos__row > div { font-family: 'Fraunces', serif; font-weight: 500; font-size: 20px; color: var(--muted-2); text-align: center; letter-spacing: -0.01em; opacity: 0.75; transition: opacity .2s; }
.logos__row > div:hover { opacity: 1; color: var(--navy); }
.logos__row > div.sans { font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: -0.03em; }
.logos__row > div.mono { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 16px; letter-spacing: 0.02em;}

/* ==== sections ==== */
section.block { padding: 100px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .pill { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ==== features ==== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; transition: all .25s cubic-bezier(.2,.7,.2,1); position: relative; overflow: hidden; }
.feat:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feat__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; margin-bottom: 18px; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.feat:hover .feat__icon { transform: scale(1.08) rotate(-4deg); }
.feat__icon svg { width: 22px; height: 22px; }
.feat h3 { font-size: 19px; margin-bottom: 8px; }
.feat p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ==== split ==== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse .split__media { order: 2; }
.split h2 { margin-bottom: 18px; }
.split .lede { margin-bottom: 24px; }
.split__list { list-style: none; margin-top: 28px; }
.split__list li { display: flex; align-items: start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line);}
.split__list li:last-child { border-bottom: 1px solid var(--line);}
.split__list li svg { flex-shrink: 0; margin-top: 3px; width: 20px; height: 20px; color: var(--teal);}
.split__list li strong { color: var(--navy); display: block; margin-bottom: 2px; font-weight: 700;}
.split__list li span { color: var(--muted); font-size: 14.5px; }

.split__media { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); border-radius: var(--r-2xl); padding: 32px; color: var(--white); box-shadow: var(--shadow-xl); position: relative; overflow: hidden; min-height: 420px; }
.split__media::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 120% -10%, rgba(20,184,177,0.25), transparent 60%), radial-gradient(500px 300px at -20% 120%, rgba(37,99,235,0.22), transparent 60%); }
.split__media > * { position: relative; }
.mock-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-lg); padding: 18px; backdrop-filter: blur(20px); margin-bottom: 14px; }
.mock-card h5 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 4px;}
.mock-card p { color: rgba(255,255,255,0.7); font-size: 12.5px; margin-bottom: 10px;}
.mock-card .row { display:flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px;}
.mock-card .row:first-of-type { border-top: none; }
.mock-card .row .l { color: rgba(255,255,255,0.65); }
.mock-card .row .v { color: var(--white); font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 12px;}
.mock-card .row .v.teal { color: var(--teal); }

/* ==== stats ==== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); border-radius: var(--r-2xl); padding: 48px 24px; color: var(--white); position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; inset: 0; background: radial-gradient(1000px 400px at 50% -50%, rgba(20,184,177,0.18), transparent 70%); }
.stats > div { position: relative; text-align: center; padding: 0 16px; border-right: 1px solid rgba(255,255,255,0.1);}
.stats > div:last-child { border-right: none; }
.stats .value { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 6px; line-height: 1;}
.stats .value span { color: var(--teal); }
.stats .label { color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 500;}

/* ==== testimonial ==== */
.testimonial { max-width: 900px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: 56px; box-shadow: var(--shadow-md); position: relative; text-align: center; }
.testimonial__mark { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 60px; height: 60px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font-family: 'Fraunces', serif; font-size: 54px; font-weight: 500; line-height: 1; padding-top: 18px; box-shadow: var(--shadow-md); }
.testimonial blockquote { font-family: 'Fraunces', serif; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.35; color: var(--navy); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 28px; }
.testimonial__author { display: flex; gap: 14px; align-items: center; justify-content: center;}
.testimonial__avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #b8f2e6, #14b8b1); display: grid; place-items: center; color: var(--white); font-weight: 800; font-size: 18px; }
.testimonial__who strong { display: block; color: var(--navy); font-weight: 700;}
.testimonial__who span { font-size: 13.5px; color: var(--muted); }

/* ==== pricing ==== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: 32px; display: flex; flex-direction: column; position: relative; transition: all .25s ease; }
.plan:hover { border-color: var(--line-2); box-shadow: var(--shadow-md);}
.plan.featured { border: 2px solid var(--navy); background: linear-gradient(180deg, #fff 0%, #F9FBFF 100%); box-shadow: var(--shadow-lg); transform: scale(1.02); }
.plan.featured::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--navy); color: var(--white); padding: 4px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.plan__tag { color: var(--teal-deep); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 10px;}
.plan__name { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -0.025em; margin-bottom: 8px;}
.plan__desc { font-size: 14.5px; color: var(--muted); margin-bottom: 24px; }
.plan__price { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan__price .amt { font-size: 48px; font-weight: 800; color: var(--navy); letter-spacing: -0.035em; line-height: 1; }
.plan__price .per { color: var(--muted); font-size: 14px; margin-left: 6px;}
.plan__price .sub { font-size: 13px; color: var(--muted-2); margin-top: 6px; }
.plan__price .bespoke { font-family: 'Fraunces', serif; font-size: 42px; font-weight: 500; letter-spacing: -0.02em; font-style: italic; }
.plan ul { list-style: none; margin-bottom: 28px; flex: 1;}
.plan li { display: flex; gap: 10px; align-items: start; padding: 7px 0; font-size: 14.5px; color: var(--ink-2); }
.plan li svg { flex-shrink: 0; margin-top: 3px; width: 18px; height: 18px; color: var(--teal); }
.plan .btn { width: 100%; justify-content: center; }

/* ==== CTA band ==== */
.cta-band { position: relative; background: var(--navy); color: var(--white); border-radius: var(--r-2xl); padding: 72px 48px; text-align: center; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 400px at 20% -20%, rgba(20,184,177,0.3), transparent 60%), radial-gradient(800px 400px at 80% 120%, rgba(37,99,235,0.25), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); max-width: 18ch; margin: 0 auto 14px; }
.cta-band h2 em { color: var(--teal); font-style: italic; font-family: 'Fraunces', serif; font-weight: 400;}
.cta-band p { color: rgba(255,255,255,0.75); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.cta-band .hero__ctas .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3);}
.cta-band .hero__ctas .btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }

/* ==== footer ==== */
footer.site { background: var(--navy-deep); color: rgba(255,255,255,0.75); padding: 72px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.foot-brand { max-width: 320px; }
.foot-brand .nav__brand { color: var(--white); margin-bottom: 14px; }
.foot-brand p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.6; margin-bottom: 20px;}
.foot-brand .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-brand .badge-img { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: var(--teal); }
.foot-col h5 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.01em;}
.foot-col ul { list-style: none; }
.foot-col li { padding: 5px 0; font-size: 14px; }
.foot-col li a { color: rgba(255,255,255,0.65); transition: color .2s; }
.foot-col li a:hover { color: var(--teal); }

.foot-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.5); }
.foot-bottom .socials { display: flex; gap: 12px; }
.foot-bottom .socials a { width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); display: grid; place-items: center; transition: all .2s; }
.foot-bottom .socials a:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.foot-bottom .socials svg { width: 14px; height: 14px; }

/* ==== animations ==== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }
.fade-up { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; }
.d3 { animation-delay: .28s; } .d4 { animation-delay: .42s; } .d5 { animation-delay: .56s; }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-6px);} }
.float-label.fl-1 { animation: floaty 4s ease-in-out infinite; }
.float-label.fl-2 { animation: floaty 5s ease-in-out infinite .5s; }
.float-label.fl-3 { animation: floaty 4.5s ease-in-out infinite 1s; }

/* ============================================================
   LOGIN
   ============================================================ */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--white); }
.login-hero { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #0A2A6E 100%); color: var(--white); padding: 56px 48px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.login-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 500px at -20% 120%, rgba(37,99,235,0.3), transparent 60%), radial-gradient(700px 500px at 110% -20%, rgba(20,184,177,0.3), transparent 60%); }
.login-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, transparent, #000 40%, #000 80%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 80%, transparent); }
.login-hero > * { position: relative; z-index: 1;}
.login-hero .nav__brand { color: var(--white); }
.login-hero h2 { color: var(--white); font-size: clamp(36px, 4vw, 54px); margin-bottom: 20px; }
.login-hero h2 em { color: var(--teal); font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;}
.login-hero .lede { color: rgba(255,255,255,0.75); max-width: 440px; font-size: 17px;}
.login-hero__stats { display: flex; gap: 32px; margin-top: 36px; }
.login-hero__stats > div { padding-right: 28px; border-right: 1px solid rgba(255,255,255,0.14);}
.login-hero__stats > div:last-child { border-right: none; }
.login-hero__stats .v { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; line-height: 1; }
.login-hero__stats .v span { color: var(--teal); }
.login-hero__stats .l { font-size: 12.5px; color: rgba(255,255,255,0.6); margin-top: 4px;}
.login-hero__testimonial { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-lg); padding: 20px; backdrop-filter: blur(10px); }
.login-hero__testimonial p { font-family: 'Fraunces', serif; font-size: 18px; color: var(--white); line-height: 1.4; margin-bottom: 12px;}
.login-hero__testimonial cite { font-style: normal; color: rgba(255,255,255,0.65); font-size: 13px;}

.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 56px 48px; }
.login-form { width: 100%; max-width: 420px; }
.login-form h1 { font-size: 36px; margin-bottom: 8px; letter-spacing: -0.03em;}
.login-form .sub { color: var(--muted); margin-bottom: 32px; font-size: 15.5px;}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field__wrap { position: relative; }
.field__wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted-2);}
.field input { width: 100%; padding: 12px 14px 12px 44px; background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px; color: var(--navy); transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,177,0.12); }
.field-row { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 24px;}
.field-row label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 500;}
.field-row label input { accent-color: var(--teal); }
.field-row a { color: var(--teal-deep); font-weight: 600; font-size: 13.5px;}
.field-row a:hover { color: var(--navy); }
.login-form .btn { width: 100%; justify-content: center; padding: 13px; }
.login-divider { position: relative; text-align: center; margin: 24px 0; color: var(--muted-2); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;}
.login-divider::before, .login-divider::after { content: ''; position: absolute; top: 50%; width: calc(50% - 28px); height: 1px; background: var(--line);}
.login-divider::before { left: 0; } .login-divider::after { right: 0; }
.sso-btn { width: 100%; justify-content: center; padding: 12px; background: var(--white); border: 1.5px solid var(--line); color: var(--navy); font-weight: 600; border-radius: 10px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all .2s;}
.sso-btn:hover { border-color: var(--line-2); background: var(--mist);}
.sso-btn svg { width: 18px; height: 18px; }
.login-foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; text-align: center;}
.login-foot a { color: var(--teal-deep); font-weight: 700; }
.login-foot a:hover { color: var(--navy); }

/* ============================================================
   APP / UPLOAD
   ============================================================ */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: var(--mist); }
.app-sidebar { background: var(--white); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.app-sidebar .nav__brand { padding: 0 8px 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px;}
.side-section-title { font-size: 11px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 10px 6px;}
.side-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); margin: 1px 0; transition: all .15s; cursor: pointer; }
.side-item:hover { background: var(--mist); color: var(--navy);}
.side-item.active { background: var(--navy); color: var(--white); font-weight: 600;}
.side-item.active .count { background: var(--teal); color: var(--white);}
.side-item svg { width: 17px; height: 17px; }
.side-item .count { margin-left: auto; font-size: 11px; background: var(--mist-2); padding: 2px 8px; border-radius: 20px; font-weight: 700; color: var(--muted);}

.side-user { margin-top: auto; padding: 14px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; align-items: center; gap: 10px; }
.side-user__avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#b8f2e6,#14b8b1); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px;}
.side-user__info { flex: 1; min-width: 0;}
.side-user__info strong { display: block; font-size: 13px; color: var(--navy); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.side-user__info span { font-size: 11.5px; color: var(--muted);}

.app-main { padding: 32px 40px 60px; max-width: 1180px; width: 100%; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.app-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted);}
.app-breadcrumb .sep { color: var(--muted-2); }
.app-breadcrumb strong { color: var(--navy); font-weight: 600; }
.app-topbar__actions { display: flex; gap: 8px; align-items: center; }
.app-search { position: relative; }
.app-search input { width: 280px; padding: 9px 12px 9px 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 13.5px; color: var(--navy); transition: all .2s;}
.app-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,177,0.12);}
.app-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2);}

.app-h1 { font-size: 34px; margin-bottom: 4px; letter-spacing: -0.03em;}
.app-h1 span { color: var(--teal); }
.app-sub { color: var(--muted); margin-bottom: 28px; font-size: 15.5px; }

.upload-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.upload-card__head { padding: 22px 28px 0; }
.upload-card__head h3 { margin-bottom: 4px; }
.upload-card__head p { color: var(--muted); font-size: 14.5px; }

.dropzone { margin: 22px 28px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); padding: 56px 24px; text-align: center; background: var(--mist); cursor: pointer; transition: all .25s ease; }
.dropzone:hover, .dropzone.drag { border-color: var(--teal); background: var(--teal-soft); }
.dropzone__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 14px; color: var(--teal-deep); transition: transform .3s cubic-bezier(.2,.7,.2,1); box-shadow: var(--shadow-sm); }
.dropzone:hover .dropzone__icon { transform: translateY(-3px) scale(1.04); }
.dropzone__icon svg { width: 24px; height: 24px; }
.dropzone h4 { font-size: 18px; margin-bottom: 4px; }
.dropzone p.hint { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.dropzone input { display: none; }

.protocol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pcell { padding: 16px 22px; border-right: 1px solid var(--line); }
.pcell:nth-child(4n) { border-right: none; }
.pcell:nth-child(n+5) { border-top: 1px solid var(--line); }
.pcell label { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px;}
.pcell input, .pcell select { width: 100%; border: none; background: transparent; font-size: 15px; color: var(--navy); font-weight: 600; outline: none; padding: 2px 0;}
.pcell input:focus, .pcell select:focus { color: var(--teal-deep); }

.upload-card__foot { display: flex; justify-content: space-between; padding: 18px 28px; background: var(--mist); border-top: 1px solid var(--line); }
.upload-card__foot__left { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px;}
.upload-card__foot__left svg { width: 14px; height: 14px; color: var(--success); }
.upload-card__foot__right { display: flex; gap: 10px; }

.queue { margin-top: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.queue__head { padding: 20px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.queue__head h3 { font-size: 18px; }
.queue__tabs { display: flex; gap: 4px;}
.queue__tabs button { padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.queue__tabs button.active { background: var(--mist); color: var(--navy); }

.qrow { display: grid; grid-template-columns: 48px 1fr 140px 200px 120px; gap: 20px; align-items: center; padding: 16px 28px; border-bottom: 1px solid var(--line); font-size: 14px; transition: background .15s;}
.qrow:last-child { border-bottom: none; }
.qrow:hover { background: var(--mist); }
.qrow__num { width: 36px; height: 36px; border-radius: 8px; background: var(--mist); color: var(--muted); display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; }
.qrow__name strong { display: block; color: var(--navy); font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em; }
.qrow__name small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px;}
.qrow__status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; width: fit-content; }
.qrow__status .dot { width: 6px; height: 6px; border-radius: 50%;}
.qrow__status.done { background: #E6F9F1; color: #047857;} .qrow__status.done .dot { background: #10B981;}
.qrow__status.processing { background: var(--teal-soft); color: var(--teal-deep);} .qrow__status.processing .dot { background: var(--teal); animation: pulse 1.5s ease-in-out infinite;}
.qrow__status.draft { background: var(--mist-2); color: var(--muted);} .qrow__status.draft .dot { background: var(--muted-2);}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: 0.4; transform: scale(0.8);} }
.qrow__progress { position: relative; }
.qrow__progress .bar { height: 6px; background: var(--mist-2); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.qrow__progress .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal) 0%, var(--teal-deep) 100%); border-radius: 4px;}
.qrow__progress .pct { position: absolute; right: 0; top: -18px; font-size: 11px; font-weight: 700; color: var(--muted);}
.qrow__action { text-align: right; }
.qrow__action a { font-size: 13px; font-weight: 700; color: var(--teal-deep);}
.qrow__action a:hover { color: var(--navy); text-decoration: underline;}

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px;}
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.stat-card__label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px;}
.stat-card__value { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1;}
.stat-card__delta { font-size: 12px; font-weight: 700; margin-top: 6px;}
.stat-card__delta.up { color: var(--success); }
.stat-card__delta.down { color: var(--danger); }

/* ==== responsive ==== */
@media (max-width: 1024px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } .stats { grid-template-columns: repeat(2, 1fr); gap: 16px 0;} .stats > div:nth-child(2) { border-right: none; } }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .features, .pricing-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .split__media { order: 0; }
  .logos__row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .login-page { grid-template-columns: 1fr; }
  .login-hero { min-height: 320px; padding: 40px 28px;}
  .login-hero__stats { flex-wrap: wrap; gap: 20px;}
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-main { padding: 24px 20px; }
  .protocol-grid { grid-template-columns: repeat(2,1fr);}
  .pcell:nth-child(2n) { border-right: none;}
  .pcell:nth-child(n+3) { border-top: 1px solid var(--line);}
  .qrow { grid-template-columns: 48px 1fr; gap: 12px; }
  .qrow > :nth-child(n+3) { grid-column: 2; }
  .stat-cards { grid-template-columns: repeat(2,1fr); }
  .hero__product { margin-top: 40px; }
  .cta-band { padding: 48px 28px; }
  .plan.featured { transform: none; }
  .testimonial { padding: 40px 24px; }
  .app-search input { width: 180px; }
}
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } .logos__row { grid-template-columns: repeat(2, 1fr); } .screenshot { grid-template-columns: 1fr; } .ss-side, .ss-right { display: none; } .float-label { display: none; } section.block { padding: 64px 0; } }
