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

:root {
  --primary: #ef4444;
  --primary-hover: #dc2626;
  --primary-light: rgba(239, 68, 68, 0.1);
  --primary-glow: rgba(239, 68, 68, 0.25);
  --orange: #f97316;
  --orange-light: rgba(249, 115, 22, 0.1);
  --amber: #f59e0b;
  --gradient-fire: linear-gradient(135deg, #ef4444, #f97316, #f59e0b);
  --gradient-text: linear-gradient(135deg, #f97316, #f59e0b);
  --bg-base: #08080c;
  --bg-elevated: #0e0e16;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.1);
  --text-primary: #f0f0f5;
  --text-secondary: #9090a8;
  --text-tertiary: #55556a;
  --success: #10b981;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --transition: all 0.2s ease;
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-overflow-scrolling: touch;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   UTILITY
   ============================================ */
.section {
  padding: 100px 160px;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-fire);
  color: #fff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: var(--transition-slow);
  background: transparent;
}

.header.scrolled {
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 160px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 800;
  z-index: 1001;
}

.header-logo img {
  height: 48px;
  width: auto;
}

.header-logo span {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.header-nav a:hover {
  color: var(--text-primary);
  background: var(--primary-light);
}

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

.header-actions .btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 160px;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  left: -200px;
  animation: orb-float 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--orange);
  bottom: -200px;
  right: -200px;
  animation: orb-float 12s ease-in-out infinite 4s;
}

.hero-orb-3 {
  width: 400px;
  height: 400px;
  background: var(--amber);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orb-float 12s ease-in-out infinite 8s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid {
  display: flex;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-graph-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graph-bg svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.6;
}

.hero-content {
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-content-text {
  flex: 1 1 auto;
  max-width: 600px;
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: 24px;
  animation: fade-in-up 0.6s ease forwards;
  opacity: 0;
}

.hero-title {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  animation: fade-in-up 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero-title em {
  font-style: normal;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 1.1vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fade-in-up 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-in-up 0.6s ease 0.3s forwards;
  opacity: 0;
}

/* Hero Graph Abstract (background) */

.hero-graph-overlay {
  width: auto;
  max-width: 750px;
  height: auto;
  max-height: 550px;
  min-width: 320px;
  object-fit: contain;
  opacity: 0.9;
  mix-blend-mode: screen;
  pointer-events: none;
  position: relative;
  z-index: 2;
  margin-left: auto;
  flex-shrink: 1;
  flex-basis: auto;
}

.graph-wave {
  animation: wave-flow 3s ease-in-out infinite;
}

.graph-wave:nth-child(2) { animation-delay: 0.3s; }
.graph-wave:nth-child(3) { animation-delay: 0.6s; }
.graph-wave:nth-child(4) { animation-delay: 0.9s; }
.graph-wave:nth-child(5) { animation-delay: 1.2s; }
.graph-wave:nth-child(6) { animation-delay: 1.5s; }
.graph-wave:nth-child(7) { animation-delay: 1.8s; }

@keyframes wave-flow {
  0%, 100% { opacity: 0.15; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(-8px); }
}

.graph-pulse {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.graph-pulse:nth-child(2) { animation-delay: 0.5s; }
.graph-pulse:nth-child(3) { animation-delay: 1s; }

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; r: 2; }
  50% { opacity: 0.8; r: 3.5; }
}

/* ============================================
   BENEFITS
   ============================================ */
.benefits {
  background: var(--bg-elevated);
}

.benefits-header {
  text-align: center;
  margin-bottom: 64px;
}

.benefits-header .section-label {
  justify-content: center;
}

.benefits-header .section-title {
  max-width: 700px;
  margin: 0 auto;
}

.benefits-header .section-subtitle {
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-fire);
  opacity: 0;
  transition: var(--transition);
}

.benefit-card:hover {
  border-color: rgba(239, 68, 68, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card h6 {
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.benefit-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.benefit-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--orange);
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefit-icon-2 {
  background: var(--orange-light);
  color: var(--amber);
}

.benefit-icon-3 {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  position: relative;
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-header .section-label {
  justify-content: center;
}

.services-header .section-title {
  max-width: 700px;
  margin: 0 auto;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: rgba(239, 68, 68, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.service-card h6 {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.service-graph {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.service-graph svg {
  width: 100%;
  height: auto;
  max-height: 80px;
}

/* ============================================
   PROCESS
   ============================================ */
.process {
  background: var(--bg-elevated);
  text-align: center;
}

.process-header {
  margin-bottom: 64px;
}

.process-header .section-label {
  justify-content: center;
}

.process-header .section-title {
  max-width: 700px;
  margin: 0 auto;
}

.process-header .section-subtitle {
  margin: 0 auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 32px;
  position: relative;
}

.process-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-fire);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 24px;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

.process-step h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
}

/* ============================================
   STATS
   ============================================ */
.stats {
  padding: 80px 160px;
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  text-align: center;
  padding: 100px 160px;
  position: relative;
  overflow: hidden;
}

.contact-header {
  margin-bottom: 48px;
}

.contact-header .section-label {
  justify-content: center;
}

.contact-header .section-title {
  max-width: 700px;
  margin: 0 auto 16px;
}

.contact-header .section-subtitle {
  margin: 0 auto;
  max-width: 520px;
}

.contact-form-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group.error .form-input,
.form-group.error .form-textarea {
  border-color: var(--primary);
}

.form-error {
  display: none;
  color: var(--primary);
  font-size: 12px;
  margin-top: 2px;
}

.form-group.error .form-error {
  display: block;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 15px;
  margin-top: 8px;
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 160px;
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

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

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 360px;
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 40px;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .section { padding: 80px 60px; }
  .hero { padding: 0 60px; padding-top: var(--header-height); }
  .header-inner { padding: 0 60px; }
  .stats { padding: 60px 60px; }
  .contact { padding: 80px 60px; }
  .footer { padding: 60px 60px; }

  .hero-content-text {
    max-width: 400px;
  }

  .hero-graph-overlay {
    max-width: 600px;
    min-width: 280px;
  }
}

@media (max-width: 1024px) {
  .section { padding: 80px 40px; }
  .hero { padding: 0 40px; padding-top: var(--header-height); }
  .header-inner { padding: 0 40px; }
  .stats { padding: 60px 40px; }
  .contact { padding: 80px 40px; }
  .footer { padding: 60px 40px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    padding: 0;
    flex-direction: column;
  }

  .hero-content-text {
    max-width: 100%;
  }

  .hero-graph-overlay {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

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

  .benefits-grid,
  .services-grid,
  .process-steps {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header {
    position: sticky;
    top: 0;
  }

  .header-nav {
    display: none;
  }

  .header-nav.open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(8, 8, 12, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: 999;
  }

  .header-nav.open a {
    font-size: 20px;
    padding: 16px 32px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .section { padding: 60px 24px; }
  .hero { padding: 0 24px; padding-top: var(--header-height); }
  .header-inner { padding: 0 24px; }
  .stats { padding: 40px 24px; }
  .contact { padding: 60px 24px; }
  .footer { padding: 40px 24px; }

  .hero-orb-1 {
    width: 300px;
    height: 300px;
  }

  .hero-orb-2 {
    width: 250px;
    height: 250px;
  }

  .hero-orb-3 {
    width: 200px;
    height: 200px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 12px;
  }

  .stat-number {
    font-size: clamp(22px, 6vw, 32px);
  }

  .stat-label {
    font-size: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-graph-overlay {
    max-width: none;
  }
}
