/* ==========================================================================
   manailab.com — the Brahmexa SMB evaluation page

   Who this is for: someone considering Brahmexa who wants to see the actual
   thing before signing. So the page is ordered by what a sceptic asks:

     1. what is this            → hero
     2. show me something real  → the showcase (Leaf & Loaf, openable)
     3. let me poke at it       → the admin interfaces, each a live link
     4. what else is there      → the full SMB offering, embedded below

   Design language is the Brahmexa cosmic grammar: circle-first, dark void,
   quiet motion. The Leaf & Loaf mark keeps the bx-logo conventions from
   Brahmando-ai/Brahmando assets/brahmexa-logo.css — circular, no ring, a
   breathing halo, one rare glance, all motion off under reduced-motion.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --void:     #05070C;
  --void-2:   #0A0E16;
  --panel:    #0D131F;
  --panel-2:  #111827;
  --hair:     rgba(140, 165, 210, 0.14);
  --hair-2:   rgba(140, 165, 210, 0.26);
  --text:     #E8ECF4;
  --text-2:   #97A3B8;
  --text-3:   #6B7688;
  --blue:     #3884FF;
  --blue-lt:  #60A5FA;
  --violet:   #8B5CF6;
  --moss:     #7FA886;
  --moss-lt:  #9DC8A5;
  --amber:    #E0A34A;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--void);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-lt); outline-offset: 4px; border-radius: 5px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }

.eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
}

h1, h2, h3 { font-weight: 400; line-height: 1.14; letter-spacing: -0.01em; }

.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ============================================================== 01 · header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(20px, 4vw, 44px);
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--hair);
}

.wordmark { display: flex; align-items: baseline; gap: 9px; margin-right: auto; }
.wordmark b { font-weight: 600; letter-spacing: 0.02em; }
.wordmark span { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }

.topnav { display: flex; gap: 24px; }
.topnav a {
  font-size: 0.82rem;
  color: var(--text-2);
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.topnav a:hover { color: var(--text); border-bottom-color: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: all .25s ease;
}
.btn:hover { border-color: var(--blue-lt); color: #fff; background: rgba(56, 132, 255, 0.1); }

.btn--primary {
  background: linear-gradient(96deg, var(--blue) 0%, var(--violet) 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}
.btn--primary:hover { filter: brightness(1.14); background: linear-gradient(96deg, var(--blue) 0%, var(--violet) 100%); }

/* ================================================================ 02 · hero */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 84px);
  overflow: hidden;
}
.hero::before {          /* one quiet nebula, not a light show */
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(620px 320px at 22% 40%, rgba(56, 132, 255, 0.20), transparent 68%),
    radial-gradient(520px 300px at 74% 26%, rgba(139, 92, 246, 0.16), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 300;
  max-width: 19ch;
  margin: 18px 0 22px;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(96deg, var(--blue-lt), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-2);
  font-weight: 300;
  max-width: 62ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-actions .btn { height: 46px; padding: 0 28px; font-size: 0.85rem; }

.assure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  font-size: 0.82rem;
  color: var(--text-3);
}
.assure span::before { content: '·'; margin-right: 9px; color: var(--blue); }
.assure span:first-child::before { content: none; }

/* =========================================================== 03 · section */
.band { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--hair); }
.band--panel { background: linear-gradient(180deg, var(--void-2), var(--void)); }

.band-head { margin-bottom: 40px; max-width: 68ch; }
.band-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 300; margin: 10px 0 14px; }
.band-head p { color: var(--text-2); font-weight: 300; }

/* ===================================================== 04 · the showcase */
.showcase {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(22px, 3.5vw, 44px);
  align-items: center;
  padding: clamp(26px, 3.6vw, 40px);
  border: 1px solid var(--hair-2);
  border-radius: 18px;
  background:
    radial-gradient(560px 220px at 8% 0%, rgba(127, 168, 134, 0.12), transparent 66%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  transition: border-color .3s ease, transform .3s ease;
}
.showcase:hover { border-color: rgba(157, 200, 165, 0.5); transform: translateY(-2px); }

/* the circle — bx-logo grammar, at showcase scale so it is unmissable */
.ll-logo { --ll-size: clamp(84px, 11vw, 124px); display: block; perspective: 520px; }

.ll-logo__mark {
  position: relative;
  display: block;
  width: var(--ll-size);
  height: var(--ll-size);
  border-radius: 50%;
  border: 0;                       /* the artwork carries its own ring */
  transform-style: preserve-3d;
  animation: ll-glance 24s ease-in-out infinite;
}

.ll-logo__img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  /* the halo breathes so nothing reflows */
  filter: drop-shadow(0 0 6px rgba(127, 168, 134, 0.45));
  animation: ll-breathe 7s ease-in-out infinite;
}

.showcase:hover .ll-logo__img {
  filter: drop-shadow(0 0 14px rgba(157, 200, 165, 0.8));
  transition: filter .35s ease;
}

@keyframes ll-glance {   /* ~1.2s of movement in 24s: mostly at rest */
  0%, 92%, 100% { transform: rotateY(0deg) rotateZ(0deg); }
  94%           { transform: rotateY(-17deg) rotateZ(-1.5deg); }
  96%           { transform: rotateY(-19deg) rotateZ(-1.5deg); }
  98%           { transform: rotateY(-6deg) rotateZ(-0.5deg); }
}
@keyframes ll-breathe {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(127, 168, 134, 0.40)); }
  50%      { filter: drop-shadow(0 0 11px rgba(157, 200, 165, 0.66)); }
}

.showcase__body h3 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin-bottom: 6px; }
.showcase__body h3 span { color: var(--moss-lt); }
.showcase__where { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.showcase__body p { color: var(--text-2); font-weight: 300; max-width: 56ch; font-size: 0.95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.chip {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  color: var(--text-2);
}
.chip--live { border-color: rgba(127, 168, 134, 0.55); color: var(--moss-lt); }

.showcase__cta { display: flex; flex-direction: column; gap: 10px; }
.showcase__cta .btn { justify-content: center; }

/* honesty label — this is a proposal, not a signed customer */
.disclosure {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--text-3);
  font-style: italic;
  max-width: 74ch;
}

/* ============================================== 05 · admin interface grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px;
  border: 1px solid var(--hair);
  border-radius: 13px;
  background: var(--panel);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--hair-2); background: var(--panel-2); transform: translateY(-2px); }

.card__top { display: flex; align-items: center; gap: 10px; }
.card__glyph { font-size: 1.15rem; line-height: 1; }
.card__name { font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em; }
.card__arrow { margin-left: auto; color: var(--text-3); font-size: 0.9rem; transition: transform .25s ease, color .25s ease; }
.card:hover .card__arrow { transform: translate(3px, -3px); color: var(--blue-lt); }
.card p { font-size: 0.86rem; color: var(--text-2); font-weight: 300; }

.card__tag {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  color: var(--text-3);
}
.card__tag--live { border-color: rgba(127, 168, 134, 0.5); color: var(--moss-lt); }

.subhead {
  margin: 40px 0 16px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 14px;
}
.subhead::after { content: ''; flex: 1; height: 1px; background: var(--hair); }

/* ============================================= 06 · the embedded SMB hub */
.embed-shell {
  border: 1px solid var(--hair-2);
  border-radius: 16px;
  overflow: hidden;
  background: var(--void-2);
}

.embed-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--hair);
  background: var(--panel);
  font-size: 0.76rem;
  color: var(--text-3);
}
.embed-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--moss); }
.embed-bar a { margin-left: auto; color: var(--blue-lt); }
.embed-bar a:hover { text-decoration: underline; }

.embed-shell iframe {
  display: block;
  width: 100%;
  height: min(1180px, 145vh);
  border: 0;                        /* borderless, as specified */
  background: var(--void);
}

.embed-fallback { padding: 40px 24px; text-align: center; color: var(--text-2); font-size: 0.9rem; }
.embed-fallback a { color: var(--blue-lt); text-decoration: underline; }

/* =================================================================== footer */
footer { border-top: 1px solid var(--hair); padding: 52px 0 34px; background: var(--void-2); }
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 34px; }
.foot h4 { font-size: 0.7rem; letter-spacing: 0.19em; text-transform: uppercase; color: var(--text-3); margin-bottom: 13px; font-weight: 500; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot a, .foot p { font-size: 0.87rem; color: var(--text-2); font-weight: 300; }
.foot a:hover { color: var(--blue-lt); }
.foot-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.78rem; color: var(--text-3);
}

/* =============================================================== responsive */
@media (max-width: 900px) {
  .topnav { display: none; }
  .showcase { grid-template-columns: 1fr; text-align: left; }
  .showcase__cta { flex-direction: row; flex-wrap: wrap; }
  .embed-shell iframe { height: min(940px, 130vh); }
}

@media (max-width: 560px) {
  .wordmark span { display: none; }
  .showcase__cta { flex-direction: column; }
  .showcase__cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ll-logo__img { filter: drop-shadow(0 0 6px rgba(127, 168, 134, 0.45)); }
}
