/* ========================================
   Save and Chat - Clean Productivity Theme
   Light Theme | Inter Font | Bento Grid
   ======================================== */

:root {
  /* Color System */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-surface: #FFFFFF;
  
  /* Text Colors */
  --text-main: #0F172A;
  --text-body: #475569;
  --text-muted: #94A3B8;
  
  /* Brand Colors */
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --accent-blue: #3B82F6;
  --accent-pink: #DB2777;
  --accent-green: #16A34A;
  --accent-gold: #FFD700;
  
  /* Borders & Shadows */
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Spacing & Radius */
  --container-width: 1100px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Font */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-body);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  cursor: pointer;
  gap: 8px;
}

.btn-primary {
  background-color: var(--text-main); /* Dark Button on Light bg looks very modern */
  color: white;
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
  background-color: var(--primary); /* Indigo for Hero CTA */
}

.btn-lg:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-lg);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-content {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.logo-img.sm {
  width: 28px;
  height: 28px;
}

.logo-icon-bg {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon-bg.sm {
  width: 24px;
  height: 24px;
  padding: 4px;
}

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

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-body);
  font-weight: 500;
}

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

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
}

.hero-text {
  max-width: 600px;
  margin: 0 auto 60px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #EEF2FF;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.user-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.avatars {
  display: flex;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border: 2px solid white;
  margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }

/* CSS Browser Mockup */
.hero-visual {
  max-width: 800px;
  margin: 0 auto;
  perspective: 1000px;
}

.browser-window {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: rotateX(2deg);
  transition: transform 0.5s ease;
}

.browser-window:hover {
  transform: rotateX(0deg);
}

.browser-header {
  background: #F8FAFC;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
}

.browser-dots span:nth-child(1) { background: #EF4444; }
.browser-dots span:nth-child(2) { background: #F59E0B; }
.browser-dots span:nth-child(3) { background: #10B981; }

.browser-address {
  flex: 1;
  background: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  border: 1px solid #E2E8F0;
  font-family: monospace;
}

.browser-body {
  height: 400px;
  position: relative;
  background: #FAFAFA;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

/* Simulated Chat Interface */
.chat-interface {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.chat-message {
  display: flex;
  gap: 12px;
  max-width: 80%;
  opacity: 0;
  animation: slideUp 0.5s ease forwards;
}

.chat-message.assistant {
  align-self: flex-start;
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
  animation-delay: 1.5s;
}

.chat-message.typing {
  animation-delay: 3s;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.user-av {
  background: var(--text-main);
  font-size: 0.7rem;
  font-weight: 700;
}

.msg-content {
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  border-top-left-radius: 2px;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
}

.chat-message.user .msg-content {
  background: var(--primary);
  color: white;
  border-radius: 12px;
  border-top-right-radius: 2px;
}

/* Typing Animation */
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #CBD5E1;
  margin: 0 2px;
  animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

/* Floating Cards Decoration */
.float-card {
  position: absolute;
  background: white;
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 12px;
  align-items: center;
  width: 200px;
  z-index: 10;
  animation: float 6s ease-in-out infinite;
}

.card-pdf {
  top: 40px;
  right: 40px;
  transform: rotate(6deg);
}

.card-web {
  top: 80px;
  left: 40px;
  transform: rotate(-4deg);
  animation-delay: 2s;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.7rem;
}

.pdf-icon { background: #FEE2E2; color: #EF4444; }
.web-icon { background: #DBEAFE; color: #3B82F6; }

.card-text { display: flex; flex-direction: column; }
.card-title { font-weight: 600; font-size: 0.85rem; }
.card-sub { font-size: 0.7rem; color: var(--text-muted); }

/* Bento Grid Features */
.features {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.bento-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.span-2 {
  grid-column: span 2;
}

.card-icon-lg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.blue-bg { background: #EFF6FF; color: var(--accent-blue); }
.red-bg { background: #FEF2F2; color: #EF4444; }
.purple-bg { background: #FAF5FF; color: #A855F7; }
.green-bg { background: #F0FDF4; color: var(--accent-green); }

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card-content p {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* Step Timeline */
.how-it-works {
  padding: 100px 0;
  background: white;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 250px;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--text-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 24px;
}

.step-line {
  height: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 20px;
}

/* FAQ Section - Clean Accordion */
.faq-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-q {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-a {
  padding: 0 24px 24px 24px;
  max-height: 200px;
}

.faq-q svg {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-q svg {
  transform: rotate(180deg);
}

/* Footer */
footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 60px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

.footer-left {
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.link-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-col h4 {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.link-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.link-col a:hover {
  color: var(--primary);
}

.copyright {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot)); }
  50% { transform: translateY(-10px) rotate(var(--rot)); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .span-2 { grid-column: auto; }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .step-line {
    width: 2px;
    height: 40px;
    flex: none;
    margin: 0;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .float-card { display: none; } /* Hide floating decorators on mobile */
}
