@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Geist+Mono:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-pure: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  /* Brand Accents - Vibrant Rust/Orange (No purple, premium startup look) */
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-light: #ffedd5;
  --accent-glow: rgba(249, 115, 22, 0.15);
  
  /* Borders and Grids */
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #f97316;
  
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Geist Mono', SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease-out;
}

/* Reset and Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

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

/* Utility Gradients & Background Patterns */
.grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background-image: 
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 450px),
    radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.03), transparent 300px),
    linear-gradient(rgba(241, 245, 249, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 245, 249, 0.6) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  background-position: 0 0;
  z-index: -1;
  pointer-events: none;
}

.subtle-gradient-bg {
  background: linear-gradient(180deg, var(--bg-pure) 0%, var(--bg-soft) 100%);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* General Layout Containers */
section {
  padding: 120px 24px;
  display: flex;
  justify-content: center;
  position: relative;
}

.section-container {
  width: 100%;
  max-width: var(--max-width);
  position: relative;
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.btn-primary:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background-color: var(--bg-soft);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--bg-pure);
  border: 1px solid var(--accent);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* HERO SECTION */
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  margin-top: 40px;
}

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

.hero-headline {
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-subheadline {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* HERO VISUAL: AI Agent Terminal */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.agent-terminal {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 
    0 10px 30px -10px rgba(0,0,0,0.08), 
    0 1px 3px rgba(0,0,0,0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.terminal-header {
  background-color: var(--bg-soft);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cbd5e1;
}

.terminal-dot.dot-red { background-color: #ef4444; }
.terminal-dot.dot-yellow { background-color: #eab308; }
.terminal-dot.dot-green { background-color: #22c55e; }

.terminal-title {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.terminal-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
  animation: pulse-green 2s infinite;
}

.terminal-body {
  padding: 24px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: var(--bg-pure);
}

.terminal-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  animation: fade-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.terminal-prompt {
  display: flex;
  gap: 8px;
  color: var(--text-secondary);
}

.terminal-prompt-symbol {
  color: var(--accent);
  font-weight: bold;
}

.terminal-response {
  padding: 12px;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terminal-response-header {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.terminal-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.step-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-loading {
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  animation: spin 1s linear infinite;
}

.step-success {
  color: #22c55e;
  font-weight: bold;
}

.item-badge {
  background-color: var(--accent-light);
  color: var(--accent-hover);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* PROBLEM SECTION */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px auto;
}

.section-header p {
  font-size: 1.15rem;
  margin-top: 16px;
}

.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.problem-card {
  padding: 40px;
  background: var(--bg-pure);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.problem-card.old-way {
  background-color: var(--bg-soft);
  opacity: 0.85;
}

.problem-card.new-way {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.04);
}

.problem-card h3 {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.problem-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.problem-card.old-way .list-icon {
  color: #ef4444;
}

.problem-card.new-way .list-icon {
  color: #22c55e;
}

/* SOLUTION SECTION */
.solution-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition-smooth);
  position: relative;
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.05);
}

.solution-card .step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 24px;
}

.solution-card h3 {
  margin-bottom: 16px;
}

.solution-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.example-tag {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.solution-visual-box {
  background: var(--bg-soft);
  border: 1px dashed var(--border-light);
  border-radius: 8px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 32px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.benefit-card:hover .benefit-icon {
  background: var(--accent-light);
  border-color: var(--accent);
}

.benefit-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* HOW IT WORKS (ARCHITECTURE DIAGRAM) */
.flow-diagram-wrapper {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 48px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: auto;
}

.flow-svg {
  width: 100%;
  max-width: 800px;
  height: auto;
}

.flow-node {
  cursor: pointer;
}

.flow-node rect {
  fill: var(--bg-pure);
  stroke: var(--border-light);
  stroke-width: 1.5;
  transition: var(--transition-smooth);
}

.flow-node:hover rect {
  stroke: var(--accent);
  filter: drop-shadow(0 4px 8px rgba(249, 115, 22, 0.1));
}

.flow-node text {
  fill: var(--text-primary);
  font-weight: 600;
  font-size: 11px;
  text-anchor: middle;
}

.flow-path {
  fill: none;
  stroke: var(--border-light);
  stroke-width: 2;
  stroke-dasharray: 6 4;
  animation: dash 30s linear infinite;
  transition: var(--transition-smooth);
}

.flow-path.active {
  stroke: var(--accent);
  stroke-width: 2.5;
}

/* FUTURE VISION SECTION */
.future-card {
  background: linear-gradient(135deg, var(--bg-pure) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.future-content h2 {
  margin-bottom: 24px;
}

.future-content p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.6;
}

.future-visual {
  height: 240px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  background: var(--bg-pure);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dynamic dot network map visual for Future Section */
.network-dots {
  position: absolute;
  width: 100%;
  height: 100%;
}

.network-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.network-dot.active {
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.network-line {
  position: absolute;
  background-color: var(--border-light);
  height: 1px;
  transform-origin: left center;
  opacity: 0.5;
}

/* EARLY ACCESS SECTION */
.access-section {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.access-card {
  background: var(--bg-pure);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 48px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.02);
  text-align: center;
}

.access-card h2 {
  margin-bottom: 16px;
}

.access-card p {
  margin-bottom: 32px;
}

.access-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background-color: var(--bg-soft);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.input-field:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: var(--bg-pure);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-feedback {
  font-size: 0.85rem;
  margin-top: 8px;
  display: none;
}

.form-feedback.success {
  color: #22c55e;
  display: block;
}

.form-feedback.error {
  color: #ef4444;
  display: block;
}

/* FOOTER */
footer {
  padding: 80px 24px 40px 24px;
  background-color: var(--bg-pure);
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border-light);
}

.footer-container {
  width: 100%;
  max-width: var(--max-width);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tech Stack Badges Section */
.tech-stack-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
}

/* ANIMATIONS */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

/* SCROLL FADE-IN */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-on-scroll.appear {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-subheadline {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .solution-layout {
    grid-template-columns: 1fr 1fr;
  }
  
  .solution-card:last-child {
    grid-column: span 2;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .future-card {
    grid-template-columns: 1fr;
    padding: 40px;
  }
  
  .future-visual {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Can add a mobile hamburger menu if needed, keeping it minimalist for now */
  }
  
  section {
    padding: 80px 20px;
  }
  
  .problem-layout {
    grid-template-columns: 1fr;
  }
  
  .solution-layout {
    grid-template-columns: 1fr;
  }
  
  .solution-card:last-child {
    grid-column: span 1;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
