/* ---------- Global Config & Roots ---------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #05080f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-glow: rgba(0, 229, 255, 0.2);
  --text: #e6f1ff;
  --text-muted: #9aa7b8;
  --accent1: #7c6cff;
  --accent2: #00e5ff;
  --accent3: #00ffa3;
  --danger: #ff4757;
  --warning: #ffa502;
  --radius: 20px;
  --glow: 0 0 30px rgba(0, 229, 255, 0.25);
  --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Background Gradients */
body::before {
  content: ""; position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: -1;
  background: 
    radial-gradient(100vw 600px at 0% 0%, rgba(124,108,255,0.1) 0%, transparent 60%),
    radial-gradient(80vw 800px at 100% 50%, rgba(0,229,255,0.06) 0%, transparent 50%),
    radial-gradient(100vw 600px at 50% 100%, rgba(0,255,163,0.04) 0%, transparent 70%);
}

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 8, 15, 0.65);
  border-bottom: 1px solid var(--stroke);
  transition: all 0.3s ease;
}

.bar {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 0;
}
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
#logo { height: 38px; filter: drop-shadow(0 2px 10px rgba(124,108,255,0.3)); }
.brand-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; }

nav { display: flex; gap: 8px; align-items: center; }
.nav-link {
  color: var(--text-muted); text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--bg-card); }
.nav-link.active { color: var(--text); background: var(--bg-card-hover); border: 1px solid var(--stroke); }

.button, .login-button {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--stroke);
  color: var(--text); font-weight: 600; font-size: 0.95rem;
  padding: 10px 20px; border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.button:hover, .login-button:hover { background: var(--bg-card-hover); transform: translateY(-1px); }

.button.primary, .login-button {
  background: linear-gradient(135deg, var(--accent2), var(--accent1));
  color: #05080f; border: none; font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,229,255,0.25);
}
.button.primary:hover, .login-button.glow-fx:hover {
  box-shadow: 0 8px 25px rgba(124,108,255,0.45);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.home-hero {
  padding: 180px 0 100px;
  text-align: center; position: relative;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute; top: 100px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(124,108,255,0.2) 0%, transparent 60%);
  z-index: -1; pointer-events: none;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: rgba(0, 229, 255, 0.1); border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--accent2); font-size: 0.85rem; font-weight: 700;
  border-radius: 99px; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1px;
}
.home-hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 900;
  margin: 0 0 20px; line-height: 1.1; letter-spacing: -1.5px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent2), var(--accent1));
  background-clip: text;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.home-hero p.lead {
  font-size: 1.15rem; color: var(--text-muted); max-width: 650px;
  margin: 0 auto 32px; line-height: 1.6;
}

.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 80px; }

/* Dashboard Mockup in Hero */
.hero-dashboard-preview {
  display: flex; justify-content: center;
  perspective: 1000px;
  margin-top: -20px;
}
.dash-window {
  width: min(900px, 95%); height: 400px;
  background: rgba(5, 8, 15, 0.8); border: 1px solid var(--stroke); border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(124,108,255,0.1);
  display: flex; flex-direction: column; overflow: hidden;
  transform: rotateX(15deg) translateY(20px);
  transform-origin: top center;
  transition: transform 0.5s ease-out;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.home-hero.in-view .dash-window {
  transform: rotateX(5deg) translateY(0);
}

.dash-header { height: 32px; background: rgba(255,255,255,0.05); display: flex; align-items: center; padding: 0 16px; gap: 8px; border-bottom: 1px solid var(--stroke); }
.dot { width: 12px; height: 12px; border-radius: 50%; opacity: 0.8; }
.dot.r { background: var(--danger); } .dot.y { background: var(--warning); } .dot.g { background: var(--accent3); }
.dash-title { margin-left: 16px; font-size: 0.8rem; color: var(--text-muted); font-family: monospace; }
.dash-body { display: flex; flex: 1; overflow: hidden; }
.dash-sidebar { width: 60px; background: rgba(255,255,255,0.02); border-right: 1px solid var(--stroke); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dash-nav-item { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.05); }
.dash-nav-item.active { background: rgba(124,108,255,0.3); box-shadow: 0 0 15px rgba(124,108,255,0.4); }
.dash-content { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.dash-stats { display: flex; gap: 16px; }
.dash-stat-box { flex: 1; height: 80px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; position: relative; overflow: hidden; }
.dash-chart { flex: 1; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); border-radius: 8px; position: relative; }
.chart-line { position: absolute; bottom: 20%; left: 0; width: 100%; height: 2px; border-top: 1px dashed rgba(255,255,255,0.1); }
.chart-glow { position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(to top, rgba(0,229,255,0.1), transparent); }

/* ---------- Typography & Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.content-section { padding: 80px 0; }
.section-title { font-size: 2.2rem; font-weight: 800; margin: 0 0 16px; letter-spacing: -0.5px; }
.section-description { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 32px; }
.section-description.centered { max-width: 600px; margin-inline: auto; text-align: center; }

/* ---------- Glassmorphism & Layouts ---------- */
.glass-card {
  background: var(--bg-card); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 32px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2); transition: transform 0.3s, border-color 0.3s;
}
.glass-card:hover { border-color: var(--stroke-glow); transform: translateY(-3px); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.align-center { align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.premium-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card-icon { width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--stroke); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 24px; transition: transform 0.3s; }
.card-icon.accent1 { color: var(--accent1); background: rgba(124,108,255,0.1); border-color: rgba(124,108,255,0.25); }
.card-icon.accent2 { color: var(--accent2); background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.25); }
.card-icon.accent3 { color: var(--accent3); background: rgba(0,255,163,0.1); border-color: rgba(0,255,163,0.25); }
.glass-card.tilt:hover .card-icon { transform: scale(1.1) rotate(5deg); }

.glass-card h3 { font-size: 1.3rem; margin: 0 0 12px; font-weight: 700; color: #fff; }
.glass-card p { margin: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.flex-title { display: flex; align-items: center; gap: 10px; }
.accent1-text { color: var(--accent1); } .accent2-text { color: var(--accent2); } .accent3-text { color: var(--accent3); }

.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.05rem; line-height: 1.5; color: var(--text-muted); }
.feature-list li i { color: var(--accent2); margin-top: 4px; font-size: 1.1rem; }
.feature-list li strong { color: var(--text); }

/* Mockup Art for the left/right sections */
.visual-placeholder { position: relative; height: 350px; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle at center, rgba(124,108,255,0.15), transparent 70%); border: 1px solid rgba(255,255,255,0.05); }
.shield-core { font-size: 120px; color: var(--accent1); filter: drop-shadow(0 0 20px var(--accent1)); animation: pulseFloat 4s infinite ease-in-out; }

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 32px; max-width: 800px; margin-inline: auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.05); z-index: 0; }
.timeline-step { display: flex; gap: 24px; position: relative; z-index: 1; }
.timeline-number { width: 50px; height: 50px; flex-shrink: 0; background: var(--bg-card); border: 2px solid var(--accent2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: var(--accent2); box-shadow: 0 0 15px rgba(0,229,255,0.2); }
.timeline-content { background: var(--bg-card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 24px; flex: 1; backdrop-filter: blur(10px); }
.timeline-content h4 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; }
.timeline-content p { margin: 0; color: var(--text-muted); line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-accordion { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin-inline: auto; }
.faq-accordion details { padding: 8px; cursor: pointer; transition: all 0.3s; }
.faq-accordion details[open] { border-color: rgba(124,108,255,0.4); background: rgba(124,108,255,0.05); }
.faq-accordion summary { font-size: 1.15rem; font-weight: 600; padding: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text); outline: none; }
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent2); transition: transform 0.3s; }
.faq-accordion details[open] summary::after { transform: rotate(180deg); }
.faq-accordion p { padding: 0 16px 16px; margin: 0; color: var(--text-muted); line-height: 1.6; }

/* ---------- CTA Box ---------- */
.cta-box { background: linear-gradient(135deg, rgba(124,108,255,0.1), rgba(0,229,255,0.1)); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 60px 40px; text-align: center; }
.cta-box h3 { font-size: 2rem; margin: 0 0 12px; font-weight: 800; background: linear-gradient(to right, #fff, var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.cta-box p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; }

/* ---------- Footer ---------- */
footer { padding: 60px 0 40px; border-top: 1px solid var(--stroke); background: rgba(0,0,0,0.2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { height: 40px; filter: grayscale(100%) opacity(0.5); }
.footer-brand p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent2); }

/* ---------- Auth Banner ---------- */
.auth-error-banner { position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px); background: #ff4757; color: #fff; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 10px 20px rgba(255,71,87,0.3); opacity: 0; pointer-events: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 1000; display: flex; align-items: center; gap: 8px; }
.auth-error-banner.visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ---------- Animations ---------- */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.scroll-reveal.in-view { opacity: 1; transform: translateY(0); }

@keyframes pulseFloat { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(0, -10px) scale(1.05); filter: drop-shadow(0 0 30px var(--accent1)); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0); } }

/* Shared mockups from features */
.floating-bubble { position: absolute; padding: 12px 20px; border-radius: 99px; background: rgba(0,255,163,0.15); border: 1px solid rgba(0,255,163,0.3); color: var(--accent3); font-weight: 600; font-size: 0.9rem; display: flex; gap: 8px; align-items: center; box-shadow: 0 10px 20px rgba(0,0,0,0.3); backdrop-filter: blur(5px); z-index: 2;}
.floating-bubble.danger { background: rgba(255,71,87,0.15); border-color: rgba(255,71,87,0.3); color: var(--danger); z-index: 2;}
.bubble-1 { top: 20%; left: 10%; animation: float 6s infinite ease-in-out; }
.bubble-2 { bottom: 20%; right: 10%; animation: float 5s infinite ease-in-out 1s; }
