/* ============================================
   PREVIO LANDING — Shared Design Tokens
   Matches frontend/src/views/Home.vue
   ============================================ */

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

:root {
  /* ─── Frontend-aligned tokens ─── */
  --black: #000000;
  --white: #FFFFFF;
  --orange: #FF4500;
  --gray-light: #F5F5F5;
  --gray-text: #666666;
  --border: #E5E5E5;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;

  /* ─── Landing-specific extensions ─── */
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --orange-dim: rgba(255, 69, 0, 0.12);
  --orange-glow: rgba(255, 69, 0, 0.35);
  --container: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--gray-400);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ═══════ HEADER ═══════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.site-header.scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-brand {
  font-family: var(--font-mono);
  font-weight: 800; letter-spacing: 3px; font-size: 1.1rem; color: var(--white);
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.88rem; color: var(--gray-400); transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }

.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 28px; border-radius: 0; border: none;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
  color: var(--white); background: var(--orange); letter-spacing: 1px;
  text-transform: uppercase; transition: all 0.3s;
  box-shadow: 0 0 20px var(--orange-dim);
}
.btn-cta:hover { background: #e03d00; box-shadow: 0 0 30px var(--orange-glow); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 32px; border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem;
  color: var(--white); background: transparent; letter-spacing: 0.5px;
  transition: all 0.3s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.25); }

/* ═══════ HERO ═══════ */
.hero {
  position: relative; min-height: 80vh; display: flex; align-items: center;
  justify-content: center; padding: 140px 0 80px; overflow: hidden; text-align: center;
}
.hero-orb {
  position: absolute; top: 50%; left: 50%; width: 700px; height: 700px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,69,0,0.10) 0%, rgba(255,69,0,0.03) 40%, transparent 70%);
  filter: blur(60px); animation: orb-breathe 6s ease-in-out infinite; pointer-events: none;
}
@keyframes orb-breathe {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
}
.hero-content { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6rem); font-weight: 700; color: var(--white);
  line-height: 1.05; letter-spacing: -3px; margin-bottom: 28px;
}
.hero h1 .accent { color: var(--orange); position: relative; display: inline-block; }
.hero h1 .accent svg {
  position: absolute; bottom: -6px; left: 0; width: 100%;
}
.underline-path {
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: draw-line 1.2s ease forwards 0.6s;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem); color: var(--gray-500);
  max-width: 680px; margin: 0 auto 40px; line-height: 1.8;
}
.hero-subtitle strong { color: var(--white); font-weight: 600; }
.hero-subtitle em {
  color: var(--orange); font-style: normal; font-family: var(--font-mono); font-size: 0.95em;
}

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

/* Waitlist */
.waitlist { margin-top: 8px; }
.waitlist-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 600;
  color: var(--white); margin-bottom: 8px;
}
.waitlist-desc { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 20px; white-space: pre-line; line-height: 1.6; }
.waitlist-form { display: flex; gap: 12px; max-width: 420px; margin: 0 auto; }
.waitlist-form input {
  flex: 1; padding: 12px 16px; background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: var(--white); font-size: 0.9rem; font-family: var(--font-mono); outline: none; transition: border-color 0.2s;
}
.waitlist-form input::placeholder { color: var(--gray-600); }
.waitlist-form input:focus { border-color: var(--orange); }
.waitlist-form button {
  padding: 12px 24px; background: var(--white); color: var(--black); border: none;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.5px; transition: background 0.2s;
}
.waitlist-form button:hover { background: #ddd; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  animation: float-down 2s ease-in-out infinite; color: var(--gray-500); cursor: pointer;
}
@keyframes float-down {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ═══════ SECTIONS ═══════ */
.section { padding: 80px 0; position: relative; overflow: hidden; }
.section-orb {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,69,0,0.06) 0%, transparent 70%);
  filter: blur(80px); pointer-events: none;
}
.section-orb.tl { top: -200px; left: -200px; }
.section-orb.br { bottom: -200px; right: -200px; }

.section-header { text-align: center; margin-bottom: 64px; position: relative; z-index: 2; }
.section-tag {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  color: var(--orange); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--white);
  margin-bottom: 16px; letter-spacing: -1px;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--gray-500); max-width: 640px;
  margin: 0 auto; white-space: pre-line; line-height: 1.7;
}

/* ═══════ DEMO VIDEO ═══════ */
.demo-layout {
  display: flex; gap: 24px; position: relative; z-index: 2;
}
.demo-tabs {
  flex: 0 0 300px; display: flex; flex-direction: column; gap: 8px;
}
.demo-tab {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; text-align: left; border: none;
  background: transparent; color: var(--gray-500);
  border-radius: 0; transition: all 0.3s; cursor: pointer;
  border-left: 2px solid transparent;
}
.demo-tab:hover { background: rgba(255,255,255,0.03); }
.demo-tab.active {
  background: rgba(255,69,0,0.06); color: var(--white);
  border-left-color: var(--orange);
}
.tab-num {
  width: 28px; height: 28px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 0.8rem;
  background: rgba(255,255,255,0.05); color: var(--gray-600);
  transition: all 0.3s;
}
.demo-tab.active .tab-num { background: rgba(255,69,0,0.15); color: var(--white); }
.tab-info { display: flex; flex-direction: column; gap: 4px; }
.tab-title { font-weight: 600; font-size: 0.9rem; }
.tab-desc { font-size: 0.75rem; line-height: 1.5; opacity: 0.7; }
.demo-window {
  flex: 1; position: relative;
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: #1a1a1a;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  transform: perspective(1200px) rotateX(1deg);
  transition: transform 0.4s ease;
}
.demo-window:hover { transform: perspective(1200px) rotateX(0deg); }
.mac-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mac-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.mac-dot.red { background: #ff5f57; }
.mac-dot.yellow { background: #febc2e; }
.mac-dot.green { background: #28c840; }
.mac-title {
  flex: 1; text-align: center; font-family: var(--font-mono);
  font-size: 0.7rem; color: var(--gray-600); letter-spacing: 0.5px;
}
.demo-player {
  position: relative; background: #0a0a0a; aspect-ratio: 16 / 9;
}
.demo-player video {
  width: 100%; height: 100%; object-fit: contain; display: block;
}

/* ═══════ FEATURE CARDS ═══════ */
.feat-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  position: relative; z-index: 2;
}
.feat-card {
  position: relative; padding: 28px 20px; border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02); transition: border-color 0.4s, transform 0.3s; overflow: hidden;
}
.feat-card:hover { border-color: rgba(255,69,0,0.25); transform: translateY(-3px); }
.feat-card .glow {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,69,0,0.06), transparent, rgba(255,69,0,0.03));
}
.feat-card:hover .glow { opacity: 1; }
.feat-icon { width: 36px; height: 36px; margin-bottom: 16px; color: var(--gray-500); transition: color 0.3s; }
.feat-card:hover .feat-icon { color: var(--orange); }
.feat-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gray-600); margin-bottom: 12px; }
.feat-card:hover .feat-num { color: var(--orange); }
.feat-card h3 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.feat-card p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.6; }

/* ═══════ USE CASES ═══════ */
.cases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  position: relative; z-index: 2;
}
.case-card {
  position: relative; padding: 28px 24px; border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02); transition: border-color 0.4s, transform 0.3s; overflow: hidden;
}
.case-card:hover { border-color: rgba(255,69,0,0.2); transform: translateY(-2px); }
.case-card .bar {
  position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,69,0,0.35), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.case-card:hover .bar { opacity: 1; }
.case-label {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  color: var(--gray-600); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
}
.case-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 8px; line-height: 1.4; }
.case-card p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; }

/* ═══════ ABOUT ═══════ */
.about { padding: 96px 0; }
.about-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 2; }
.about-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--white);
  margin-bottom: 28px; line-height: 1.4;
}
.about-inner h2 .dim {
  font-weight: 600; background: linear-gradient(90deg, var(--gray-400), var(--gray-600));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.about-inner p { font-size: 0.95rem; color: var(--gray-500); line-height: 1.8; margin-bottom: 28px; }
.about-inner h3 { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.about-list { list-style: none; margin-bottom: 36px; }
.about-list li { display: flex; gap: 12px; font-size: 0.95rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 8px; }
.about-list .dash { color: var(--gray-600); flex-shrink: 0; }

.manifesto { text-align: center; margin-top: 48px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 48px; }
.manifesto p { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.4; margin-bottom: 4px; letter-spacing: -0.5px; }
.manifesto .dim { color: var(--gray-500); }
.manifesto .bright { color: var(--white); }

/* ═══════ FOOTER ═══════ */
.site-footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-left { display: flex; align-items: center; gap: 16px; }
.footer-sep { color: var(--gray-700); }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { color: var(--gray-600); transition: color 0.2s; display: flex; }
.footer-socials a:hover { color: var(--white); }
.footer-socials svg { width: 18px; height: 18px; }
.footer-copy { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gray-700); letter-spacing: 0.5px; }

/* ═══════ ANIMATIONS ═══════ */
.anim { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim.visible { opacity: 1; transform: translateY(0); }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 120px 0 60px; min-height: 70vh; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .waitlist-form { flex-direction: column; }
  .demo-layout { flex-direction: column; }
  .demo-tabs { flex: none; flex-direction: row; overflow-x: auto; gap: 4px; }
  .demo-tab { min-width: 160px; border-left: none; border-bottom: 2px solid transparent; }
  .demo-tab.active { border-bottom-color: var(--orange); border-left-color: transparent; }
  .tab-desc { display: none; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
}
