/* ==========================================================================
   amber — Enterprise Search Landing Page
   ==========================================================================
   Contents
   1. Design tokens (CSS custom properties)
   2. Base / reset
   3. Layout helpers (container, section)
   4. Reusable components (buttons, badges, icons)
   5. Header
   6. Hero + browser mockup demo
   7. How it works
   8. Connectors grid
   9. Benefits ("Why teams choose amber")
   10. References marquee
   11. FAQ accordion
   12. Final CTA
   13. Footer
   14. Scroll-reveal animation
   15. Responsive breakpoints
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --color-bg:            #FAF8F5;   /* warm off-white page background   */
  --color-navy:          #003A4F;   /* headings, dark sections          */
  --color-orange:        #F57D14;   /* primary CTA                      */
  --color-orange-dark:   #DE6E0D;   /* CTA hover                        */
  --color-orange-soft:   rgba(245, 125, 20, 0.10); /* badge / icon bg   */
  --color-text:          #334155;   /* body text                        */
  --color-text-muted:    #64748B;   /* secondary text                   */
  --color-border:        rgba(0, 58, 79, 0.10);
  --color-white:         #FFFFFF;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & elevation */
  --radius-sm:   0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.25rem;
  --radius-full: 9999px;
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:   0 4px 12px rgba(0, 58, 79, 0.08);
  --shadow-xl:   0 20px 50px -12px rgba(0, 58, 79, 0.25);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}


/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-narrow {
  max-width: 48rem;
}

.section {
  padding-block: 4rem;
}

.section-white {
  background-color: var(--color-white);
}

.section-bordered {
  border-bottom: 1px solid var(--color-border);
}

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  margin-top: 1rem;
  font-size: 1.06rem;
  color: var(--color-text-muted);
}

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange);
}

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


/* --------------------------------------------------------------------------
   4. Reusable components
   -------------------------------------------------------------------------- */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-orange-dark);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-navy);
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-primary {
  background-color: var(--color-orange-soft);
  color: var(--color-orange-dark);
}

.badge-outline {
  border: 1px solid rgba(0, 58, 79, 0.2);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.375rem 1.25rem;
  margin-bottom: 1.25rem;
}


/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(250, 248, 245, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.header-logo {
  height: 2rem;
  width: auto;
}


/* --------------------------------------------------------------------------
   6. Hero + browser mockup demo
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 5rem;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    180deg,
    rgba(245, 125, 20, 0.10) 0%,
    rgba(245, 125, 20, 0.04) 35%,
    transparent 70%
  );
}

.hero-blob {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-blob-left {
  top: -6rem;
  left: -6rem;
  background-color: rgba(245, 125, 20, 0.20);
}

.hero-blob-right {
  bottom: -8rem;
  right: -6rem;
  background-color: rgba(0, 58, 79, 0.10);
}

.hero-content {
  position: relative;
  max-width: 48rem;
  text-align: center;
  padding-top: 4rem;
}

.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-navy);
}

.hero-subtitle {
  margin: 1.25rem auto 0;
  max-width: 40rem;
  font-size: clamp(1.06rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: var(--color-text-muted);
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* Browser mockup frame */
.browser-mockup {
  margin: 3.5rem auto 0;
  max-width: 64rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  background-color: var(--color-white);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-navy);
  padding: 0.75rem 1rem;
}

.browser-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
}

.browser-address {
  margin-left: 1rem;
  height: 1.5rem;
  flex: 1;
  max-width: 24rem;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.10);
}

/* Simulated product demo inside the mockup */
.browser-body {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  min-height: 24rem;
  background:
    radial-gradient(ellipse at top left, rgba(245, 125, 20, 0.05), transparent 50%),
    var(--color-bg);
}

.demo-header {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.demo-logo {
  height: 2.25rem;
  width: auto;
}

.demo-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 36rem;
  margin: 0 auto;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.875rem 1.5rem;
  box-shadow: var(--shadow-md);
  font-size: 1rem;
  color: var(--color-navy);
  min-height: 3.25rem;
}

.demo-search-icon {
  color: var(--color-orange);
}

.demo-caret {
  width: 2px;
  height: 1.25rem;
  background-color: var(--color-orange);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.demo-answer {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.demo-answer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-answer-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.demo-answer-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: rgba(34, 197, 94, 0.12);
  color: #16A34A;
}

.demo-answer-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.demo-answer-text {
  font-size: 0.975rem;
  color: var(--color-text);
}

.demo-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.demo-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-navy);
}

.demo-source-chip img {
  width: 0.9rem;
  height: 0.9rem;
  object-fit: contain;
}


/* --------------------------------------------------------------------------
   7. How it works
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

.step-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-orange-soft);
  color: var(--color-orange);
  font-size: 1.1rem;
  font-weight: 700;
}

.step-title {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-navy);
}

.step-text {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}


/* --------------------------------------------------------------------------
   8. Connectors grid
   -------------------------------------------------------------------------- */
.connectors-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

.connector-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo);
}

.connector-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.connector-tile img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.connector-tile span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-navy);
  text-align: center;
}


/* --------------------------------------------------------------------------
   9. Benefits
   -------------------------------------------------------------------------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 64rem;
  margin: 3rem auto 0;
}

.benefit-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background-color: var(--color-orange-soft);
  color: var(--color-orange-dark);
}

.benefit-title {
  margin-top: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-navy);
}


/* --------------------------------------------------------------------------
   10. References marquee
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 55s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 5rem;
  margin-inline: 0.75rem;
  padding-inline: 2rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.logo-card img {
  height: 2.5rem;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}


/* --------------------------------------------------------------------------
   11. FAQ accordion
   -------------------------------------------------------------------------- */
.faq-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-navy);
}

.faq-chevron {
  color: var(--color-text-muted);
  transition: transform 0.3s var(--ease-out-expo);
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out-expo);
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}


/* --------------------------------------------------------------------------
   12. Final CTA
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative;
  overflow: hidden;
  padding-block: 5rem;
  background-color: var(--color-navy);
}

.final-cta-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(#FFFFFF 1px, transparent 1px);
  background-size: 22px 22px;
}

.final-cta-blob {
  position: absolute;
  top: -6rem;
  right: 0;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background-color: rgba(245, 125, 20, 0.20);
  filter: blur(80px);
  pointer-events: none;
}

.final-cta-content {
  position: relative;
}

.final-cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.final-cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}


/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--color-navy);
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  align-items: start;
  padding-block: 4rem;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-address {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-social span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-social a {
  color: var(--color-white);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--color-orange);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.footer-watermark {
  font-size: clamp(3.75rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.1);
  user-select: none;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}


/* --------------------------------------------------------------------------
   14. Scroll-reveal animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease-out-expo) var(--reveal-delay, 0s),
    transform 0.7s var(--ease-out-expo) var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track {
    animation: none;
  }
  .demo-caret {
    animation: none;
  }
}


/* --------------------------------------------------------------------------
   15. Responsive breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 64rem) {
  .connectors-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 48rem) {
  .section {
    padding-block: 3rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }
  .connectors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .footer-logo {
    margin-inline: auto;
  }
  .footer-nav {
    align-items: center;
  }
  .footer-bottom-inner {
    flex-direction: column;
  }
}

@media (max-width: 30rem) {
  .connectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefits-grid {
    grid-template-columns: 1fr;
    max-width: 20rem;
  }
}
