/*
 * answerr - Modern Landing Page Stylesheet (landing.css)
 * Theme: Cosmic Deep Dark / Clean Tech Glassmorphism
 * Responsive, accessible, and high-converting.
 */

/* Container & Base Layout */
.landing-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 1. Header & Navigation */
.landing-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  display: flex;
  align-items: center;
}

.landing-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.landing-brand {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.landing-brand-logo {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
  transition: transform 0.25s ease;
}

.landing-brand:hover .landing-brand-logo {
  transform: scale(1.08) rotate(3deg);
}

.landing-header nav {
  flex: 2;
  display: flex;
  justify-content: center;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.landing-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}

.landing-nav-link:hover {
  color: var(--cyan);
}

.landing-nav-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
}

.btn-launch-app {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  color: #07090e;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.launch-text-mobile {
  display: none;
}

.btn-launch-app:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.55);
  filter: brightness(1.08);
}

.btn-nav-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-nav-ghost:hover {
  border-color: var(--cyan);
  color: var(--text-main);
  background: var(--bg-card-hover);
}

/* 2. Hero Section */
.landing-hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 1.8rem;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.hero-pill-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot-anim 2s infinite;
}

@keyframes pulse-dot-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.landing-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 auto 1.5rem auto;
  max-width: 900px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero-subhead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  color: #07090e;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.65);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  color: var(--cyan);
}

/* 3. Hero Live Simulation Card (Showcase) */
.hero-simulation-wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(145deg, #090e1a 0%, #0d1527 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.12);
  overflow: hidden;
  text-align: left;
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(15, 20, 34, 0.7);
  border-bottom: 1px solid var(--border-subtle);
}

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

.sim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.sim-dot.red { background: #ef4444; }
.sim-dot.yellow { background: #eab308; }
.sim-dot.green { background: #10b981; }

.sim-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.sim-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .sim-grid { grid-template-columns: 1fr; }
}

.sim-box {
  background: rgba(14, 21, 37, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.sim-box-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}

.sim-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.sim-verdict-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
}

.sim-verdict-badge {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sim-metrics {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* 4. Core Feature Pillars Section */
.landing-section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: var(--transition);
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.4);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--cyan);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.pillar-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 5. Twin Ecosystem Showcase Section */
.ecosystem-section {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 20, 34, 0.5) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ecosystem-card-wrap {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(15, 22, 41, 0.95), rgba(8, 12, 22, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.ecosystem-img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.7));
}

.ecosystem-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 640px) {
  .ecosystem-dual-grid { grid-template-columns: 1fr; }
}

.eco-side-box {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(14, 21, 37, 0.6);
  border: 1px solid var(--border-subtle);
}

.eco-side-box.answerr {
  border-color: rgba(192, 132, 252, 0.3);
}

.eco-side-box.werr {
  border-color: rgba(56, 189, 248, 0.3);
}

.eco-side-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.eco-side-box.answerr .eco-side-title { color: #c084fc; }
.eco-side-box.werr .eco-side-title { color: #38bdf8; }

.eco-side-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* 6. Code Integration Section */
.code-section-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: #05070b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 20, 34, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.code-tabs {
  display: flex;
  gap: 0.5rem;
}

.code-tab {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
}

.code-tab.active {
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
}

.code-pre {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: auto;
}

.code-pre .kw { color: #f43f5e; font-weight: 600; }
.code-pre .fn { color: #38bdf8; }
.code-pre .str { color: #10b981; }
.code-pre .cm { color: #64748b; font-style: italic; }

/* 7. Call To Action (Bottom Banner) */
.landing-cta-banner {
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.18) 0%, rgba(15, 20, 34, 0.95) 75%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.15);
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* 8. Footer */
.landing-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  background: var(--bg-app);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--cyan);
}

/* Comprehensive Mobile Responsiveness */
@media (max-width: 768px) {
  .landing-header {
    height: 60px;
    padding: 0 0.5rem;
  }
  .landing-brand {
    gap: 0.5rem;
  }
  .landing-brand-logo {
    width: 28px;
    height: 28px;
  }
  .landing-brand .brand-title {
    font-size: 1.15rem;
  }
  .landing-header nav {
    display: none;
  }
  .landing-nav-links {
    display: none;
  }
  .landing-nav-actions {
    gap: 0.5rem;
  }
  .launch-text-desktop {
    display: none;
  }
  .launch-text-mobile {
    display: inline;
  }
  .btn-launch-app {
    padding: 0.38rem 0.8rem;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .btn-nav-ghost {
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .landing-hero {
    padding: 2.5rem 0 2rem;
  }
  .hero-pill-badge {
    font-size: 0.72rem;
    padding: 0.28rem 0.75rem;
    max-width: 100%;
    line-height: 1.35;
    margin-bottom: 1.25rem;
  }
  .landing-hero-headline {
    font-size: 2.1rem;
    margin-bottom: 1rem;
    line-height: 1.18;
  }
  .landing-hero-subhead {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.8rem;
    padding: 0 0.5rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }
  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
  }

  /* Simulation Card Mobile */
  .hero-simulation-wrap {
    border-radius: var(--radius-lg);
  }
  .sim-header {
    padding: 0.6rem 0.85rem;
  }
  .sim-title {
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
  }
  .sim-body {
    padding: 0.85rem;
    gap: 0.85rem;
  }
  .sim-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .sim-box {
    padding: 0.75rem;
  }
  .sim-code {
    font-size: 0.72rem;
    overflow-x: auto;
  }
  .sim-verdict-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
  }
  .sim-verdict-badge {
    font-size: 0.82rem;
    flex-wrap: wrap;
  }
  .sim-metrics {
    font-size: 0.72rem;
  }

  /* Pillars and Ecosystem */
  .landing-section {
    padding: 3rem 0;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .section-desc {
    font-size: 0.92rem;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .pillar-card {
    padding: 1.25rem;
  }
  .ecosystem-card-wrap {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-lg);
  }
  .ecosystem-dual-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .code-pre {
    padding: 1rem;
    font-size: 0.76rem;
  }
  .cta-box {
    padding: 2.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }
  .cta-headline {
    font-size: 1.6rem;
  }
  .cta-sub {
    font-size: 0.92rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}
