/* Ensemble Digital Labs - Single Page Static Site */

:root {
  /* Logo-inspired gradient palette: blue → green → yellow → orange → purple */
  --color-blue: #5eb3e6;
  --color-green: #6bc072;
  --color-yellow: #f4d03f;
  --color-orange: #e67e22;
  --color-purple: #9b59b6;
  --color-magenta: #e056c7;
  --color-black: #1a1a1a;
  --color-dark-bg: #0f172a;
  --color-text: #333;
  --color-text-muted: #555;
  --color-bg: #fff;
  --color-bg-alt: #fafbfc;
  /* Primary accent - blue from logo */
  --color-accent-blue: #5eb3e6;
  --color-accent-green: #6bc072;
  --color-accent-orange: #e67e22;
  --color-accent-purple: #9b59b6;
  --color-accent: #5eb3e6;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-width: 1200px;
  --section-padding: 4rem 1.5rem;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Scroll animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.anim-element {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-element.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-element.anim-delay-1 { transition-delay: 0.1s; }
.anim-element.anim-delay-2 { transition-delay: 0.2s; }
.anim-element.anim-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .anim-element {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 10rem;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-bg);
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  background: var(--color-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 100px;
  width: auto;
}

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

.nav a {
  color: var(--color-text);
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(94, 179, 230, 0.2);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--color-blue);
  background: rgba(94, 179, 230, 0.08);
}

.nav a:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.nav a:active {
  background: rgba(94, 179, 230, 0.12);
}

/* Hamburger toggle - hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(94, 179, 230, 0.08);
}

.nav-toggle:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 4rem 1.5rem 3.5rem;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("assets/hero-ai-visual.png") center center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Sections */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-black);
  text-align: center;
  margin: 0 0 1.5rem;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* About */
.about {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}

.about-content .section-title {
  text-align: left;
}

.about-content p {
  color: var(--color-text);
  margin: 0 0 1.25rem;
}

.about-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-black);
  margin: 1.5rem 0 0.5rem;
}

.about-image-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.about-image-trigger:hover img {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  opacity: 0.95;
}

.about-image-trigger:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 4px;
}

.about-visual img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s, opacity 0.2s;
}

/* Brochure modal */
.brochure-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.brochure-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.brochure-modal[hidden] {
  display: none !important;
}

.brochure-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.brochure-modal-content {
  position: relative;
  width: 95vw;
  height: 90vh;
  overflow: auto;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.brochure-modal-content img {
  min-width: 1500px;
  width: 1500px;
  max-width: none;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.brochure-modal-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1001;
  padding: 0.75rem 1.5rem;
  border: 2px solid #fff;
  background: #000;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.brochure-modal-close:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.brochure-modal-close:focus {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .brochure-modal {
    padding: 1rem;
  }

  .brochure-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }

  .brochure-modal-content {
    width: 100%;
    height: 80vh;
    padding-top: 3rem;
  }

  .brochure-modal-content img {
    min-width: 100%;
    width: 100%;
    max-width: 600px;
  }
}

@media (max-width: 480px) {
  .brochure-modal-content img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-visual {
    order: -1;
  }
}

/* Pain Points & Solutions */
.pain-solutions {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pain-card:nth-child(1) { border-left-color: var(--color-blue); }
.pain-card:nth-child(2) { border-left-color: var(--color-green); }
.pain-card:nth-child(3) { border-left-color: var(--color-yellow); }
.pain-card:nth-child(4) { border-left-color: var(--color-orange); }
.pain-card:nth-child(5) { border-left-color: var(--color-purple); }

.pain-card {
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: 8px;
  border-left: 4px solid var(--color-blue);
}

.pain-point {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

.pain-card:nth-child(1) .solution { color: var(--color-blue); }
.pain-card:nth-child(2) .solution { color: var(--color-green); }
.pain-card:nth-child(3) .solution { color: #c9a227; }
.pain-card:nth-child(4) .solution { color: var(--color-orange); }
.pain-card:nth-child(5) .solution { color: var(--color-purple); }

.solution {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-blue);
  margin: 0;
}

/* Pricing Tiers */
.pricing {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, #f0f7fc 50%, var(--color-bg-alt) 100%);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: stretch;
}

.tier {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
}

.tier-growth {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, var(--color-blue), var(--color-green), var(--color-orange), var(--color-purple)) border-box;
  box-shadow: 0 4px 20px rgba(94, 179, 230, 0.2);
}

.tier-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 0.5rem;
}

.tier-growth .tier-name {
  background: linear-gradient(90deg, var(--color-blue), var(--color-green), var(--color-orange), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tier-badge {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.tier-features li {
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--color-text);
}

.tier-essentials .tier-features li::before { color: var(--color-blue); }
.tier-growth .tier-features li::before { color: var(--color-green); }
.tier-dominate .tier-features li::before { color: var(--color-purple); }

.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: bold;
}

/* Journey - Timeline */
.journey {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.journey .section-intro {
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-blue), var(--color-green), var(--color-orange), var(--color-purple));
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 2.5rem;
  margin-left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 2.5rem;
  margin-right: 0;
}

.timeline-node {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--node-color, var(--color-blue));
  border: 4px solid var(--color-bg-alt);
  box-shadow: 0 0 0 2px var(--node-color);
  position: relative;
  z-index: 2;
  margin-top: 0.25rem;
}

.timeline-content {
  flex: 1;
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.timeline-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--color-black);
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 0;
  }

  .timeline-line {
    left: 11px;
    top: 12px;
  }

  .timeline-item {
    flex-direction: row !important;
  }

  .timeline-item .timeline-content {
    margin-left: 1.5rem !important;
    margin-right: 0 !important;
    text-align: left !important;
  }

  .timeline-node {
    width: 22px;
    height: 22px;
    margin-top: 0.2rem;
  }
}

/* Value & CTA */
.value-cta {
  padding: var(--section-padding);
  text-align: center;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-green) 25%, var(--color-orange) 50%, var(--color-purple) 100%);
  color: #fff;
}

.value-cta .section-title {
  color: #fff;
  margin-bottom: 2rem;
}

.cta-intro {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  opacity: 0.95;
}

.value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
}

.value-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.value-item strong {
  font-size: 1rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #fff;
  color: var(--color-purple);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Testimonials */
.testimonials {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.testimonial:nth-child(1) { border-left-color: var(--color-blue); }
.testimonial:nth-child(2) { border-left-color: var(--color-green); }
.testimonial:nth-child(3) { border-left-color: var(--color-purple); }

.testimonial {
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: 12px;
  margin: 0;
  border-left: 4px solid var(--color-purple);
}

.testimonial p {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--color-text);
}

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

/* Footer */
.footer {
  padding: 3rem 1.5rem 2rem;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr 1.5fr 1fr;
    align-items: start;
  }
}

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

@media (min-width: 768px) {
  .footer-brand {
    text-align: left;
  }
}

.footer-logo {
  height: 140px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.footer-info {
  margin: 0;
}

.footer-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.footer-info p,
.footer-info a {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
}

.footer-info a:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

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

@media (min-width: 768px) {
  .footer-social {
    text-align: right;
  }
}

.footer-social .footer-label {
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.social-icons a:hover {
  color: #fff;
}

.social-icons a:nth-child(1):hover { background: var(--color-blue); }
.social-icons a:nth-child(2):hover { background: var(--color-green); }
.social-icons a:nth-child(3):hover { background: var(--color-orange); }
.social-icons a:nth-child(4):hover { background: var(--color-purple); }

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Responsive - Tablet & Mobile */
@media (max-width: 768px) {
  .header {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 0.5rem;
    gap: 0;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.875rem 0;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .hero {
    padding: 2.5rem 1rem 2rem;
    min-height: 35vh;
  }

  .hero-headline {
    font-size: 1.5rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

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

  .about {
    padding: 2.5rem 1rem;
  }

  .about-content .section-title {
    text-align: center;
  }

  .pain-solutions,
  .pricing,
  .testimonials,
  .journey {
    padding: 2.5rem 1rem;
  }

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

  .pain-card {
    padding: 1.25rem;
  }

  .tiers {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .tier {
    padding: 1.5rem;
  }

  .value-cta {
    padding: 2.5rem 1rem;
  }

  .value-cta .section-title {
    margin-bottom: 1.25rem;
  }

  .cta-intro {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }

  .value-props {
    grid-template-columns: 1fr;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .value-item {
    padding: 1rem;
  }

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

  .testimonial {
    padding: 1.25rem;
  }

  .journey .section-intro {
    margin-bottom: 2rem;
  }

  .footer {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-main {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .logo {
    height: 72px;
  }

  .footer-logo {
    height: 90px;
  }
}

/* Responsive - Small phones */
@media (max-width: 480px) {
  .header {
    padding: 0.5rem 0.75rem;
  }

  .hero {
    padding: 2rem 0.75rem 1.5rem;
    min-height: 30vh;
  }

  .hero-headline {
    font-size: 1.35rem;
  }

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

  .about,
  .pain-solutions,
  .pricing,
  .journey,
  .value-cta,
  .testimonials {
    padding: 2rem 0.75rem;
  }

  .pain-card,
  .tier,
  .testimonial {
    padding: 1rem;
  }

  .timeline-content h3 {
    font-size: 1rem;
  }

  .timeline-content p {
    font-size: 0.9rem;
  }

  .footer-contact {
    gap: 0.75rem;
  }

  .logo {
    height: 64px;
  }

  .footer-logo {
    height: 80px;
  }
}
