:root {
  --bg: #050914;
  --panel: #0A1128;
  --panel-hover: #0E183B;
  --line: rgba(0, 180, 255, 0.15);
  --line-hover: rgba(0, 180, 255, 0.4);
  --blue: #00B4FF;
  --cyan: #00FFFF;
  --white: #FFFFFF;
  --text: #A0B0D0;
  --dim: #5C6F91;
  --radius: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--cyan); }
h1, h2, h3, h4 { color: var(--white); letter-spacing: -0.02em; line-height: 1.2; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: 0.2s; border: 1px solid transparent;
}
.btn-primary { background: var(--blue); color: var(--bg); box-shadow: 0 0 20px rgba(0,180,255,0.3); }
.btn-primary:hover { background: var(--cyan); color: var(--bg); box-shadow: 0 0 30px rgba(0,255,255,0.4); }
.btn-ghost { border-color: var(--line); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); background: rgba(0,180,255,0.05); }

/* Header & Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 9, 20, 0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 32px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--white); font-size: 20px; letter-spacing: -0.5px; }
.brand img, .brand svg { width: 38px; height: 38px; }
.brand span { color: var(--blue); }
.nav ul { display: flex; gap: 28px; list-style: none; margin-left: auto; align-items: center; }
.nav ul a { color: var(--text); font-size: 14.5px; font-weight: 500; }
.nav ul a:hover { color: var(--white); }
.nav .btn { margin-left: 16px; padding: 10px 24px; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

/* SaaS Hero */
.hero { padding: 100px 0 60px; text-align: center; position: relative; }
.hero::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px; background: radial-gradient(circle, rgba(0,180,255,0.15) 0%, transparent 60%);
  z-index: -1; pointer-events: none;
}
.hero .eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--blue);
  text-transform: uppercase; font-weight: 700; margin-bottom: 24px;
  border: 1px solid var(--line); padding: 6px 16px; border-radius: 999px; background: rgba(0,180,255,0.05);
}
.hero h1 { font-size: clamp(40px, 5vw, 64px); max-width: 18ch; margin: 0 auto 24px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 18px; max-width: 65ch; margin: 0 auto 40px; }
.hero .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

/* Dashboard Mockup */
.dashboard-mockup {
  max-width: 1000px; margin: 0 auto; border-radius: 16px 16px 0 0;
  border: 1px solid var(--line); border-bottom: none;
  background: var(--panel); padding: 20px; box-shadow: 0 -20px 60px rgba(0,180,255,0.1);
  position: relative; overflow: hidden;
}
.dash-header { display: flex; gap: 8px; margin-bottom: 20px; }
.dash-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dim); }
.dash-body { background: var(--bg); border-radius: 8px; border: 1px solid var(--line); height: 400px; display: flex; }
.dash-sidebar { width: 250px; border-right: 1px solid var(--line); padding: 20px; }
.dash-content { flex: 1; padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.dash-line { height: 12px; background: var(--line); border-radius: 4px; margin-bottom: 12px; width: 100%; }
.dash-line.short { width: 60%; }

/* INFINITE MARQUEE */
.marquee-container {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--panel); padding: 24px 0; overflow: hidden;
  display: flex; align-items: center; position: relative;
}
.marquee-container::before, .marquee-container::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 150px; z-index: 2;
}
.marquee-container::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee-container::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee-track {
  display: flex; align-items: center; white-space: nowrap;
  animation: scrollLeft 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-size: 14px; font-weight: 600; letter-spacing: 2px; color: var(--text);
  text-transform: uppercase; display: flex; align-items: center; gap: 32px; margin-right: 32px;
}
.marquee-item::before { content: '♦'; color: var(--blue); font-size: 16px; }
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
section { padding: 100px 0; border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-head .kicker { font-size: 12px; letter-spacing: 3px; color: var(--blue); font-weight: 700; margin-bottom: 12px; display: block; text-transform: uppercase; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 16px; }
.section-head p { font-size: 17px; color: var(--text); }

/* Grids & Cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; transition: 0.3s; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--line-hover); transform: translateY(-4px); box-shadow: 0 10px 40px rgba(0,180,255,0.05); }
.card .icon {
  width: 56px; height: 56px; border-radius: 12px; background: rgba(0,180,255,0.1);
  display: grid; place-items: center; color: var(--blue); font-size: 24px; margin-bottom: 24px;
}
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--text); margin-bottom: 24px; }
.card .link { font-size: 14px; font-weight: 600; color: var(--cyan); display: flex; align-items: center; gap: 6px; }
.card .link::after { content: '→'; transition: 0.2s; }
.card:hover .link::after { transform: translateX(4px); }

/* Tabs */
.tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  padding: 12px 24px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.tab-btn.active, .tab-btn:hover { background: rgba(0,180,255,0.1); border-color: var(--blue); color: var(--white); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Footer */
.site-footer { background: #02040A; padding: 80px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 64px; }
.footer-grid h4 { font-size: 14px; letter-spacing: 1px; color: var(--white); margin-bottom: 20px; text-transform: uppercase; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a, .footer-grid p { color: var(--text); font-size: 14px; }
.footer-grid a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--dim); }

/* Utilities */
.fade-up { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .nav ul { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-sidebar { display: none; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid, .dash-content { grid-template-columns: 1fr; }
}