/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
  /* Huaris Colors */
  --c-petroleum-dark: #041414;
  --c-petroleum: #0a0f0f;
  --c-petroleum-light: #145252;
  --c-mint: #10b981;
  --c-mint-light: #34d399;
  --c-mint-bright: #6ee7b7;
  --c-white: #ffffff;
  --c-slate-300: #cbd5e1;
  --c-slate-400: #94a3b8;
  --c-slate-500: #64748b;
  --c-slate-800: #1e293b;
  
  --font-base: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Light Theme Variables (Default) */
body {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
}

/* Dark Theme Variables */
body.dark-theme {
  --bg-main: var(--c-petroleum-dark);
  --bg-card: var(--c-petroleum);
  --text-main: var(--c-white);
  --text-muted: var(--c-slate-400);
  --border-color: var(--c-petroleum-light);
}

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

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

a {
  color: var(--c-mint);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--c-mint-light);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
h1 { font-size: 3.5rem; letter-spacing: -1px; }
h2 { font-size: 2.5rem; letter-spacing: -0.5px; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; }

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

/* Header */
header {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo svg {
  width: 24px;
  height: 24px;
  stroke: var(--c-mint);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text-main);
}
.btn {
  display: inline-block;
  background-color: var(--c-mint);
  color: var(--c-petroleum-dark);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover {
  background-color: var(--c-mint-light);
  transform: translateY(-2px);
}
.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  border-color: var(--c-mint);
  color: var(--c-mint);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 8rem 0 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 800px;
}
.hero h1 {
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
}

/* ==========================================================================
   Night Window / Timeline
   ========================================================================== */
.night-window {
  background-color: var(--c-petroleum-dark);
  color: var(--c-white);
  padding: 5rem 2rem;
  border-radius: var(--border-radius);
  margin: 4rem 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.night-window h2 {
  color: var(--c-white);
  margin-bottom: 3rem;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 3rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--c-petroleum-light);
}
.timeline-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.time {
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--c-mint-light);
  width: 5rem;
  flex-shrink: 0;
}
.dot {
  width: 12px;
  height: 12px;
  background: var(--c-petroleum-dark);
  border: 2px solid var(--c-mint);
  border-radius: 50%;
  margin-left: -7px;
}
.timeline-item.success .dot {
  background: var(--c-mint);
  box-shadow: 0 0 10px var(--c-mint);
}
.timeline-item.success .event {
  color: var(--c-mint-bright);
  font-weight: 600;
}
.event {
  font-size: 1.1rem;
  color: var(--c-slate-300);
}

/* ==========================================================================
   Features / Problem / Solution
   ========================================================================== */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}
.feature-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}
.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}
.feature-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Call to Action */
.cta-section {
  text-align: center;
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
}
.cta-section h2 {
  margin-bottom: 2rem;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .feature-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .timeline::before { left: 4rem; }
  .dot { margin-left: -5px; }
  .time { width: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
