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

:root {
  --color-bg: #000000;
  --color-text: #ffffff;
  --color-text-dim: #888888;
  --color-accent: #6276c5;
  --color-accent-dim: #00aa88;
  --color-card-bg: #0a0a0a;
  --color-border: #1a1a1a;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 6rem;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-links a:hover {
  color: var(--color-accent);
}

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

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 0 5rem;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2rem;
}

.hero-text {
  text-align: left;
  opacity: 0;
  animation: fadeInUp 1.5s ease forwards;
  animation-delay: 2s;
}

.hero-title {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  padding-bottom: 0.2em;
  overflow: visible;
}

.title-line {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow: visible;
}

.hero-subtitle {
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--color-text-dim);
  max-width: 600px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-right {
  position: relative;
  z-index: 10;
  flex: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-left: 2rem;
  opacity: 0;
  animation: fadeInUp 1.5s ease forwards;
  animation-delay: 2.3s;
}

.hero-tagline {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 204, 0.3);
}

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

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

.btn-primary.large {
  padding: 1.5rem 4rem;
  font-size: 1.2rem;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 3s;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(20px); opacity: 0.3; }
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--spacing-lg) 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  margin-bottom: var(--spacing-md);
}

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.25rem;
  color: var(--color-text-dim);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== PROBLEM SECTION ===== */
.problem-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, #0a0a0a 100%);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-md);
}

.problem-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.problem-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

.problem-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.problem-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.problem-card p {
  color: var(--color-text-dim);
  line-height: 1.8;
}

/* ===== SOLUTION SECTION ===== */
.solution-section {
  background: #0a0a0a;
}

.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: var(--spacing-lg);
}

.feature-showcase.reverse {
  direction: rtl;
}

.feature-showcase.reverse > * {
  direction: ltr;
}

.feature-visual {
  position: relative;
}

.feature-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.feature-content p {
  font-size: 1.1rem;
  color: var(--color-text-dim);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--color-text-dim);
  font-size: 1rem;
}

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

/* ===== KANBAN PREVIEW ===== */
.kanban-preview {
  display: flex;
  gap: 1rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.kanban-column {
  flex: 1;
  min-width: 150px;
}

.kanban-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.kanban-card {
  height: 60px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.kanban-card:hover {
  border-color: var(--color-accent);
  transform: translateX(5px);
}

/* ===== COMPARISON PREVIEW ===== */
.comparison-preview {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.comparison-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.9rem;
}

.comparison-row.header {
  background: transparent;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
}

.comparison-row.total {
  border-color: var(--color-accent);
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ===== EXTENSION SECTION ===== */
.extension-section {
  background: linear-gradient(180deg, #0a0a0a 0%, var(--color-bg) 100%);
}

.extension-demo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

.extension-step {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.extension-step:hover {
  transform: translateY(-10px);
  border-color: var(--color-accent);
}

.step-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-dim);
  font-weight: 700;
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.extension-step h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.extension-step p {
  color: var(--color-text-dim);
  font-size: 0.9rem;
}

.extension-arrow {
  font-size: 2rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: var(--color-bg);
  padding: var(--spacing-lg) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.stat-card {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.05) 0%, transparent 100%);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--color-accent);
  transform: scale(1.05);
}

.stat-number {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-accent) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  font-weight: 600;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #0a0a0a 0%, var(--color-bg) 100%);
  padding: var(--spacing-xl) 0;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--color-text-dim);
  margin-bottom: 3rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .feature-showcase {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .feature-showcase.reverse {
    direction: ltr;
  }

  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .extension-arrow {
    display: none;
  }

  .hero-section {
    flex-direction: column;
    padding: 0 2rem;
    justify-content: center;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    padding: 2rem 0;
  }

  .hero-right {
    text-align: center;
    align-items: center;
    padding: 2rem 0;
  }

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: var(--spacing-lg) 0;
  }

  .container {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

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

  .comparison-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .comparison-row > div {
    padding: 0.25rem 0;
  }
}
