/* ============================================
   Distillemr Platform — Static Site Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html, body { max-width: 100vw; overflow-x: hidden; }

body {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  color: rgb(25, 30, 40);
  background: #f7f9fc;
  position: relative;
  overflow-x: hidden;
}

/* Unified page background — continuous gradient canvas with floating accents */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 900px 600px at 10% 0%, rgba(37, 158, 213, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 800px 700px at 90% 40%, rgba(140, 100, 240, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 1000px 800px at 50% 100%, rgba(37, 158, 213, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
  pointer-events: none;
}

a { color: rgb(37, 158, 213); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: rgb(27, 128, 180); }

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: none;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-text {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 26px;
  color: rgb(25, 25, 25);
  letter-spacing: 1px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  padding: 0;
  align-items: center;
}

.main-nav a {
  color: rgb(40, 40, 40);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a:hover { color: rgb(37, 158, 213); }

.main-nav .nav-cta {
  background: rgb(25, 25, 25);
  color: #fff;
  padding: 9px 18px;
  border-radius: 50px;
  transition: background 0.2s ease;
}
.main-nav .nav-cta:hover { background: rgb(37, 158, 213); color: #fff; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgb(24, 24, 24);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 120px 0 30px;
  background: transparent;
  text-align: center;
  color: rgb(25, 30, 40);
  overflow: visible;
  isolation: isolate;
}

/* Floating blur orbs that match the page canvas */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  z-index: -1;
  animation: float 14s ease-in-out infinite;
}
.hero::before {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(37, 158, 213, 0.5) 0%, rgba(37, 158, 213, 0) 70%);
  top: -180px;
  left: -140px;
}
.hero::after {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(140, 100, 240, 0.4) 0%, rgba(140, 100, 240, 0) 70%);
  top: 20px;
  right: -160px;
  animation-delay: -7s;
  animation-duration: 18s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 25px) scale(0.96); }
}

.hero-overlay { display: none; }

/* Subtle grid overlay for texture */
.hero .container::before {
  content: "";
  position: absolute;
  inset: -40px 0;
  background-image:
    linear-gradient(rgba(37, 158, 213, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 158, 213, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero .container { position: relative; }

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  color: rgb(20, 28, 42);
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 20px;
  color: rgb(70, 85, 110);
  max-width: 720px;
  margin: 0 auto 36px;
  font-weight: 300;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 16px 36px;
  font-size: 16px;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: rgb(37, 158, 213);
  color: #fff;
  border: 1px solid rgb(37, 158, 213);
}
.btn-primary:hover {
  background: rgb(27, 128, 180);
  border-color: rgb(27, 128, 180);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================
   Sections
   ============================================ */
.content-section { padding: 55px 0; background: transparent; position: relative; }

.content-section h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  color: rgb(25, 25, 25);
  margin-bottom: 24px;
  text-align: center;
}

/* Three-column cards */
.three-col { padding-top: 20px; padding-bottom: 40px; }

.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.three-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 32px;
  box-shadow:
    0 1px 3px rgba(15, 40, 70, 0.04),
    0 20px 50px -20px rgba(15, 40, 70, 0.08);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.three-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 3px rgba(15, 40, 70, 0.04),
    0 30px 60px -20px rgba(15, 40, 70, 0.15);
}
.three-card h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
  color: rgb(37, 158, 213);
}
.three-card p {
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
}

/* Testimonial — glass card floating on canvas */
.testimonial-section {
  padding: 50px 0;
  background: transparent;
}
.testimonial-section blockquote {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 56px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow:
    0 1px 3px rgba(15, 40, 70, 0.04),
    0 30px 80px -30px rgba(15, 40, 70, 0.15);
  position: relative;
}
.testimonial-section blockquote::before,
.testimonial-section blockquote::after {
  position: absolute;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 120px;
  line-height: 1;
  color: rgba(37, 158, 213, 0.18);
}
.testimonial-section blockquote::before {
  content: "\201C";
  top: -10px;
  left: 32px;
}
.testimonial-section blockquote::after {
  content: "\201D";
  bottom: -70px;
  right: 32px;
}
.testimonial-section blockquote p {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 26px;
  line-height: 1.45;
  margin-bottom: 20px;
  color: rgb(25, 30, 40);
  position: relative;
}
.testimonial-section cite {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgb(37, 158, 213);
}

/* Feature rows (alternating, image-forward) */
.feature-section { padding: 70px 0; }
.feature-section .container { max-width: 1280px; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.9fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 90px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row-reverse { grid-template-columns: 1.9fr 1fr; }
.feature-row-reverse .feature-text { order: 2; }
.feature-row-reverse .feature-image { order: 1; }

.feature-text h2 {
  text-align: left;
  font-size: 34px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.feature-text p {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
}
.feature-image {
  width: 100%;
}
.feature-image {
  position: relative;
}
.feature-image::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(37, 158, 213, 0.15) 0%, transparent 70%);
  z-index: -1;
  filter: blur(20px);
}
.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgba(15, 40, 70, 0.06),
    0 30px 80px -20px rgba(15, 40, 70, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #fff;
}

/* Content list */
.content-list {
  list-style: none;
  padding-left: 0;
  max-width: 820px;
  margin: 0 auto;
}
.content-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-weight: 300;
}
.content-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: rgb(37, 158, 213);
  font-size: 22px;
  line-height: 1.4;
}
.content-list strong { font-weight: 600; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.team-member {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow:
    0 1px 3px rgba(15, 40, 70, 0.04),
    0 20px 50px -20px rgba(15, 40, 70, 0.08);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.team-member:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 3px rgba(15, 40, 70, 0.04),
    0 30px 60px -20px rgba(15, 40, 70, 0.15);
}
.team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 22px;
  border: 4px solid rgba(37, 158, 213, 0.18);
  box-shadow: 0 8px 28px rgba(15, 40, 70, 0.1);
}
.team-member h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 4px;
}
.team-role {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgb(37, 158, 213);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.team-member p:last-child {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
}

/* FAQ / Accordion */
.accordion { max-width: 820px; margin: 10px auto 0; }

.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 3px rgba(15, 40, 70, 0.04);
  transition: box-shadow 0.25s ease;
}
.accordion-item:hover {
  box-shadow: 0 4px 16px rgba(15, 40, 70, 0.06);
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: none;
  border: none;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: rgb(25, 25, 25);
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: background 0.2s ease;
}
.accordion-toggle:hover { background: rgba(0, 0, 0, 0.02); }

.accordion-icon { flex-shrink: 0; transition: transform 0.3s ease; }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-item.active .accordion-content { max-height: 400px; }

.accordion-content p {
  padding: 8px 20px 20px;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgb(60, 60, 60);
}

/* CTA Section */
.cta-section {
  padding: 20px 0 100px;
  background: transparent;
  text-align: center;
  position: relative;
}
.cta-section h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 18px;
  font-weight: 300;
  color: rgb(55, 55, 55);
  margin-bottom: 28px;
}

/* Footer */
.site-footer {
  padding: 28px 0;
  text-align: center;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 14px;
  color: rgb(90, 100, 115);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(37, 158, 213, 0.08);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .three-grid { grid-template-columns: 1fr; }
  .feature-row, .feature-row-reverse { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .feature-row-reverse .feature-text { order: 2; }
  .feature-row-reverse .feature-image { order: 1; }
  .feature-row .feature-image { order: 1; }
  .feature-row .feature-text { order: 2; }
  .team-grid { grid-template-columns: 1fr; }
  .team-photo { width: 160px; height: 160px; }
}

@media (max-width: 768px) {
  .hero { padding: 90px 0 70px; }
  .hero h1 { font-size: 40px; }
  .hero-subtitle { font-size: 17px; }

  .content-section { padding: 50px 0; }
  .content-section h2 { font-size: 30px; }
  .cta-section h2 { font-size: 32px; }

  .testimonial-section blockquote p { font-size: 20px; }

  body { font-size: 17px; }

  .mobile-menu-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    align-items: stretch;
  }
  .main-nav li { border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
  .main-nav a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
  }
  .main-nav .nav-cta {
    border-radius: 0;
    background: transparent;
    color: rgb(37, 158, 213);
  }
  .main-nav .nav-cta:hover { background: rgba(37, 158, 213, 0.08); }

  .btn { padding: 14px 28px; font-size: 15px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .header-inner { padding: 0 18px; }
  .hero h1 { font-size: 32px; }
  .content-section h2 { font-size: 26px; }
}
