/* ===========================
   LANDING PAGE - FLUID DESIGN
   =========================== */

/* Accessibility */
.sr-only, .visually-readable {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #3b82f6;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Variables */
:root {
  --primary: #3b82f6;
  --accent: #8b5cf6;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-light: #f9fafb;
  --border: #e5e7eb;
  --radius: clamp(0.5rem, 1vw, 1rem);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(0.875rem, 0.8rem + 0.5vw, 1rem);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.landing-header {
  padding: clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--text);
  transition: transform 0.2s;
}

.logo:hover {
  transform: scale(1.05);
}

.logo svg {
  color: var(--primary);
}

/* Hero */
.hero {
  text-align: center;
  padding: clamp(2rem, 8vw, 4rem) clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 50%, #f093fb15 100%);
  min-height: clamp(400px, 60vh, 600px);
  position: relative;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: clamp(1rem, 2vw, 1.375rem);
  color: var(--text-muted);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  max-width: 650px;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: clamp(0.875rem, 2vw, 1.125rem) clamp(1.5rem, 4vw, 3rem);
  border: none;
  border-radius: var(--radius);
  font-size: clamp(0.9rem, 1.5vw, 1.125rem);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.35);
}

.cta-button:active {
  transform: translateY(-1px);
}

.subtext {
  margin-top: clamp(0.75rem, 1.5vw, 1rem);
  color: var(--text-muted);
  font-size: clamp(0.85rem, 1vw, 0.9375rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.subtext::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  max-width: min(1100px, 95vw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
}

.feature {
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
}

.feature:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(70px, 12vw, 90px);
  height: clamp(70px, 12vw, 90px);
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: var(--radius);
  transition: transform 0.25s;
}

.feature:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
  color: var(--primary);
}

.feature h3 {
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  font-weight: 700;
  margin-bottom: clamp(0.5rem, 1vw, 1rem);
  color: var(--text);
}

.feature:hover h3 {
  color: var(--primary);
}

.feature p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Use Cases */
.use-cases {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
  background: var(--bg-light);
}

.use-cases h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  max-width: min(1100px, 95vw);
  margin: 0 auto;
}

.use-case {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
  cursor: pointer;
}

.use-case:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-6px) scale(1.02);
}

.use-case-emoji {
  font-size: clamp(2rem, 5vw, 3rem);
  display: block;
  margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
  transition: transform 0.25s;
}

.use-case:hover .use-case-emoji {
  transform: scale(1.15) rotate(5deg);
}

.use-case h4 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  transition: color 0.25s;
}

.use-case:hover h4 {
  color: var(--primary);
}

.use-case p {
  color: var(--text-muted);
  font-size: clamp(0.85rem, 1.2vw, 0.9375rem);
}

/* FAQ */
.faq-section {
  max-width: min(800px, 95vw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
}

.faq-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  color: var(--text);
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 1rem);
}

.faq-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.5rem);
  transition: all 0.25s;
}

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

.faq-item[open] {
  background: var(--bg);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.faq-item summary {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: clamp(0.75rem, 1.5vw, 1rem);
  color: var(--text-muted);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
}

/* Footer */
.landing-footer {
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-light);
}

.landing-footer small {
  font-size: clamp(0.85rem, 1.2vw, 0.9375rem);
  opacity: 0.8;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: clamp(1rem, 2vw, 2rem);
  right: clamp(1rem, 2vw, 2rem);
  z-index: 999;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.25s;
  pointer-events: none;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.floating-cta .cta-button {
  box-shadow: var(--shadow-lg);
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.25rem, 2vw, 2rem);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
}

.floating-cta .cta-button:hover {
  transform: translateY(-4px);
}
