/* Base reset */
* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
html, body { height: 100%; }
body {
  margin: 0;
  color: #111;
  background: #fff;
}

:root {
  --section-padding: 6vh;
  --max-width: 1000px;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray: #bdbdbd;
  --accent: #7823DC;
  --n-ring-size: clamp(70px, 10vw, 150px);
}

main#app {
  width: 100%;
}

.section {
  min-height: 100svh; /* full viewport incl. mobile UI */
  width: 100%;
  display: flex; /* Change to flex for better centering of single child */
  flex-direction: column; /* Stack wrapper and arrow vertically */
  align-items: center; /* Horizontally center all children */
  justify-content: center; /* Vertically center the wrapper */
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  position: relative; /* For absolute positioning of arrow */
}


.section-content {
  align-self: center;
  justify-self: center;
  max-width: var(--max-width);
  text-align: center;
}

.theme-light { background: var(--white); color: var(--black); }
.theme-dark { background: var(--black); color: var(--white); }

/* Hero specific */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
}

.quote-wrap {
  max-width: 900px;
  position: relative;
  padding: 2rem 3rem;
  text-align: center;
}

.big-quote {
  position: absolute;
  top: 0;
  font-size: clamp(80px, 12vw, 200px);
  line-height: 0.7;
  color: rgba(255,255,255,0.06);
  font-weight: 900;
  pointer-events: none;
}
.big-quote.left { left: -12%; }
.big-quote.right { right: -12%; }

.quote-text p {
  margin: 0.25rem 0;
  font-size: clamp(20px, 3.4vw, 36px);
  line-height: 1.18;
  font-weight: 400;
}

.quote-author {
  margin-top: 1.2rem;
  opacity: 0.85;
  font-size: clamp(12px, 1.6vw, 14px);
}

/* N badge */
.brand-n {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--n-ring-size);
  height: var(--n-ring-size);
  line-height: 1;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.22em;
  font-size: clamp(36px, 6vw, 88px);
  justify-self: center;
  margin: 0;
}

.brand-n img { width: 100%; height: 100%; display: block; }

/* Section title */
.section-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0.05em;
  margin: 0.5rem 0 1.5rem 0;
  text-transform: lowercase;
  justify-self: center;
}

/* Default: no ::after element on section titles */
.section-title::after {
  content: none;
  display: none;
}

.theme-light .section-title { color: #4a4a4a; }
.theme-dark .section-title { color: #e0e0e0; }

/* Headings and text */
h1 {
  margin: 0.1em 0 0.4em 0;
  font-size: clamp(28px, 5.5vw, 56px);
  line-height: 1.05;
}

h2 {
  margin: 0.2em 0 0.6em 0;
  font-size: clamp(18px, 3.5vw, 28px);
  line-height: 1.15;
}

p {
  margin: 0.5em 0 0 0;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.6;
  opacity: 0.9;
}

.logo-word {
  font-weight: 800;
  letter-spacing: 0.24em;
  font-size: clamp(18px, 3.4vw, 34px);
}

/* Subtle subtitle tones per theme */
.theme-light .logo-word { color: #6a6a6a; }
.theme-dark .logo-word { color: #d0d0d0; }

/* Scroll arrow */
.scroll-next {
  position: absolute; /* Position absolutely within section */
  bottom: 24px; /* Distance from bottom */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Perfect center alignment */
  border: none;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  padding: 8px;
  opacity: 0.85;
  transition: transform 200ms ease, opacity 200ms ease;
  z-index: 40; /* ensure it's above hero quote marks */
}
.scroll-next.hidden { opacity: 0; transform: translateX(-50%) translateY(8px); visibility: hidden; transition: opacity 500ms ease, transform 500ms ease; }
.scroll-next.visible { opacity: 0.9; transform: translateX(-50%) translateY(0); visibility: visible; transition: opacity 500ms ease, transform 500ms ease; }
.scroll-next:hover { opacity: 1; transform: translateX(-50%) translateY(2px); }
.scroll-next:active { transform: translateX(-50%) translateY(4px); }

.arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin: 8px auto;
  pointer-events: none; /* let clicks pass through to the button */
}

/* Legal section */
.section.legal .section-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.legal-links {
  display: flex;
  /* Show links side-by-side on wider screens */
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.legal-link {
  font-size: clamp(12px, 1.4vw, 16px);
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.legal-link:hover {
  opacity: 1;
  border-bottom: 2px solid var(--accent);
}

/* Contact form */
.contact-subtitle {
  font-weight: 400;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  margin: 1.5rem 0 3rem 0;
  opacity: 0.9;
}

.contact-form {
  max-width: 420px;
  margin: 0 auto 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input {
  padding: 0.75rem 1rem;
  font-size: clamp(13px, 1.1vw, 15px);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: var(--white);
  transition: all 0.3s ease;
  text-align: center;
  backdrop-filter: blur(10px);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(120, 35, 220, 0.15);
}

.form-submit {
  padding: 0.85rem 2rem;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 0.75rem;
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(120, 35, 220, 0.3), transparent);
  transition: left 0.5s ease;
}

.form-submit:hover::before {
  left: 100%;
}

.form-submit:hover {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(120, 35, 220, 0.5);
  transform: translateY(-2px);
}

.form-submit:active {
  transform: translateY(0);
}

.contact-email-text {
  margin-top: 3rem;
  font-size: clamp(14px, 1.2vw, 16px);
  opacity: 0.7;
}

.contact-email-link {
  display: inline;
  font-size: clamp(14px, 1.2vw, 16px);
  color: inherit; /* use surrounding text color instead of accent (purple) */
  text-decoration: none;
  /* border should match the current text color for consistency */
  border-bottom: 1px solid currentColor;
  transition: opacity 0.3s ease;
}

.contact-email-link:hover {
  opacity: 0.8;
}

/* Accessibility helpers */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; /* prevent line breaks */
}

/* Vision section */
.section.vision .brand-n {
  width: clamp(150px, 22vw, 300px);
  height: clamp(150px, 22vw, 300px);
  margin-top: clamp(40px, 12vh, 120px);
}

.section.vision h2 {
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.9;
  pointer-events: none; /* Prevent h2 from blocking button clicks */
}

/* Legal page: keep compact (20% of viewport height) and center content vertically */
.section.legal {
  min-height: 20vh;
  /* ensure it doesn't inherit the large section min-height */
  display: grid;
  align-items: center;
}

/* Audience toggle buttons */
.audience-toggle {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 3rem 0 2rem 0;
  flex-wrap: wrap;
}

.toggle-btn {
  padding: 0.75rem 1.5rem;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 500;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.toggle-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.toggle-btn.active {
  border-color: var(--accent);
  color: var(--white);
  background: var(--accent);
}

.toggle-btn.active:hover {
  background: var(--accent);
  opacity: 0.9;
}

/* Product section */
.section.product .section-content {
  max-width: 900px;
  text-align: center;
}

.section.product .intro-text {
  font-size: clamp(15px, 1.5vw, 18px);
  margin-bottom: 1.5em;
  line-height: 1.7;
}

.section.product .bullet-list,
.section.product .stats-list {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
  text-align: center;
}

.section.product .bullet-list li,
.section.product .stats-list li {
  margin-bottom: 0.8em;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
}

.section.product .bullet-list li::before {
  content: '✓ ';
  font-weight: 700;
  color: var(--accent);
}

.section.product .stats-list li::before {
  content: '✓ ';
  font-weight: 700;
  color: var(--accent);
}

.section.product h3.stats-title {
  font-size: clamp(15px, 1.5vw, 18px);
  margin: 2em 0 1em 0;
  font-weight: 600;
}

.section.product .closing-text {
  font-size: clamp(15px, 1.5vw, 18px);
  margin-top: 2em;
  font-weight: 500;
}

/* Features section */
.section.features {
  padding: 80px clamp(16px, 4vw, 48px);
}

.section.features .section-content {
  max-width: 1440px;
  width: 100%;
}

.section.features h1 {
  text-align: center;
  margin-bottom: 2em;
}

/* Spacing for features section title */
.section.features .section-title {
  margin-bottom: 60px;
}

.features-container {
  display: grid;
  /* Left column (text) smaller, right column (image) larger - like Datadog */
  grid-template-columns: 35fr 65fr;
  gap: 60px;
  align-items: start;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

/* Important: allow flex/grid children to shrink below their content's intrinsic
   minimum. This prevents the left column from expanding when a dropdown item
   is opened. */
.features-list,
.feature-item,
.feature-content,
.feature-title,
.feature-header {
  min-width: 0;
}

.feature-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0;
  width: 100%;
}

.feature-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  /* center vertically so title and arrow line up in a compact row */
  align-items: center;
  background: transparent;
  border: none;
  color: currentColor;
  cursor: pointer;
  /* compact padding like Datadog */
  padding: 1rem 0;
  text-align: left;
  transition: opacity 0.2s ease;
  /* tighten gap between title and arrow */
  gap: 0.5rem;
}

.feature-header:hover {
  opacity: 0.8;
}

.feature-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  margin: 0;
  flex: 1;
  line-height: 1.2;
  white-space: normal;
  word-wrap: break-word;
}

.feature-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  opacity: 0.6;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.feature-item.active .feature-arrow {
  transform: rotate(-135deg);
}

.feature-content {
  padding: 0 0 1rem 0;
  animation: slideDown 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-subtitle {
  font-size: clamp(14px, 1.4vw, 16px);
  margin-bottom: 0.8em;
  opacity: 0.85;
  font-style: normal;
  max-width: 100%;
  word-wrap: break-word;
  line-height: 1.5;
  text-align: left;
}

.feature-description {
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.6;
  opacity: 0.85;
  max-width: 100%;
  word-wrap: break-word;
  text-align: left;
  font-style: normal;
  margin: 0;
}

/* Hide inline images on desktop (shown only on mobile) */
.feature-inline-image {
  display: none;
}

.feature-preview {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 10vh;
  overflow: hidden;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.preview-placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: clamp(14px, 1.5vw, 18px);
  text-align: center;
  padding: 2rem;
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.lightbox-overlay.active {
  opacity: 1;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem clamp(16px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-banner-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-banner-text {
  flex: 1;
  font-size: clamp(12px, 1.1vw, 13px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.cookie-banner-text a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.cookie-banner-text a:hover {
  color: rgba(255, 255, 255, 1);
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.cookie-banner-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-banner-btn {
  padding: 0.4rem 1rem;
  font-size: clamp(11px, 1vw, 12px);
  font-weight: 400;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.cookie-banner-btn.reject:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.cookie-banner-btn.accept {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.95);
}

.cookie-banner-btn.accept:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .cookie-banner-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .cookie-banner-content {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
}

@media (max-width: 767px) {
  .cookie-banner-content {
    padding: 0.5rem clamp(12px, 4vw, 16px);
  }
  
  .cookie-banner-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  
  .cookie-banner-text {
    font-size: 11px;
    line-height: 1.4;
  }
  
  .cookie-banner-buttons {
    gap: 0.35rem;
    flex-shrink: 0;
  }
  
  .cookie-banner-btn {
    padding: 0.35rem 0.75rem;
    font-size: 10px;
  }
}

/* Tablet breakpoint */
@media (max-width: 1024px) and (min-width: 768px) {
  .features-container {
    grid-template-columns: 45fr 55fr;
    gap: 40px;
  }
  
  .section.features {
    padding: 60px clamp(16px, 4vw, 32px);
  }
}

/* Mobile breakpoint */
@media (max-width: 767px) {
  .section.features {
    padding: 24px 12px;
  }
  
  .section.features .section-title {
    margin-bottom: 40px;
  }
  
  .section.features .section-title::after {
    bottom: -20px;
  }
  
  .features-container {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  /* Hide the preview pane on mobile */
  .feature-preview {
    display: none;
  }
  
  .feature-item {
    padding: 20px 0;
  }
  
  /* Show inline image within feature items on mobile */
  .feature-inline-image {
    display: block;
    width: 100%;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .feature-title {
    font-size: clamp(18px, 4vw, 20px);
  }
  
  .feature-subtitle {
    font-size: clamp(14px, 3vw, 16px);
  }
  
  .section.product .section-content {
    text-align: center;
  }

  /* Stack legal links on small screens */
  .legal-links {
    flex-direction: column;
    gap: 1rem;
  }
}

.center-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Restore full width for proper centering */
  max-width: var(--max-width);
  gap: 1rem;
  text-align: center; /* Ensure text is centered */
}

/* For vision section specifically */
.section.vision .center-wrapper {
  padding-top: 10vh; /* Add breathing room if needed */
}

/* Reduce logo margin for better balance */
.section.vision .brand-n {
  margin-top: 0; /* Remove explicit top margin for true centering */
  margin-bottom: 1rem; /* Small gap below logo */
}


