/* ==========================================================================
   Global Variables & Theme Tokens
   ========================================================================== */
:root {
  /* Brand Colors from Logo */
  --color-primary: #446DC0;
  --color-primary-light: #5A7DBD;
  --color-primary-dark: #3B61AD;

  /* Backgrounds & Surfaces (Premium Dark Theme) */
  --bg-main: #0a0a0c;
  --bg-surface: #13141a;
  --bg-surface-elevated: #1c1d24;

  /* Text Colors */
  --text-main: #ffffff;
  --text-muted: #9ba1b0;
  --text-inverse: #0a0a0c;

  /* Glass/Gradients */
  --glass-bg: rgba(26, 28, 38, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --gradient-brand: linear-gradient(135deg, #446DC0, #6186CC);
  --gradient-glow: linear-gradient(135deg, rgba(68, 109, 192, 0.5), rgba(90, 125, 189, 0.1));

  /* Utilities */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
}

.highlight {
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 0;
  width: 100%;
  height: 30%;
  background: rgba(68, 109, 192, 0.3);
  z-index: -1;
  transform: rotate(-2deg);
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(68, 109, 192, 0.39);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(68, 109, 192, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
  padding: 12px 0;
}

.btn-text:hover {
  color: #fff;
}

.btn-text:hover::after {
  content: '';
  display: block;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* Glass Panels */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.badge span {
  background: var(--gradient-brand);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   Layout & Sections
   ========================================================================== */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 32px;
  width: auto;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  color: var(--text-muted);
  font-weight: 500;
}

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

/* Subtle background grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* Visual Mockup/Abstract Art */
.hero-visual {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.glass-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  top: 10%;
  right: 10%;
  animation: float 8s ease-in-out infinite alternate;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: #2a1b54;
  bottom: 10%;
  left: 10%;
  animation: float 10s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-30px) scale(1.05);
  }
}

.dashboard-mockup {
  width: 100%;
  height: 480px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.glass-tilt {
  transform: rotateY(-15deg) rotateX(5deg) translateZ(50px);
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.glass-tilt:hover {
  transform: rotateY(-5deg) rotateX(5deg) translateZ(80px);
}

.mockup-header {
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.dots span:nth-child(1) {
  background: #ff5f56;
}

.dots span:nth-child(2) {
  background: #ffbd2e;
}

.dots span:nth-child(3) {
  background: #27c93f;
}

.mockup-search {
  height: 24px;
  width: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.mockup-body {
  display: flex;
  flex: 1;
}

.mockup-sidebar {
  width: 80px;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid var(--glass-border);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mockup-menu-item {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.mockup-menu-item.active {
  background: var(--color-primary);
  opacity: 0.8;
}

.mockup-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mockup-metrics {
  display: flex;
  gap: 16px;
}

.mockup-metric-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mockup-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.mockup-line {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.mockup-line.w-50 {
  width: 50%;
}

.mockup-line.w-60 {
  width: 60%;
}

.mockup-line.w-70 {
  width: 70%;
}

.mockup-line.w-80 {
  width: 80%;
}

.mockup-line.fw {
  width: 100%;
  height: 6px;
  opacity: 0.5;
}

/* full width */

.mockup-chart {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

/* Creates a fake chart look */
.mockup-chart::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(0deg, rgba(68, 109, 192, 0.2) 0%, transparent 100%);
  border-top: 2px dashed rgba(68, 109, 192, 0.5);
  transform: translateY(20px);
}

/* Trusted By */
.trusted-by {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.01);
  text-align: center;
}

.trusted-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.logo-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all var(--transition-normal);
}

.logo-strip:hover {
  opacity: 0.8;
}

.placeholder-brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

/* Features Section */
.features-section {
  padding: 120px 0;
  position: relative;
}

.features-section .section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 40px 32px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(36, 40, 56, 0.5);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon svg {
  color: #fff;
}

.bg-blue-1 {
  background: linear-gradient(135deg, #446DC0, #3B61AD);
}

.bg-blue-2 {
  background: linear-gradient(135deg, #5A7DBD, #446DC0);
  filter: hue-rotate(-15deg);
}

.bg-blue-3 {
  background: linear-gradient(135deg, #3D63B0, #2a4b8d);
  filter: hue-rotate(15deg);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--text-muted);
}

/* Dashboard Preview Section */
.dashboard-preview-section {
  padding: 120px 0;
  background: radial-gradient(circle at top right, rgba(68, 109, 192, 0.1), transparent 50%);
}

.dashboard-preview-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.benefit-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefit-item {
  display: flex;
  gap: 16px;
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(68, 109, 192, 0.2);
  color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.benefit-item h4 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.benefit-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.large-mockup {
  height: 500px;
  transform: rotateY(-10deg) rotateX(2deg);
}

.large-mockup:hover {
  transform: rotateY(-2deg) rotateX(2deg);
}

.mockup-title {
  font-weight: 500;
  font-size: 0.9rem;
  color: #fff;
}

.mockup-profile {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
}

.pl-0 {
  padding-left: 24px;
}

.no-border {
  padding: 0;
  gap: 0;
}

.align-items-stretch {
  align-items: stretch;
  background: rgba(0, 0, 0, 0.2);
}

/* Detail Mockup Table */
.mockup-table {
  width: 100%;
}

.mockup-table-row {
  display: flex;
  padding: 16px 24px;
  border-bottom: 1px solid var(--glass-border);
  align-items: center;
}

.mockup-table-row.header {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.02);
}

.mockup-table-cell {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.w-20 {
  width: 20%;
}

.w-30 {
  width: 30%;
}

.mockup-pill {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 12px;
}

.c-blue {
  background: #3b82f6;
}

.c-purple {
  background: #8b5cf6;
}

.c-gray {
  background: #9ca3af;
}

.mockup-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
}

.success {
  background: #10b981;
}

.warning {
  background: #f59e0b;
}

.mockup-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.mockup-progress .fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
}

.mockup-progress .bg-warning {
  background: #f59e0b;
}


/* Bottom CTA */
.cta-section {
  padding: 80px 0 40px;
}

.cta-container {
  padding: 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, rgba(26, 28, 38, 0.6) 0%, rgba(68, 109, 192, 0.1) 100%);
  border: 1px solid var(--glass-border);
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.footer {
  background: #050505;
  padding: 20px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  margin-bottom: 12px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo {
  height: 32px;
}

.footer-desc {
  color: var(--text-muted);
  max-width: 300px;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 24px;
  color: #fff;
}

.footer-column a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Overrides */
@media (max-width: 992px) {

  .hero-content,
  .dashboard-preview-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle,
  .section-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .features-section .section-header {
    text-align: center;
  }

  .benefit-list {
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* simple hidden for mobile, could add hamburger */
  }

  .hero {
    padding-top: 120px;
  }

  .cta-container {
    padding: 40px 24px;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}