/* ============================================================
   ImoBuddy - marketing site · DARK PREMIUM (violet, glass, glow)
   palette: near-black violet-tinted · violet #8304DB · light #F5F7FA
   ============================================================ */

/* ---- self-hosted fonts (latin subset, variable woff2) ----
   Replaces remote Google Fonts. One variable file per family serves all
   weights. Only latin (U+0000-00FF) is shipped - covers PT/EN/ES. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:        #0A0810;
  --bg-1:      #100B1A;
  --bg-2:      #160F24;
  --surface:   rgba(255,255,255,0.045);
  --surface-2: rgba(255,255,255,0.07);
  --solid:     #140E20;

  --ink:       #F4F1FA;
  --ink-soft:  #ADA5BE;
  --ink-faint: #817999;
  --line:      rgba(255,255,255,0.10);
  --line-2:    rgba(255,255,255,0.06);

  --violet:     #8304DB;
  --violet-lit: #B264FF;
  --violet-2:   #C77DFF;
  --violet-deep:#5B029A;
  --violet-soft:rgba(131,4,219,0.16);
  --violet-glow:rgba(131,4,219,0.45);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 20px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io:  cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--body); background: var(--bg); color: var(--ink);
  font-size: 17px; line-height: 1.6; letter-spacing: -0.01em; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--violet); color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }

.wrap { max-width: var(--maxw); margin: 0 auto; width: 100%; position: relative; z-index: 2; }
section { position: relative; padding: clamp(80px, 13vh, 150px) var(--gutter); z-index: 2; }

/* ---- fixed cinematic background layers ---- */
.bg-mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(131,4,219,0.30), transparent 60%),
    radial-gradient(50% 45% at 8% 8%, rgba(178,100,255,0.16), transparent 60%),
    radial-gradient(45% 40% at 50% 105%, rgba(131,4,219,0.18), transparent 60%);
  filter: blur(8px);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(120% 90% at 50% 0%, black 0%, transparent 70%);
}
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.04; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(2) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 50%{transform:translate(-3%,2%)} 100%{transform:translate(2%,-2%)} }
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px; z-index: 1; border-radius: 50%;
  pointer-events: none; opacity: 0; will-change: transform; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(131,4,219,0.16) 0%, transparent 62%);
  transition: opacity .4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { body:hover .cursor-glow { opacity: 1; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: 13px; letter-spacing: 0.02em;
  color: var(--violet-2); background: var(--violet-soft); border: 1px solid rgba(178,100,255,0.25);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px; backdrop-filter: blur(6px);
}
.eyebrow .star { color: var(--violet-2); }
.lead { color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.6; }

html.anim [data-reveal], html.anim [data-stag-item] { opacity: 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); transition: background .35s var(--ease-out), box-shadow .35s, padding .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10,8,16,0.72); backdrop-filter: blur(14px); border-color: var(--line); padding-top: 13px; padding-bottom: 13px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-weight: 800; font-size: 20px; }
.nav .brand .imo { color: var(--ink); }
.nav .brand .buddy { color: var(--violet-2); }
.nav .brand .star { color: var(--violet-2); }
.nav .links { display: flex; align-items: center; gap: 30px; }
.nav .links a.navlink { font-size: 15px; color: var(--ink-soft); font-weight: 500; transition: color .25s; }
.nav .links a.navlink:hover { color: var(--ink); }
.nav .actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 880px) { .nav .links .navlink { display: none; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: 13px; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap; will-change: transform; overflow: hidden;
  transition: box-shadow .3s var(--ease-out), background .3s, border-color .25s, color .25s;
}
.btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-primary { color: #fff; background: linear-gradient(120deg, var(--violet-lit), var(--violet)); box-shadow: 0 12px 34px -10px var(--violet-glow), inset 0 0 0 1px rgba(255,255,255,0.15); }
.btn-primary .shine { position: absolute; inset: 0; transform: translateX(-130%); pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%); }
.btn-primary:hover { box-shadow: 0 20px 50px -12px var(--violet-glow), inset 0 0 0 1px rgba(255,255,255,0.28); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--violet-2); color: var(--violet-2); }
.btn-sm { padding: 10px 17px; font-size: 14px; border-radius: 11px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(140px, 20vh, 220px); text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 800; max-width: 16ch; margin: 0 auto; }
.hero h1 .am {
  background: linear-gradient(100deg, var(--violet-2) 0%, #ffffff 45%, var(--violet-lit) 75%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--violet-2);
}
.hero .hero-sub { margin: 26px auto 0; max-width: 56ch; }
.hero .hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero .note { margin-top: 20px; font-size: 13px; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 8px; }
.hero .note .pip { width: 8px; height: 8px; border-radius: 50%; background: #34e29b; box-shadow: 0 0 0 4px rgba(52,226,155,0.18); }

/* floating product mockup under hero */
.hero-mock { margin: clamp(50px, 7vw, 90px) auto 0; max-width: 1000px; position: relative; }
.hero-mock .glow { position: absolute; inset: -8% -4% -20%; background: radial-gradient(60% 60% at 50% 30%, var(--violet-glow), transparent 70%); filter: blur(50px); z-index: 0; }

/* ============================================================
   GLASS PANEL / MOCKUP
   ============================================================ */
.mock {
  position: relative; z-index: 1; border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--line); backdrop-filter: blur(10px);
  box-shadow: 0 50px 110px -50px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 14px; overflow: hidden;
}
.mock .bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px 14px; }
.mock .bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.mock .bar .t { margin-left: 10px; font-family: var(--font); font-weight: 600; font-size: 13px; color: var(--ink-faint); }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; }
.kcol { background: rgba(255,255,255,0.03); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px; min-height: 230px; }
.kcol h4 { font-family: var(--font); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 11px; display: flex; justify-content: space-between; }
.kcol h4 .c { color: var(--violet-2); }
.kcard {
  background: var(--solid); border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; margin-bottom: 9px;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,0.7); will-change: transform, opacity;
}
.kcard .n { font-family: var(--font); font-weight: 600; font-size: 13px; color: var(--ink); }
.kcard .m { font-size: 11px; color: var(--ink-faint); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.kcard .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 8px var(--violet-glow); }
.kcard.lilac { border-color: rgba(178,100,255,0.45); background: linear-gradient(160deg, var(--violet-soft), var(--solid)); box-shadow: 0 0 30px -8px var(--violet-glow); }

/* the "travelling" lead that moves across the pipeline (JS-driven) */
.ktravel {
  position: absolute; top: 0; left: 0; z-index: 6; pointer-events: none; opacity: 0;
  border-radius: 11px; padding: 12px 13px; will-change: transform, opacity;
  background: linear-gradient(160deg, rgba(178,100,255,0.22), var(--solid));
  border: 1px solid rgba(178,100,255,0.6);
  box-shadow: 0 20px 44px -14px rgba(0,0,0,0.85), 0 0 38px -6px var(--violet-glow);
}
.ktravel .n { font-family: var(--font); font-weight: 600; font-size: 13px; color: var(--ink); }
.ktravel .m { font-size: 11px; color: var(--violet-2); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.ktravel .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 8px var(--violet-glow); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { overflow: hidden; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.mq-track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; }
.mq-track span { font-family: var(--font); font-weight: 800; font-size: clamp(1.1rem,2.6vw,1.9rem); color: var(--ink-faint); padding: 0 26px; letter-spacing: -0.02em; }
.mq-track .sep { color: var(--violet-2); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.shead { max-width: 660px; margin-bottom: 56px; }
.shead.center { margin-left: auto; margin-right: auto; text-align: center; }
.shead h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.shead p { margin-top: 16px; color: var(--ink-soft); }

/* ============================================================
   FEATURES - bento grid
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.fcard {
  position: relative; padding: 30px 28px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(165deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  transform-style: preserve-3d; will-change: transform;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  grid-column: span 2;
}
.fcard.wide { grid-column: span 3; }
.fcard.tall { grid-column: span 3; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .fcard, .fcard.wide, .fcard.tall { grid-column: auto; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }
.fcard .spot { position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease-out);
  background: radial-gradient(260px circle at var(--mx,50%) var(--my,50%), var(--violet-soft), transparent 60%); }
.fcard:hover { border-color: rgba(178,100,255,0.4); box-shadow: 0 30px 60px -34px rgba(0,0,0,0.85); }
.fcard:hover .spot { opacity: 1; }
.fcard > *:not(.spot) { transform: translateZ(28px); }
.fcard .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet-2); margin-bottom: 18px; border: 1px solid rgba(178,100,255,0.25); }
.fcard .ic svg { width: 23px; height: 23px; }
.fcard h3 { font-size: 1.3rem; }
.fcard p { margin-top: 9px; color: var(--ink-soft); font-size: 0.97rem; }

/* ============================================================
   PIPELINE
   ============================================================ */
.pipeline { background: var(--bg-1); }
.stages { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
.stage { display: inline-flex; align-items: center; gap: 9px; padding: 13px 19px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-family: var(--font); font-weight: 600; font-size: 14px; backdrop-filter: blur(6px); }
.stage .num { width: 22px; height: 22px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-size: 12px; box-shadow: 0 0 14px -2px var(--violet-glow); }
.stage .arrow { color: var(--ink-faint); }

/* ============================================================
   SHOWCASE
   ============================================================ */
.showcase .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
@media (max-width: 920px) { .showcase .wrap { grid-template-columns: 1fr; } }
.showcase ul { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.showcase li { display: flex; gap: 13px; align-items: flex-start; }
.showcase li .ck { flex: none; width: 25px; height: 25px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; margin-top: 2px; box-shadow: 0 0 14px -2px var(--violet-glow); }
.showcase li .ck svg { width: 14px; height: 14px; }
.showcase li b { font-family: var(--font); font-weight: 600; }
.showcase li span.tx { color: var(--ink-soft); }

/* ============================================================
   CTA
   ============================================================ */
.cta .panel {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(44px,6vw,80px); text-align: center;
  background: radial-gradient(120% 150% at 100% 0%, var(--violet-deep), var(--bg-2) 62%);
  border: 1px solid rgba(178,100,255,0.25); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 40px 90px -50px var(--violet-glow);
}
.cta .panel::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 60% at 50% 0%, var(--violet-glow), transparent 70%); opacity:.5; pointer-events:none; }
.cta h2 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); position: relative; }
.cta p { margin: 18px auto 30px; max-width: 48ch; color: var(--ink-soft); position: relative; }
.cta form { display: flex; gap: 10px; justify-content: center; max-width: 500px; margin: 0 auto; flex-wrap: wrap; position: relative; }
.cta input { flex: 1; min-width: 220px; font-family: var(--body); font-size: 15px; color: #fff;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.2); border-radius: 13px; padding: 15px 17px; }
.cta input::placeholder { color: rgba(255,255,255,0.5); }
.cta input:focus { outline: none; border-color: var(--violet-2); }
.cta .small { margin-top: 16px; font-size: 12px; color: var(--ink-faint); position: relative; }
.cta .small a { color: var(--ink-soft); }
#wl-success { display: none; margin-top: 18px; color: #fff; font-weight: 600; position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-1); border-top: 1px solid var(--line); padding: 60px var(--gutter) 46px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-weight: 800; font-size: 19px; }
.footer .brand .buddy { color: var(--violet-2); }
.footer .brand .star { color: var(--violet-2); }
.footer .tag { color: var(--ink-soft); margin-top: 12px; max-width: 30ch; font-size: 14px; }
.footer .cols { display: flex; gap: clamp(30px,5vw,64px); flex-wrap: wrap; }
.footer .col h5 { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 12px; }
.footer .col a, .footer .col span { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; transition: color .25s; }
.footer .col a:hover { color: var(--violet-2); }
.footer .legal { width: 100%; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-faint); }
.footer .legal a { color: var(--ink-soft); border-bottom: 1px solid var(--violet-soft); }
.footer .legal a:hover { color: var(--violet-2); }

@media (prefers-reduced-motion: reduce) {
  html.anim [data-reveal], html.anim [data-stag-item] { opacity: 1 !important; }
  .grain { animation: none; }
}
