/* Ember by SMOKE Intelligence Services — standalone stylesheet
   Adapted from the smoke-is.com design system (dark "smoke" palette + gold accent). */

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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --text-primary: #e8e4de;
  --text-secondary: #8a857e;
  --text-muted: #5a5650;
  --accent: #d4af37;            /* smoke gold (Ember app tuning) */
  --accent-soft: #e7c66a;
  --accent-dim: rgba(212, 175, 55, 0.14);
  --accent-glow: rgba(212, 175, 55, 0.08);
  --border: rgba(212, 175, 55, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* ── Utility ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.narrow { max-width: 820px; }

/* ── Navigation ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s ease;
}

#nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

#nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo img { height: 34px; width: auto; display: block; }

.nav-logo span {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

.nav-signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.35s ease;
  white-space: nowrap;
}

.nav-signin:hover { background: var(--accent); color: var(--bg-primary); }
.nav-signin svg { width: 14px; height: 14px; transition: transform 0.35s ease; }
.nav-signin:hover svg { transform: translateX(3px); }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.35s ease;
  cursor: pointer;
  border: 1px solid var(--accent);
  border-radius: 2px;
}

.btn svg { width: 16px; height: 16px; transition: transform 0.35s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn-solid { background: var(--accent); color: var(--bg-primary); }
.btn-solid:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--bg-primary); }

/* legacy alias used by shared markup */
.hero-cta { display: inline-flex; align-items: center; gap: 12px; padding: 16px 36px;
  border: 1px solid var(--accent); border-radius: 2px; color: var(--accent);
  text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; transition: all 0.35s ease; }
.hero-cta:hover { background: var(--accent); color: var(--bg-primary); }
.hero-cta svg { width: 16px; height: 16px; transition: transform 0.35s ease; }
.hero-cta:hover svg { transform: translateX(4px); }

/* ── Hero ── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.4; transform: translate(0, 0) scale(1); }
  100% { opacity: 0.7; transform: translate(-30px, 20px) scale(1.05); }
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.hero h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--accent);
  margin-bottom: 44px;
  opacity: 0.85;
}

.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

/* ── Section shared ── */
section { padding: clamp(80px, 12vw, 150px) 0; }

.section-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.8;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Feature lists ── */
.services { background: var(--bg-secondary); }

.ember-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 52px 64px;
  margin-top: 56px;
}

.ember-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.service-icon { width: 40px; height: 40px; color: var(--accent); }
.ember-feature .service-icon { width: 34px; height: 34px; margin: 2px 0 0; }

.ember-feature h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.ember-feature p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

/* ── How Ember connects (YouTube disclosure) ── */
.connect { background: var(--bg-primary); }

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 56px;
  align-items: center;
}

.connect-text p { color: var(--text-secondary); font-size: 16px; line-height: 1.85; }
.connect-text p + p { margin-top: 20px; }
.connect-text strong { color: var(--text-primary); font-weight: 500; }

.connect-links { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.connect-links a { font-size: 14px; color: var(--text-secondary); text-decoration: none; }
.connect-links a:hover { color: var(--accent); }

/* Illustrative threat card with YouTube attribution */
.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px 22px 18px;
}

.demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.demo-actor { display: flex; align-items: center; gap: 10px; }
.demo-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #2a2a2f, #3a3a42);
  display: grid; place-items: center;
  color: var(--text-secondary); font-size: 13px; font-weight: 600;
}
.demo-actor .name { font-size: 14px; color: var(--text-primary); font-weight: 500; }
.demo-actor .handle { font-size: 12px; color: var(--text-muted); }

.demo-comment { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }

.demo-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 14px; border-top: 1px solid var(--border-subtle);
}

.sev {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; font-weight: 600;
}
.sev-4 { background: rgba(180, 70, 40, 0.18); color: #e6a07f; border: 1px solid rgba(180,70,40,0.35); }

/* YouTube source attribution chip (YT Dev Policy III.F.2) */
.yt-attr {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.4px; color: var(--text-muted);
}
.yt-attr .yt-logo { display: block; height: 15px; width: auto; }
.yt-attr b { color: var(--text-secondary); font-weight: 500; }

/* ── Trust ── */
.trust { background: var(--bg-secondary); }

/* ── Overview film ── */
.ember-video {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 56px auto 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow: hidden;
  border-radius: 4px;
}

.ember-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.video-attr { text-align: center; margin-top: 16px; }

/* ── Contact / CTA ── */
.contact {
  background: var(--bg-primary);
  text-align: center;
  padding: clamp(100px, 14vw, 190px) 0;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 50vh;
  background: radial-gradient(ellipse at bottom, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.contact .section-title { max-width: 720px; margin: 0 auto 20px; }
.contact .section-desc { max-width: 560px; margin: 0 auto 48px; text-align: center; }

.contact-links {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap; position: relative; z-index: 2;
}

.contact-link {
  color: var(--text-secondary); text-decoration: none; font-size: 14px;
  letter-spacing: 1px; transition: color 0.3s; display: flex; align-items: center; gap: 10px;
}
.contact-link:hover { color: var(--accent); }
.contact-link svg { width: 18px; height: 18px; color: var(--accent); }

.ember-meta {
  margin: 40px auto 0; max-width: 560px; font-size: 13px;
  letter-spacing: 0.04em; line-height: 1.7; color: var(--text-muted); text-align: center;
}

/* ── Sign-in gate ── */
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.gate::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.gate-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 44px 40px 36px;
  text-align: center;
}

.gate-card img.mark { height: 52px; width: auto; margin: 0 auto 18px; display: block; }
.gate-card h1 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin-bottom: 10px; }
.gate-card p.lead { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }

/* Google-compliant "Continue with Google" button (dark theme) */
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: #131314;
  border: 1px solid #8e918f;
  border-radius: 4px;
  color: #e3e3e3;
  font-family: 'Roboto', var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.google-btn:hover { background: #1c1c1e; border-color: #b0b3b1; }
.google-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.gate-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 26px 0 22px; color: var(--text-muted);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
}
.gate-divider::before, .gate-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-subtle);
}

.gate-note { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

.gate-video {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  margin-bottom: 20px; background: var(--bg-primary);
}
.gate-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gate-foot { margin-top: 26px; font-size: 12px; color: var(--text-muted); }
.gate-foot a { color: var(--text-secondary); text-decoration: none; }
.gate-foot a:hover { color: var(--accent); }

.back-home {
  position: absolute; top: 28px; left: clamp(20px, 5vw, 48px); z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-secondary); text-decoration: none; font-size: 13px; letter-spacing: 1px;
}
.back-home:hover { color: var(--accent); }
.back-home img { height: 22px; width: auto; }

/* ── Legal pages (privacy / terms) ── */
.legal { padding-top: clamp(130px, 15vw, 190px); }

.legal-head { max-width: 820px; margin-bottom: 12px; }
.legal-updated { font-size: 13px; color: var(--text-muted); letter-spacing: 0.5px; }

.legal-body {
  max-width: 820px;
  margin-top: 40px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.legal-body h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--text-primary);
  margin: 52px 0 16px;
  line-height: 1.25;
}

.legal-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 30px 0 10px;
  letter-spacing: 0.2px;
}

.legal-body p { margin-bottom: 16px; }
.legal-body p + p { margin-top: 0; }

.legal-body ul { margin: 0 0 18px; padding-left: 22px; }
.legal-body li { margin-bottom: 10px; }
.legal-body li::marker { color: var(--accent); }

.legal-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); }
.legal-body a:hover { border-bottom-color: var(--accent); }

.legal-body strong { color: var(--text-primary); font-weight: 500; }

.callout {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 22px 26px;
  margin: 24px 0;
  font-size: 15px;
}

.callout p { margin-bottom: 0; color: var(--text-secondary); }

.toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 22px 26px;
  margin-top: 32px;
}
.toc p { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 40px; }
.toc li { margin-bottom: 8px; font-size: 14px; }
.toc a { color: var(--text-secondary); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* ── Footer ── */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--border); background: var(--bg-primary); }

.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; margin-bottom: 32px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand span { font-weight: 600; letter-spacing: 4px; text-transform: uppercase; font-size: 14px; }

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 13px;
  letter-spacing: 0.5px; transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }

.footer-attr {
  font-size: 12px; color: var(--text-muted); line-height: 1.7;
  max-width: 720px; margin-bottom: 20px;
}
.footer-attr a { color: var(--text-secondary); text-decoration: none; }
.footer-attr a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border-subtle);
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 18px; color: #ffffff; }

/* ── Animations ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    padding: 32px clamp(24px, 5vw, 80px);
    gap: 24px;
    border-bottom: 1px solid var(--border);
  }

  .connect-grid { grid-template-columns: 1fr; gap: 40px; }
  .toc ol { columns: 1; }
  .footer-top { flex-direction: column; gap: 24px; }
}

@media (max-width: 768px) {
  .ember-features { grid-template-columns: 1fr; gap: 40px; }
  .hero-actions { gap: 14px; }
  .btn, .hero-cta { padding: 14px 26px; }
}

/* ── Brand logo (user artwork, cropped from emberlogo.png) ── */
.nav-logo .brand-flame { height: 34px; width: auto; display: block; }
.footer-brand .brand-flame { height: 30px; width: auto; display: block; }
.back-home .brand-flame { height: 22px; width: auto; display: block; }
.hero-logo { height: 108px; width: auto; display: block; margin-bottom: 24px; }
.gate-lockup { height: 124px; width: auto; display: block; margin: 4px auto 18px; }
@media (max-width: 768px) { .hero-logo { height: 82px; } }
