/* ReportGenAI — World-class static UI (Julius.ai inspired) */

:root {
  --bg: #06080f;
  --bg-elevated: #0c1019;
  --bg-card: rgba(255, 255, 255, 0.03);
  --surface: #111827;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.45);
  --accent: #a855f7;
  --accent-glow: rgba(168, 85, 247, 0.35);
  --cyan: #22d3ee;
  --success: #10b981;
  --error: #ef4444;
  --gradient-hero: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-mesh: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(168, 85, 247, 0.15), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(34, 211, 238, 0.1), transparent);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-glow: 0 0 60px -12px var(--primary-glow);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.landing { background: var(--bg); }

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(6, 8, 15, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-mark {
  width: 36px; height: 36px;
  background: var(--gradient-hero);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; gap: 0.75rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.btn-primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 4px 24px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

.btn-block { width: 100%; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  background: var(--gradient-mesh);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full, 9999px);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero h1 .gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

/* Prompt box (Julius-style) */
.prompt-box {
  position: relative;
  max-width: 720px;
  margin: 0 auto 2rem;
  animation: fadeUp 0.8s 0.3s ease both;
}

.prompt-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.prompt-inner:focus-within {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), var(--shadow-glow);
}

.prompt-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.0625rem;
  font-family: inherit;
  outline: none;
}

.prompt-input::placeholder { color: var(--text-dim); }

.prompt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.4s ease both;
}

.tag {
  padding: 0.375rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full, 9999px);
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.tag:hover {
  color: var(--text);
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.5s ease both;
}

/* Floating cards */
.hero-visual {
  position: relative;
  margin-top: 4rem;
  height: 320px;
  animation: fadeUp 1s 0.6s ease both;
}

.float-card {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  animation: float 6s ease-in-out infinite;
}

.float-card-1 { top: 0; left: 10%; width: 280px; animation-delay: 0s; }
.float-card-2 { top: 40px; right: 8%; width: 260px; animation-delay: -2s; }
.float-card-3 { bottom: 0; left: 30%; width: 300px; animation-delay: -4s; }

.float-card h4 { margin: 0 0 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
.float-card .metric { font-size: 1.75rem; font-weight: 700; }
.float-card .change { font-size: 0.8125rem; color: var(--success); }

.skeleton-line {
  height: 8px;
  background: linear-gradient(90deg, var(--border) 25%, rgba(255,255,255,0.06) 50%, var(--border) 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  animation: shimmer 1.5s infinite;
}

.skeleton-line.wide { width: 100%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.short { width: 45%; }

/* ── Sections ── */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-header p { color: var(--text-muted); font-size: 1.125rem; margin: 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.feature-icon.purple { background: rgba(168, 85, 247, 0.15); }
.feature-icon.blue { background: rgba(99, 102, 241, 0.15); }
.feature-icon.cyan { background: rgba(34, 211, 238, 0.15); }
.feature-icon.pink { background: rgba(236, 72, 153, 0.15); }

.feature-card h3 { margin: 0 0 0.75rem; font-size: 1.125rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin: 4rem 0;
}

.stat-item { text-align: center; }
.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.25rem; }

/* CTA */
.cta-section {
  padding: 6rem 0;
  text-align: center;
}

.cta-card {
  padding: 4rem 2rem;
  background: var(--gradient-mesh);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.05;
}

.cta-card h2 { position: relative; font-size: 2.25rem; margin: 0 0 1rem; }
.cta-card p { position: relative; color: var(--text-muted); margin: 0 0 2rem; }

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-elevated);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }
  .hero-visual { height: 200px; }
  .float-card { display: none; }
  .float-card-1 { display: block; position: relative; left: auto; width: 100%; }
}
