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

:root {
  --color-primary: #005ed8;
  --color-primary-dark: #0046a3;
  --color-primary-light: #e8f1ff;
  --color-secondary: #6366f1;
  --color-accent: #f59e0b;
  --color-text: #0f172a;
  --color-text-light: #64748b;
  --color-text-muted: #94a3b8;
  --color-bg: #ffffff;
  --color-bg-light: #f8fafc;
  --color-bg-dark: #f1f5f9;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  
  --font-family-display: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  --font-size-4xl: 48px;
  --font-size-5xl: 56px;
  
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 80px;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
  
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease-in-out;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-family-display);
  letter-spacing: -0.5px;
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  letter-spacing: -1px;
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  letter-spacing: -0.5px;
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
}

p {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

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

a:hover {
  color: var(--color-bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  letter-spacing: 0.4px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 94, 216, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 94, 216, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  border-width: 2px;
}

.btn-outline:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
}

/* ============================================================================
   Header
   ========================================================================== */

.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.98);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.logo {
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  transition: var(--transition);
}

.logo-link:hover .logo {
  transform: scale(1.05);
}

.brand-name {
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-2xl);
  flex: 1;
  margin-left: var(--spacing-3xl);
}

.nav-menu a {
  font-weight: 600;
  color: var(--color-text);
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* ============================================================================
   Hero Section
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: var(--spacing-4xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 94, 216, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text > p {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-2xl);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* Dashboard Mock */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-mock {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  max-width: 440px;
}

.mock-header {
  background: #1e293b;
  color: white;
  padding: var(--spacing-lg) var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: var(--font-size-base);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-dots {
  display: flex;
  gap: 8px;
}

.mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b5563;
}

.mock-body {
  padding: 0;
  background: #ffffff;
}

.mock-item {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-lg);
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  align-items: flex-start;
}

.mock-item:last-child {
  border-bottom: none;
}

.mock-item-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #8b92a9;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mock-item-value {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.3px;
}

/* ============================================================================
   Features Section
   ========================================================================== */

.features {
  padding: var(--spacing-4xl) 0;
  background: #ffffff;
}

.features-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.features-header h2 {
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.features-header p {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  padding: var(--spacing-2xl);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  background: #ffffff;
  transition: var(--transition);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-marker {
  width: 4px;
  height: 40px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 2px;
  margin-bottom: var(--spacing-lg);
  transition: var(--transition);
}

.feature-card:hover .feature-marker {
  height: 60px;
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(0, 94, 216, 0.08);
  transform: translateY(-4px);
}

.feature-card h3 {
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  line-height: 1.8;
  margin: 0;
}

/* ============================================================================
   How It Works Section
   ========================================================================== */

.how-it-works {
  padding: var(--spacing-4xl) 0;
  background: #f8fafc;
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  color: var(--color-text);
}

.steps-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto;
}

.step {
  flex: 1;
  min-width: 240px;
  padding: var(--spacing-xl);
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.step:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(0, 94, 216, 0.08);
  transform: translateY(-4px);
}

.step-number {
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: 0 4px 15px rgba(0, 94, 216, 0.25);
  transition: var(--transition);
}

.step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 94, 216, 0.35);
}

.step h3 {
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-xl);
}

.step p {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.step-arrow {
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 300;
  flex-shrink: 0;
  opacity: 0.7;
  transition: var(--transition);
}

.step-arrow:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ============================================================================
   Contact Section
   ========================================================================== */

.contact {
  padding: var(--spacing-4xl) 0;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 50%, #e0e7f1 100%);
  color: var(--color-text);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.contact::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.contact h2 {
  color: #0f172a;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
  font-size: var(--font-size-4xl);
  letter-spacing: -0.5px;
}

.contact-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  position: relative;
  z-index: 1;
}

.contact-subtitle {
  text-align: center;
  font-size: var(--font-size-lg);
  color: #475569;
  margin: 0 auto;
  max-width: 700px;
  position: relative;
  z-index: 1;
  line-height: 1.8;
  font-weight: 400;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 102, 204, 0.15);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #334155;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  background: #ffffff;
  color: #0f172a;
  transition: var(--transition-fast);
  letter-spacing: 0.3px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.contact-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: #ffffff;
  border: none;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 16px 32px;
  font-size: var(--font-size-base);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: var(--spacing-md);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.contact-form button:hover {
  background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

/* ============================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #ffffff;
  color: var(--color-text);
  padding: var(--spacing-2xl) 0;
  border-top: 1px solid #e2e8f0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-lg);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.footer-brand .logo {
  color: var(--color-primary);
  width: 36px;
  height: 36px;
  transition: var(--transition);
}

.footer-brand:hover .logo {
  transform: rotate(10deg) scale(1.05);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-nav a {
  color: var(--color-text-light);
  transition: var(--transition);
  font-weight: 500;
  position: relative;
  padding-left: 0;
}

.footer-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.footer-nav a:hover::before {
  width: 100%;
}

.footer-nav a:hover {
  color: var(--color-text);
}

.footer-meta p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.footer-meta p:last-child {
  margin-bottom: 0;
}

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

@media (max-width: 768px) {
  :root {
    --font-size-4xl: 36px;
    --font-size-3xl: 28px;
    --spacing-3xl: 40px;
    --spacing-2xl: 32px;
  }

  .header-content {
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }

  .nav-menu {
    margin-left: 0;
    order: 3;
    flex-basis: 100%;
    margin-top: var(--spacing-md);
    gap: var(--spacing-md);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .steps-container {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-4xl: 28px;
    --font-size-3xl: 24px;
    --font-size-xl: 18px;
    --spacing-xl: 24px;
    --spacing-2xl: 24px;
    --spacing-3xl: 24px;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .site-header {
    position: relative;
  }

  .logo-link {
    gap: var(--spacing-xs);
  }

  .logo {
    width: 32px;
    height: 32px;
  }

  .nav-menu {
    font-size: var(--font-size-sm);
    gap: var(--spacing-md);
  }

  .header-content .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
  }

  h1 {
    font-size: var(--font-size-3xl);
  }

  h2 {
    font-size: var(--font-size-2xl);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-mock {
    max-width: 100%;
  }

  .contact-form {
    padding: var(--spacing-lg);
  }
}
