/* Landing Page Styles - Evanax.io clone */
:root {
  /* Using variables from variables.css where possible, but overriding/adding specific landing page needs */
  --landing-bg-dark: #0B1C33;
  --landing-bg-darker: #051120;
  --landing-accent: #FF5C00;
  --landing-text-main: #FFFFFF;
  --landing-text-muted: #94A3B8;
  --landing-card-bg: rgba(255, 255, 255, 0.03);
  --landing-card-border: rgba(255, 255, 255, 0.1);
  --landing-grad-1: linear-gradient(135deg, #0B1C33 0%, #051120 100%);
  --landing-grad-text: linear-gradient(90deg, #FFFFFF 0%, #E2E8F0 100%);
}

html {
  overflow-y: auto;
}

/* Override base.css body rules for landing page */
body.landing-page-body {
  background-color: var(--landing-bg-dark);
  color: var(--landing-text-main);
  font-family: var(--font-family-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: visible;
  height: auto !important;
}

/* --- Decoration / Backgrounds --- */
.landing-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 92, 0, 0.15) 0%, rgba(11, 28, 51, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  top: -100px;
  right: -100px;
}

.glow-2 {
  bottom: -100px;
  left: -100px;
}

.glow-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

/* --- Container --- */
.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* --- Utilities --- */
.text-accent {
  color: var(--landing-accent);
}

.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

/* --- Header --- */
.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  position: relative;
  z-index: 10;
}

.landing-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-nav-items {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.landing-nav-link {
  color: var(--landing-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.landing-nav-link:hover {
  color: white;
}

.landing-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-nav-btn:hover {
  background: var(--landing-accent);
  border-color: var(--landing-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 92, 0, 0.3);
}

/* --- Hero Section --- */
.landing-hero {
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.2em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--landing-text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.trust-bullets {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.trust-bullet {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--landing-text-muted);
  font-size: 0.9rem;
}

.trust-bullet svg {
  color: var(--landing-accent);
  width: 18px;
  height: 18px;
}

/* Hero visuals: flow diagram card + battery/validation icon */
.hero-visuals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 2.5rem auto 2.5rem;
  flex-wrap: wrap;
}

.hero-flow-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-flow-svg {
  width: 100%;
  height: auto;
  max-width: 380px;
  min-width: 280px;
}

.hero-icon-illustration {
  flex-shrink: 0;
}

.hero-icon-illustration svg {
  width: 100%;
  height: auto;
  max-width: 140px;
  max-height: 140px;
}

/* Diagram section: process flow (inputs → DeValWi → outputs) */
.diagram-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.diagram-section-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.diagram-flow-wrap {
  max-width: 540px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
}

.diagram-flow-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Product preview strip */
.section--preview {
  padding-top: 4rem;
}

.preview-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.preview-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.preview-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

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

.btn-primary-glow {
  background: var(--landing-accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 92, 0, 0.4);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-primary-glow:hover {
  background: #ff7a2b;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 92, 0, 0.5);
}

.btn-secondary-glass {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* --- Section Styling --- */
.section {
  padding: 6rem 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section--why {
  padding-top: 5rem;
}

.section--why .section-subtitle {
  margin-bottom: 1.5rem;
}

.why-principle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--landing-text-muted);
  max-width: 600px;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
}

.section-subtitle--wide {
  max-width: 720px;
}

.section-title--small {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* --- Feature/Problem Cards --- */
.feature-card {
  background: var(--landing-card-bg);
  border: 1px solid var(--landing-card-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 92, 0, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--landing-accent);
  flex-shrink: 0;
}

.feature-icon.warning {
  color: #F59E0B;
  background-color: rgba(245, 158, 11, 0.1);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-text {
  color: var(--landing-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* --- How it Works Steps --- */
.steps-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
  flex-wrap: wrap;
}

.step-item {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 280px;
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: rgba(255, 92, 0, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--landing-accent);
  border: 1px solid rgba(255, 92, 0, 0.3);
}

.step-connector {
  flex: 0 0 32px;
  align-self: center;
  color: var(--landing-text-muted);
  opacity: 0.7;
}

.step-connector svg {
  width: 100%;
  height: 4px;
  display: block;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--landing-bg-dark);
  border: 2px solid var(--landing-accent);
  color: var(--landing-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--landing-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Benefit highlight band (contrasting background) */
.benefit-band {
  background: linear-gradient(135deg, rgba(255, 92, 0, 0.12) 0%, rgba(11, 28, 51, 0.95) 50%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 0;
  margin: 0 -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.benefit-band-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
}

.benefit-band-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.benefit-band-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.benefit-band-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--landing-accent);
  border-radius: 50%;
}

/* Who it's for / Who it's not for */
.section--who {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.who-block {
  background: var(--landing-card-bg);
  border: 1px solid var(--landing-card-border);
  border-radius: 16px;
  padding: 2rem;
}

.who-for .section-title--small { color: #fff; }
.who-not .section-title--small { color: rgba(255, 255, 255, 0.9); }

.who-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--landing-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.who-list li {
  margin-bottom: 0.75rem;
}

.who-list--not {
  list-style: disc;
}

/* Proof: testimonials + metrics */
.section--proof {
  padding-top: 4rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.testimonial-card {
  background: var(--landing-card-bg);
  border: 1px solid var(--landing-card-border);
  border-radius: 16px;
  padding: 2rem;
  margin: 0;
  transition: border-color 0.2s ease;
}

.testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-footer {
  font-size: 0.875rem;
  color: var(--landing-text-muted);
  margin: 0;
}

.testimonial-role {
  font-style: normal;
}

.metrics-placeholder {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.metrics-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--landing-text-muted);
}

/* FAQ Accordion (details/summary) */
.section--faq {
  padding-top: 4rem;
}

.faq-accordion {
  max-width: 720px;
  margin: 0 auto;
}

.faq-details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-details:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-summary {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s ease;
}

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

.faq-summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--landing-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

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

.faq-summary:hover {
  color: var(--landing-accent);
}

.faq-summary:focus {
  outline: 2px solid var(--landing-accent);
  outline-offset: 4px;
}

.faq-answer-inner {
  padding: 0 0 1.25rem 0;
  color: var(--landing-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA section */
.section--cta {
  padding-bottom: 5rem;
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--landing-text-muted);
}

/* Footer CTA */
.footer-cta-wrap {
  margin-bottom: 2rem;
}

.footer-cta-wrap .btn {
  display: inline-block;
}

/* Sticky CTA in header */
.landing-cta-sticky {
  white-space: nowrap;
}

/* Accessible focus states */
.landing-page-body .btn:focus-visible,
.landing-page-body .landing-nav-link:focus-visible,
.landing-page-body .faq-summary:focus-visible {
  outline: 2px solid var(--landing-accent);
  outline-offset: 2px;
}

.landing-page-body .btn:focus:not(:focus-visible),
.landing-page-body .landing-nav-link:focus:not(:focus-visible) {
  outline: none;
}

/* --- Use Cases --- */
.use-case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.use-case-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: white;
  font-weight: 500;
}

/* --- Not Box --- */
.not-box {
  background: rgba(11, 28, 51, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.not-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.not-item {
  color: var(--landing-text-muted);
  font-size: 0.95rem;
}

.not-item strong {
  color: white;
  display: block;
  margin-bottom: 0.5rem;
}

/* --- FAQ --- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.faq-answer {
  color: var(--landing-text-muted);
  line-height: 1.6;
}

/* --- Footer --- */
.landing-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--landing-card-border);
  text-align: center;
  color: var(--landing-text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--landing-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-visuals {
    flex-direction: column;
    gap: 2rem;
    margin: 1.5rem auto;
  }

  .hero-flow-card {
    width: 100%;
    max-width: 340px;
    padding: 1rem 1.25rem;
  }

  .hero-icon-illustration svg {
    max-width: 100px;
    max-height: 100px;
  }

  .diagram-section {
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .diagram-flow-wrap {
    padding: 1rem;
  }

  .section--preview {
    padding-top: 3rem;
  }

  .landing-header {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .landing-nav-items {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .landing-nav-link {
    display: none;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .landing-feature-grid {
    gap: 1.5rem;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .step-connector {
    display: none;
  }

  .step-item {
    max-width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-group .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .who-grid {
    grid-template-columns: 1fr;
  }

  .benefit-band {
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section--cta .hero-cta-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .landing-container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .trust-bullets {
    flex-direction: column;
    align-items: center;
  }
}

/* Override btn styles for dark landing page background */
.landing-page-body .btn-secondary {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.landing-page-body .btn-secondary:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Ensure all text/captions are white on landing page */
.landing-page-body h1,
.landing-page-body h2,
.landing-page-body h3,
.landing-page-body h4,
.landing-page-body p,
.landing-page-body span,
.landing-page-body label,
.landing-page-body .section-title,
.landing-page-body .section-subtitle,
.landing-page-body .feature-title,
.landing-page-body .feature-text,
.landing-page-body .step-title,
.landing-page-body .step-desc,
.landing-page-body .faq-question,
.landing-page-body .faq-answer {
  color: #FFFFFF;
}

.landing-page-body .section-subtitle,
.landing-page-body .feature-text,
.landing-page-body .step-desc,
.landing-page-body .faq-answer {
  color: rgba(255, 255, 255, 0.8);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px;
}

.lang-switcher button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switcher button:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.lang-switcher button.active {
  background: var(--landing-accent);
  color: #FFFFFF;
}