/* home.css — Landing Page Specific Styles */

/* 1. Hero Section */
.hero-section {
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-24);
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: calc(var(--nav-height) + var(--space-8));
    padding-bottom: var(--space-16);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-12);
}

@media (max-width: 1024px),
(pointer: coarse) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-8);
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 10;
}

@media (max-width: 1024px),
(pointer: coarse) {
  .hero-content {
    align-items: center;
  }
}

.hero-tag {
  margin-bottom: var(--space-4);
}

.hero-title {
  font-size: var(--text-5xl);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-6);
  background: linear-gradient(to right, var(--color-text) 50%, var(--color-text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: var(--text-6xl);
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
}

.hero-subtitle {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: 580px;
}

@media (max-width: 640px) {
  .hero-subtitle {
    font-size: var(--text-base);
  }
}

.hero-form-wrapper {
  width: 100%;
  margin-bottom: var(--space-8);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.hero-mockup-frame {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 16/10;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  padding: var(--space-3);
  position: relative;
  overflow: hidden;
}

@media (max-width: 1024px),
(pointer: coarse) {
  .hero-mockup-frame {
    aspect-ratio: auto;
  }

  .hero-mockup-content {
    height: auto;
  }
}

.hero-mockup-content {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 2. Problem Statement ("Sound Familiar?") */
.problem-section {
  background-color: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.section-title-wrapper {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-16);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

@media (max-width: 640px) {
  .section-title {
    font-size: var(--text-2xl);
  }
}

.problem-card {
  border-left: 3px solid var(--color-error);
}

.problem-card:hover {
  border-left-color: #ef4444;
}

.problem-quote {
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

/* 3. How It Works (Steps) */
.steps-container {
  position: relative;
}

.steps-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-border) 0%, rgba(51, 65, 85, 0) 100%);
  transform: translateX(-50%);
  z-index: 1;
}



.step-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-16);
  position: relative;
  z-index: 2;
}

.step-row:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px),
(pointer: coarse) {
  .step-row {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
  }

  .steps-line {
    display: none;
  }
}

.step-card {
  display: flex;
  flex-direction: column;
}

.step-row:nth-child(even) .step-card {
  grid-column: 2;
}

@media (max-width: 1024px),
(pointer: coarse) {
  .step-row:nth-child(even) .step-card {
    grid-column: auto;
  }
}

.step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-600);
  color: var(--color-text);
  font-weight: 800;
  font-size: var(--text-base);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  margin-bottom: var(--space-4);
}

/* Brand-palette accent variants (cycled across steps) */
.step-badge-emerald {
  background-color: var(--color-success);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.step-badge-amber {
  background-color: var(--color-warning);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.step-image-mockup {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-elevated);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

@media (max-width: 1024px), (pointer: coarse) {
  .step-image-mockup {
    display: none;
  }
}

/* 3.1 Step Mockup Widgets */
.widget-mockup {
  width: 100%;
  max-width: 360px;
  background: rgba(19, 27, 53, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: left;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: var(--space-2);
}

.widget-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}

.widget-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.widget-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  transition: background var(--transition-fast);
}

.widget-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.widget-item-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  font-weight: 500;
}

.widget-item-action {
  font-size: 10px;
  font-weight: 600;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}

.widget-btn-approve {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.widget-btn-approve:hover {
  background-color: rgba(16, 185, 129, 0.3);
}

.widget-btn-redeem {
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--color-primary-400);
  border: 1px solid rgba(59, 130, 246, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.widget-btn-redeem:hover {
  background-color: rgba(59, 130, 246, 0.3);
}

.widget-badge-pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.widget-badge-active {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.widget-badge-grey {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-row:nth-child(even) .step-image-mockup {
  grid-column: 1;
  grid-row: 1;
}

@media (max-width: 1024px),
(pointer: coarse) {
  .step-row:nth-child(even) .step-image-mockup {
    grid-column: auto;
    grid-row: auto;
  }
}