:root{
  --bg:#0b0b0b;
  --panel: rgba(255,255,255,0.06);
  --panel-strong: rgba(255,255,255,0.12);
  --glass-stroke: rgba(255,255,255,0.18);
  --txt:#f6f6f6;
  --muted:#b8b8b8;
  --orange:#ff7a1a;
  --orange-strong:#ff8c32;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--txt);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:var(--bg);
  overflow-x:hidden;
}

/* Subtle mesh + orbs background */
.bg-mesh{
  position:fixed; inset:-10vmax;
  background:
    radial-gradient(40vmax 40vmax at 15% 15%, rgba(255,122,26,0.15), transparent 60%),
    radial-gradient(50vmax 50vmax at 85% 25%, rgba(255,242,0,0.08), transparent 60%),
    radial-gradient(55vmax 55vmax at 50% 90%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, #0b0b0b 0%, #0a0a0a 100%);
  filter:saturate(1.05);
  z-index:-3;
}
.container{ width:min(1100px, 92vw); margin:80px auto; }

.topbar{
  position:sticky; top:0; z-index:20;
  width:min(1100px, 92vw); margin:14px auto 0;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px; border-radius:16px;
  background:rgba(10,10,10,0.55); backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,0.08);
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--txt); }
.brand-logo{ width:26px; height:26px; border-radius:8px; object-fit:contain }
.brand-name{ font-weight:700; letter-spacing:.2px; }
.topnav{ display:flex; gap:8px; align-items:center; }
.chip{
  color:var(--txt); text-decoration:none;
  padding:8px 12px; border-radius:999px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.18);
}

/* Glass panels */
.glass{
  background:var(--panel);
  border:1px solid var(--glass-stroke);
  border-radius:24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

/* Hero */
.hero{
  display:grid; grid-template-columns: 1.1fr .9fr; gap:32px; align-items:center;
}
.hero h1{
  margin:.2rem 0 1rem;
  font-size: clamp(36px, 6vw, 60px);
  line-height:1.05;
  letter-spacing: .2px;
}
.accent{ color:var(--orange); text-shadow: 0 0 16px rgba(255,122,26,.25); }
.muted{ color:var(--muted); font-weight:600; }
.lede{ color:#d9d9d9; font-size: clamp(16px, 1.2vw, 18px); line-height:1.6; }
.cta-row{ display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 18px; border-radius:14px; text-decoration:none;
  border:1px solid rgba(255,255,255,.16);
  color:var(--txt);
  transition:.2s ease transform, .2s ease box-shadow, .2s ease background;
}
.btn:hover{ transform:translateY(-1px); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.btn-primary{
  background:linear-gradient(180deg, var(--orange) 0%, var(--orange-strong) 100%);
  color:#1a1008; font-weight:700;
  border:1px solid rgba(255,122,26,.35);
}
.btn-ghost{ background:rgba(255,255,255,.06); }

.logo-badge{
  width:74px; height:74px; border-radius:18px;
  display:grid; place-items:center; margin-bottom:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.16);
}
.logo-badge img{ width:46px; height:46px; object-fit:contain; }
.logo-badge img.fallback{
  background: radial-gradient(60% 60% at 50% 50%, #ff9a3b, #ff7a1a);
  border-radius:12px;
}

/* Diagram */
.diagram-panel{ padding:12px; }
.diagram{ width:100%; height:auto; }
.n{
  fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.18); stroke-width:1.2;
  filter:url(#glow);
}
.t{ font-weight:700; font-size:16px; fill:#fff; }
.ts{ fill:#d9d9d9; font-size:12px; opacity:.85; }
.a{
  fill:none; stroke:url(#g1); stroke-width:3; stroke-linecap:round;
  stroke-dasharray: 6 8; animation: dash 2.8s linear infinite;
}
.dashed{ stroke-dasharray: 3 8; opacity:.6; }
.arrowhead{ fill:url(#g1); }
.orbit{ fill:none; stroke:rgba(255,255,255,.15); stroke-dasharray:4 10; }
.ember-dot{
  fill:url(#g1);
  animation: orbit 7.8s linear infinite;
  transform-origin: 380px 225px;
}

@keyframes dash { to { stroke-dashoffset: -140; } }
@keyframes orbit { to { transform: rotate(360deg); } }

/* Grid & features */
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; padding:16px; }
.feature{ padding:18px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.12); border-radius:18px; }
.feature .icon{ font-size:22px; margin-bottom:8px; }

/* Compare table */
.compare{ padding:18px; }
.compare-head h2{ margin:.2rem 0 .4rem; }
.compare-table{
  margin-top:10px;
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:8px;
}
.compare-table .col{
  padding:12px 14px; border-radius:12px; background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1);
}
.compare-table .head{ font-weight:700; background:rgba(255,255,255,.08); }
.compare-table .yes{ color:#25d091; font-weight:700; }

/* Security */
.security{ padding:18px; }
.security > div{
  padding:16px; background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1); border-radius:16px;
}

/* FAQ */
.faq{ padding:18px; }
.faq details{ background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); border-radius:14px; padding:14px 16px; margin:8px 0; }
.faq summary{ cursor:pointer; font-weight:600; }
.faq details[open]{ background:rgba(255,255,255,.07); }

/* Footer */
.footer-inner{
  padding:14px 16px;
  display:flex; align-items:center; justify-content:space-between;
}
.footer .links{ display:flex; gap:12px; }
.footer a{ color:var(--txt); opacity:.9; }

/* Reveal on scroll */
.reveal{ opacity:0; transform: translateY(20px); transition: .6s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* Responsive */
@media (max-width: 1024px){
  .hero{ grid-template-columns: 1fr; }
  .diagram-panel{ order:2; }
  .hero-left{ order:1; }
  .grid-3{ grid-template-columns: 1fr; }
  .compare-table{ grid-template-columns: 2fr 1fr 1fr; }
}

/* === Navigation Bar Styling (from landing page) === */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: flex;
  gap: .6rem;
  align-items: center;
  text-decoration: none;
  color: var(--txt);
  font-weight: 800;
  letter-spacing: .2px;
}

.logo {
  height: 80px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav a {
  color: var(--txt);
  text-decoration: none;
  opacity: .9;
  padding: .6rem .9rem;
  border-radius: 10px;
  transition: all .25s ease;
}

.nav a:hover {
  background: rgba(255,122,24,0.12);
  opacity: 1;
}

/* Login button (profile + bubble) */
.login-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--txt);
  font-weight: 600;
  font-size: .95rem;
  padding: .3rem .6rem;
  border-radius: 50px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

.icon-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 2;
}

.profile-icon { font-size: 1.2rem; line-height: 1; }

/* red alert badge */
.alert {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alert::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #ff3b30;
  border-radius: 50%;
}

/* bubble on hover */
.login-bubble {
  position: relative;
  transform-origin: left center;
  margin-left: -10px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  padding: .5rem 1rem .5rem 1.1rem;
  border-radius: 0 999px 999px 0;
  border: 1px solid rgba(255,122,24,0.45);
  border-left: none;
  color: var(--txt);
  background: linear-gradient(135deg, rgba(255,122,24,0.18), rgba(255,122,24,0.08)),
              linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(255,122,24,0.25), inset 0 0 24px rgba(255,122,24,0.12);
  transition: max-width .35s ease, opacity .35s ease, transform .35s ease;
  transform: translateX(-6px) scale(.98);
}

.login-bubble::before {
  content:"";
  position:absolute;
  left:-18px;
  top:50%;
  transform:translateY(-50%);
  width:26px;
  height:26px;
  border-radius:50%;
  background: linear-gradient(135deg, rgba(255,122,24,0.18), rgba(255,122,24,0.08)),
              linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border:1px solid rgba(255,122,24,0.45);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow: 0 8px 20px rgba(255,122,24,0.22), inset 0 0 18px rgba(255,122,24,0.10);
  z-index:1;
}

.login-btn:hover .login-bubble {
  max-width: 140px;
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Reset extra spacing above navbar */
.header {
  margin-top: 0;
  padding-top: 5;   /* remove vertical gap */
}

nav, .navbar, .header-right {
  margin-top: 0;
  padding-top: 0;
}

/* Link styling inside the three info tiles on the Ember AI page */
.policy-tiles a,
.policy-tiles a:visited{
  color: #ffb077;                /* brand orange, readable on dark */
  text-decoration: none;
  font-weight: 700;
  text-underline-offset: 3px;    /* nicer hover underline alignment */
  transition: color .2s ease, text-decoration-color .2s ease;
}

.policy-tiles a:hover,
.policy-tiles a:focus-visible{
  color: #ff9348;                /* brighter on hover/focus */
  text-decoration: underline;
  text-decoration-color: currentColor;
  outline: none;                 /* we use underline + color shift */
}

/* If your tiles use a class like .glass that sets color on children,
   this ensures links don’t get washed out inside those cards. */
.glass .policy-tiles a{ color: #ffb077; }

/* Optional: keep links legible when a card is “muted” */
.policy-tiles .muted a{ color: #ffb077; }

