/* InnCentral landing page — custom styles
   Tailwind (CDN) handles utilities; this file holds the bespoke
   design system: gradients, glass cards, animations and tables. */

:root { color-scheme: light; }
html, body { background: #F8FAFC; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: #475569;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #0B1B3F;
  letter-spacing: -0.02em;
}
.h-hero { font-size: clamp(2.5rem, 5.4vw, 4.3rem); line-height: 1.05; }
.h-sec  { font-size: clamp(1.85rem, 3.4vw, 2.7rem); line-height: 1.14; }

.gtext {
  background: linear-gradient(100deg, #1E3A8A, #3B82F6 55%, #60A5FA);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gtext-gold {
  background: linear-gradient(100deg, #2563EB, #60A5FA);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Ambient background blobs ── */
#aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.b1 { width: 46vw; height: 46vw; left: -12vw; top: -12vw; background: radial-gradient(circle, rgba(59,130,246,.30), transparent 70%); animation: drift1 24s ease-in-out infinite; }
.b2 { width: 40vw; height: 40vw; right: -10vw; top: 8vh; background: radial-gradient(circle, rgba(96,165,250,.22), transparent 70%); animation: drift2 30s ease-in-out infinite; }
.b3 { width: 38vw; height: 38vw; left: 24vw; top: 70vh; background: radial-gradient(circle, rgba(30,58,138,.14), transparent 70%); animation: drift1 34s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(5vw,4vh) scale(1.12)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-4vw,3vh) scale(1.1)} }

#dots {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(rgba(15,23,42,.05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 20%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 20%, #000 25%, transparent 75%);
}
.layer { position: relative; z-index: 1; }

/* ── Glass cards ── */
.glass {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15,23,42,.07);
}
.card-lift { transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .35s; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(11,27,63,.35); border-color: rgba(59,130,246,.4); }

.btn-gold {
  background: linear-gradient(100deg, #3B82F6, #1E3A8A);
  box-shadow: 0 14px 30px -12px rgba(37,99,235,.7);
  transition: transform .25s, box-shadow .25s, filter .25s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(37,99,235,.85); filter: brightness(1.08); }
.btn-ghost { transition: background .25s, border-color .25s, color .25s; }
.btn-ghost:hover { background: rgba(30,58,138,.06); border-color: rgba(30,58,138,.4); }

.badge {
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(15,23,42,.08);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.badge:hover { transform: translateY(-2px); border-color: rgba(37,99,235,.5); box-shadow: 0 10px 24px -14px rgba(37,99,235,.6); }

.icon-chip {
  background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(30,58,138,.1));
  border: 1px solid rgba(59,130,246,.2);
  transition: transform .35s cubic-bezier(.22,1,.36,1), background .35s;
}
.card-lift:hover .icon-chip { transform: scale(1.08) rotate(-3deg); background: linear-gradient(135deg, rgba(37,99,235,.22), rgba(96,165,250,.14)); }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* Hero entrance — transform only (opacity stays 1) so the LCP hero
   text and image paint on first frame and are never hidden by JS. */
.hero-in { animation: heroIn .7s cubic-bezier(.22,1,.36,1) both; }
.hero-d1 { animation-delay: .05s; }
.hero-d2 { animation-delay: .12s; }
.hero-d3 { animation-delay: .19s; }
.hero-d4 { animation-delay: .26s; }
@keyframes heroIn { from { transform: translateY(20px); } to { transform: none; } }

.float-soft { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* Odoo website ships `a:hover { text-decoration: underline }`, which underlines
   the nav logo + CTA buttons on hover/click. Those are controls, not prose —
   suppress it (footer / in-copy text links keep their intentional underline). */
header a:hover, header a:focus,
.btn-gold:hover, .btn-gold:focus,
.btn-ghost:hover, .btn-ghost:focus { text-decoration: none; }

/* marquee for channels */
.marquee { display: flex; gap: 3rem; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes scrollx { from { transform: translateX(0) } to { transform: translateX(-50%) } }

.nav-link { position: relative; transition: color .2s; }
.nav-link::after { content:""; position:absolute; left:0; bottom:-4px; height:2px; width:0; background:#2563EB; transition: width .25s; }
.nav-link:hover::after { width: 100%; }

details summary::-webkit-details-marker { display: none; }
details[open] .faq-icon { transform: rotate(45deg); }

.ring-accent { box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 30px 70px -30px rgba(11,27,63,.55); }

/* table rows */
.row-line { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1.15rem; border-radius: .75rem; transition: background .2s; }
.row-line:hover { background: rgba(59,130,246,.06); }
.row-dark { border-bottom: 1px solid rgba(255,255,255,.1); }
.row-dark:last-child { border-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   InnCentral PREMIUM THEME PASS  (blue-white, tighter, less flat)
   Layered on top of the founder's base design. Targets section ids so it
   needs no markup changes. Keep all selectors landing-scoped.
   ═══════════════════════════════════════════════════════════════════════ */

/* 1 ── Richer page wash so it never reads as one flat white sheet ───────── */
html, body { background: #EEF3FC; }
body {
  background:
    radial-gradient(1100px 560px at 50% -240px, rgba(59,130,246,.14), transparent 62%),
    radial-gradient(900px 520px at 100% 12%, rgba(96,165,250,.10), transparent 60%),
    #EEF3FC;
  background-attachment: fixed;
}

/* 2 ── Tighter vertical rhythm (the py-16 gaps felt too airy) ───────────── */
section.layer { padding-top: 2.9rem !important; padding-bottom: 2.9rem !important; }
@media (min-width: 1024px) {
  section.layer { padding-top: 3.6rem !important; padding-bottom: 3.6rem !important; }
}
#top.layer { padding-top: 7.5rem !important; }   /* hero clears the fixed nav */

/* 3 ── Icon chip: reliable flex centering (fixes the off-centre bolt) ───── */
.icon-chip { display: flex !important; align-items: center; justify-content: center; line-height: 1; }
.icon-chip i { line-height: 1; width: auto; }

/* 4 ── Premium card feel — softer glass, deeper lift, crisper ring ──────── */
.glass { background: rgba(255,255,255,.82); border-color: rgba(15,23,42,.06); }
.card-lift { transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s, border-color .4s; }
.card-lift:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 64px -30px rgba(11,27,63,.5);
  border-color: rgba(37,99,235,.5);
}
.ring-accent { box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 36px 80px -34px rgba(11,27,63,.5); }

/* 5 ── DARK premium slabs (AI + FAQ) — navy + aurora glow, like before ──── */
#ai, #faq { color: #C9D8F5; border-radius: 34px; margin: 0 .5rem; position: relative; isolation: isolate; }
#ai {
  background:
    radial-gradient(820px 460px at 12% 0%, rgba(59,130,246,.26), transparent 56%),
    radial-gradient(640px 380px at 96% 100%, rgba(37,99,235,.22), transparent 56%),
    #0B1B3F;
}
#faq {
  background:
    radial-gradient(760px 420px at 50% -8%, rgba(59,130,246,.22), transparent 58%),
    #0B1B3F;
}
/* recolour the founder's light-theme tokens when they sit on the dark slab */
#ai h2, #ai h3, #ai h4, #faq h2, #faq summary { color: #fff !important; }
#ai .h-sec, #faq .h-sec, #ai .text-navy, #faq .text-navy { color: #fff !important; }
#ai .text-slate-600, #ai .text-slate-700,
#faq .text-slate-600, #faq .text-slate-700 { color: #AFC1E6 !important; }
#ai .text-gold, #faq .text-gold { color: #7FB0FF !important; }   /* eyebrow on dark */
#ai .glass, #faq .glass {
  background: rgba(255,255,255,.055) !important;
  border-color: rgba(255,255,255,.12) !important;
  backdrop-filter: blur(10px);
}
#ai .card-lift:hover, #faq .glass:hover {
  border-color: rgba(96,165,250,.5) !important;
  box-shadow: 0 28px 60px -30px rgba(0,0,0,.6) !important;
}
#ai .icon-chip {
  background: linear-gradient(135deg, rgba(96,165,250,.22), rgba(37,99,235,.14)) !important;
  border-color: rgba(96,165,250,.32) !important; color: #BFD8FF;
}
#faq .faq-icon { color: #7FB0FF !important; }
/* keep the founder's already-dark robot card readable inside the dark slab */
#ai .bg-navy { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(96,165,250,.25) !important; }

/* 6 ── Subtle tinted slabs on alternating light sections for depth ──────── */
#distribution, #integrations, #languages {
  background: linear-gradient(180deg, rgba(219,234,254,.5), rgba(255,255,255,0) 70%);
  border-radius: 30px;
}

/* 7 ── Crisper nav glass + gradient brand underline ─────────────────────── */
header .glass { background: rgba(255,255,255,.78); box-shadow: 0 10px 30px -16px rgba(11,27,63,.25); }

/* ═══════════════════════════════════════════════════════════════════════
   PREMIUM PASS v2 — compress spacing, FAQ 2-column, universal centering
   ═══════════════════════════════════════════════════════════════════════ */

/* 8 ── Tighter section rhythm (further compress the inter-section gaps) ─── */
section.layer { padding-top: 2rem !important; padding-bottom: 2rem !important; }
@media (min-width: 1024px) {
  section.layer { padding-top: 2.6rem !important; padding-bottom: 2.6rem !important; }
}
#top.layer { padding-top: 6.75rem !important; }
/* trim the big section-header bottom gaps */
section .mb-12 { margin-bottom: 1.9rem !important; }
section .mb-10 { margin-bottom: 1.4rem !important; }
section .mb-9  { margin-bottom: 1.3rem !important; }

/* 9 ── Universal reliable centering — fixes the off-centre nav logo glyph
        AND the testimonial avatar initials ("AJ"), same root cause as the
        icon chips (grid place-items-center mis-seats inline glyphs). ─────── */
.icon-chip,
header a > span.grid, footer a > span.grid,
.grid.place-items-center {
  display: flex !important; align-items: center; justify-content: center; line-height: 1;
}

/* 10 ── FAQ: two INDEPENDENT columns (each flows on its own) so opening an
        item only pushes the items BELOW it in the SAME column — it never
        stretches a closed row-neighbour or leaves a gap (the old shared
        grid-row coupling bug). The wrapper is the 2-col grid; each column is
        a native vertical stack; align-items:start keeps the columns from
        stretching to match each other. ─────────────────────────────────── */
#faq > .max-w-3xl { max-width: 64rem !important; }
#faq .hms-faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; align-items: start;
}
#faq .hms-faq-grid > .space-y-3 { align-self: start; }
#faq details { padding: .8rem 1.15rem !important; }
#faq summary { font-size: .95rem; line-height: 1.3; }
#faq details p { font-size: .85rem; }
@media (max-width: 768px) {
  #faq > .max-w-3xl { max-width: 36rem !important; }
  #faq .hms-faq-grid { grid-template-columns: 1fr; }
}

/* ── Phone-only cleanups (≤640px). Desktop layout is untouched. ───────────── */
@media (max-width: 640px) {
  /* Hero heading: clamp floor (2.5rem≈40px) crowded both screen edges on a
     375px phone. Drop it on small screens so the section's px-5 padding shows. */
  .h-hero { font-size: clamp(1.85rem, 8.4vw, 2.4rem); line-height: 1.14; }

  /* Decorative floating "stat" cards are positioned -left-4 / -right-3, so on a
     phone they poke off both edges and read as overlapping/cut-off elements.
     They're pure eye-candy over the dashboard mockup — hide them on phones. */
  .float-soft { display: none !important; }

  /* Nav: keep the CTA on one line and trim its padding so it doesn't crowd the
     InnCentral logo on narrow screens. */
  header nav .btn-gold,
  header nav .btn-ghost { white-space: nowrap; padding-left: 0.85rem; padding-right: 0.85rem; }
  header nav { gap: 0.75rem; }
}
