/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Sohne', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fafaf8;
  color: #1a1918;
}

::-webkit-scrollbar {
  display: none;
}

html {
  scroll-behavior: smooth;
}

/* ===== COLOR PALETTE ===== */
:root {
  --primary-dark: #0f172a;
  --primary-slate: #1e293b;
  --accent-warm: #d97706;
  --accent-light: #f59e0b;
  --cream: #fafaf8;
  --gray-light: #f1f1f0;
  --gray-mid: #a8a8a5;
  --gray-dark: #52524e;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  line-height: 1.6;
  color: #52524e;
  font-size: 1.1rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: none;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Staggered reveals for child elements */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: none;
}

.section.visible .stagger-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-item:nth-child(5) { transition-delay: 0.5s; }
.stagger-item:nth-child(6) { transition-delay: 0.6s; }

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, rgba(15, 23, 42, 0.03) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--gray-dark);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-visual {
  position: relative;
  height: 400px;
  perspective: 1000px;
}

.connection-node {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
}

.node-buyer {
  background: var(--primary-dark);
  top: 20px;
  left: 20px;
  animation: float 3s ease-in-out infinite;
}

.node-challenge {
  background: var(--accent-warm);
  top: 60px;
  right: 40px;
  animation: float 3.5s ease-in-out infinite;
  animation-delay: 0.3s;
}

.node-supplier {
  background: #059669;
  bottom: 40px;
  left: 80px;
  animation: float 4s ease-in-out infinite;
  animation-delay: 0.6s;
}

.node-solution {
  background: #0891b2;
  bottom: 60px;
  right: 30px;
  animation: float 3.2s ease-in-out infinite;
  animation-delay: 0.2s;
}

.connection-line {
  position: absolute;
  stroke: var(--accent-warm);
  stroke-width: 2;
  opacity: 0.3;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* ===== BUTTONS ===== */
.btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--primary-dark);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-warm);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(217, 119, 6, 0.3);
}

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

.btn-secondary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
}

/* ===== COMPARISON SECTION ===== */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.comparison-card {
  padding: 2.5rem;
  border-radius: 12px;
  transition: all 0.4s ease;
}

.comparison-old {
  background: #fef2f2;
  border-left: 5px solid #dc2626;
}

.comparison-new {
  background: #fffbeb;
  border-left: 5px solid #d97706;
  transform: scale(1.02);
}

.comparison-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.comparison-card ul {
  list-style: none;
  padding: 0;
}

.comparison-card li {
  padding: 0.75rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.comparison-card li::before {
  content: '✕';
  font-weight: bold;
  color: #ea580c;
  min-width: 20px;
}

.comparison-new li::before {
  content: '✓';
  color: #0891b2;
}

/* ===== VALUE CARDS ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.value-card {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e5e0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-warm), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  border-color: var(--accent-warm);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-warm));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  margin: 1rem 0;
  font-size: 1.25rem;
}

.value-card p {
  font-size: 1rem;
  color: var(--gray-mid);
}

/* ===== FLOW TIMELINE ===== */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-light);
  transform: translateX(-1px);
}

.timeline-item {
  margin-bottom: 3rem;
  width: 50%;
  padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
  margin-left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 16px;
  height: 16px;
  background: white;
  border: 3px solid var(--accent-warm);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -48px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -48px;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e5e5e0;
}

.timeline-content h4 {
  color: var(--accent-warm);
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-content h3 {
  margin: 0.5rem 0 0.75rem 0;
}

/* ===== FEATURE SHOWCASE ===== */
.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-image {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(8, 145, 178, 0.1));
  border-radius: 12px;
  padding: 2rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-image::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.1); opacity: 0.15; }
}

.feature-content h3 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.feature-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  color: var(--gray-dark);
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-warm);
  font-weight: bold;
}

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e5e0;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-warm);
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-description {
  font-size: 0.85rem;
  color: var(--gray-mid);
  margin-top: 0.75rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-slate) 100%);
  color: white;
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e5e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

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

.form-success {
  background: #d1fae5;
  border: 2px solid #10b981;
  color: #047857;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

/* ===== HEADER ===== */
header {
  background: white;
  border-bottom: 1px solid #e5e5e0;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1rem;
  }

  .hero-visual {
    display: none;
  }

  .comparison-container {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    margin-left: 0 !important;
    text-align: left !important;
  }

  .timeline-dot {
    left: 20px !important;
  }

  .feature-showcase {
    grid-template-columns: 1fr;
  }

  .feature-image {
    min-height: 300px;
  }

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

  .cta-section {
    padding: 2rem 1rem;
  }
}
