/* landing.css */

:root {
  --bg: #F4F1EA;
  --bg-secondary: #ECE7DC;
  --bg-card: #FFFFFF;
  --text: #2B2823;
  --text-muted: #6B6558;
  --accent: #D97757;
  --accent-hover: #C56645;
  --border: #DED7C8;
  --radius-lg: 24px;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --bg: #1A1A1A;
  --bg-secondary: #242424;
  --bg-card: #2D2D2D;
  --text: #F4F4F4;
  --text-muted: #A1A1A1;
  --border: #3A3A3A;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 87, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--bg-secondary);
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: rgba(var(--bg), 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

/* Fake UI Window */
.ui-window {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 500px;
}

.ui-header {
  height: 50px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--bg-secondary);
  font-weight: 600;
  font-size: 14px;
}

.ui-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  animation: popIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.chat-bubble.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.system-msg {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  align-self: center;
  animation: fadeIn 0.4s ease both;
}

.ui-input {
  height: 60px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.fake-input {
  flex: 1;
  height: 36px;
  background: var(--bg-secondary);
  border-radius: 18px;
  border: 1px solid var(--border);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

/* Sections */
section {
  padding: 120px 0;
}

.section-title {
  font-size: 40px;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
  line-height: 1.6;
}

/* Storytelling Flow */
.flow-container {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 800px;
  margin: 0 auto;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 40px;
}

.flow-step:nth-child(even) {
  flex-direction: row-reverse;
}

.flow-text {
  flex: 1;
}

.flow-text h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.flow-text p {
  color: var(--text-muted);
  line-height: 1.6;
}

.flow-visual {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
}

/* CTA */
.cta-section {
  text-align: center;
  background: var(--bg-secondary);
  padding: 100px 20px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto 32px auto;
  }
  .flow-step, .flow-step:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}
