/**
 * SharpFlow AI - Main Stylesheet
 * Landing Page Styles
 */

:root {
  --bg-color: #030014;
  --bg-panel: #0F0B1E;
  --primary: #8B5CF6;
  --primary-glow: #7c3aed;
  --header-height: 80px;
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --gradient-text: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 50%, #A78BFA 100%);
  --gradient-btn: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
}

* { box-sizing: border-box; outline: none; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(3, 0, 20, 0) 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(3, 0, 20, 0.6);
}

.site-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 22px;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.main-nav__list {
  display: flex;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav__link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav__link:hover { color: var(--text-main); }

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

.btn {
  padding: 10px 24px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  border: none;
}

.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--text-main);
}

.btn--primary {
  background: var(--gradient-btn);
  color: white;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.btn--white {
  background: white;
  color: black;
}

.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 16px 4px 4px;
  border-radius: 99px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--text-muted);
  transition: background 0.3s;
}

.hero__badge:hover { background: rgba(255, 255, 255, 0.08); }

.badge-pill {
  background: linear-gradient(90deg, #7C3AED, #DB2777);
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.hero__title {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 700;
  margin: 0 auto 24px;
  max-width: 900px;
  letter-spacing: -1.5px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.dashboard-container {
  margin-top: 60px;
  background: rgba(10, 10, 20, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.15) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.window-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.control { width: 10px; height: 10px; border-radius: 50%; }
.control.red { background: #FF5F56; }
.control.yellow { background: #FFBD2E; }
.control.green { background: #27C93F; }

.app-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  height: 500px;
  position: relative;
  z-index: 1;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-item {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-item:hover:not(.active) { color: white; }

.content-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-bar {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.search-bar__title {
  color: white;
  font-weight: 600;
  display: block;
}

.search-input {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 6px;
  width: 250px;
  color: white;
}

.date-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.date-pill {
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.grid-widgets {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 20px;
  height: 100%;
}

.widget {
  background: #0B0B15;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.widget-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.widget-value {
  font-size: 32px;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
}

.stat-green { color: #10B981; font-size: 14px; vertical-align: middle; margin-left: 8px; }
.stat-red { color: #EF4444; font-size: 14px; vertical-align: middle; margin-left: 8px; }

.graph-line {
  flex-grow: 1;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.graph-point {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #8B5CF6;
  border: 2px solid #0B0B15;
  border-radius: 50%;
  box-shadow: 0 0 10px #8B5CF6;
}

.graph-tooltip {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  background: #1E1B2E;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 11px;
  white-space: nowrap;
}

.graph-tooltip__value {
  color: white;
}

.graph-tooltip__percent {
  margin-left: 8px;
}

.list-content__title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 13px;
  color: #E2E8F0;
}

.list-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
}

.social-proof {
  text-align: center;
  padding-bottom: 80px;
}

.logo-cloud {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  opacity: 0.5;
}

.logo-item {
  font-weight: 700;
  font-size: 18px;
  color: white;
  letter-spacing: -0.5px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .hero__title { font-size: 40px; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .grid-widgets { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
