/* ============================================================
   DISTILCORE — GLOBAL VARIABLES
   ============================================================ */

:root {
  --bg-main: #0b0f23;
  --bg-card: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.16);

  --text-main: #f4f6ff;
  --text-muted: #c2c8e6;

  --accent: #8bb6ff;
}


/* ============================================================
   RESET
   ============================================================ */

* {
  box-sizing: border-box;
}

/* ============================================================
   BODY / SITE BACKGROUND (RICH, MOCKUP STYLE)
   ============================================================ */

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text-main);

  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(139,182,255,0.28), transparent 55%),
    radial-gradient(1000px 600px at 80% 25%, rgba(176,140,255,0.26), transparent 60%),
    radial-gradient(800px 500px at 50% 80%, rgba(80,90,160,0.35), transparent 65%),
    linear-gradient(180deg, #070a18 0%, #0f1433 50%, #1a1f45 100%);

  background-repeat: repeat;
  background-size: auto;
  min-height: 100vh;
}



/* ============================================================
   NAV
   ============================================================ */

.nav {
  border-bottom: 1px solid var(--border);
  position: relative;
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  z-index: 1001;
}

.logo-mark {
  width: 28px;
  height: 28px;
  /* background: linear-gradient(135deg, #6ea8ff, #9b7cff); */
  border-radius: 6px;
  display: inline-block;
  background-image: url("/assets/DistilCoreLogo.png"); /* adjust path */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links > a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 0;
}

.nav-links > a:hover {
  color: var(--text-main);
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger:hover {
  color: var(--text-main);
}

.arrow-down {
  font-size: 0.8em;
  transition: transform 0.2s;
}

.nav-dropdown:hover .arrow-down {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 200px;
  background: rgba(11, 15, 35, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-main);
}

.btn-primary {
  background: linear-gradient(135deg, #6ea8ff, #9b7cff);
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--accent);
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-main);
  transition: all 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: rgba(11, 15, 35, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 20px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links > a {
    font-size: 1.1rem;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  /* Mobile dropdown styles */
  .nav-dropdown {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-dropdown-trigger {
    font-size: 1.1rem;
    width: 100%;
    padding: 12px 0;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 8px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
  }

  .nav-dropdown.active .nav-dropdown-menu {
    max-height: 400px;
    padding: 8px 0;
  }

  .nav-dropdown.active .arrow-down {
    transform: rotate(180deg);
  }

  .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 20px;
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  text-align: center;
  padding: 120px 20px 80px;
}

.hero h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 20px;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */

.products {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 968px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.card,
.detail-card {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.10),
      rgba(255,255,255,0.03)
    );
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 20px 40px rgba(0,0,0,0.45);
}


.card h3 {
  margin: 0 0 8px;
}

.card h3 span {
  color: var(--accent);
}

.card small {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 12px 0;
}

.card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.card a:hover {
  text-decoration: underline;
}

.product-footer {
  margin-top: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   PRODUCT FLOW — EXACT MOCKUP MATCH
   ============================================================ */

.flow-section {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom: 100px;
}

/* Fix: inner span should NOT look like a pill */
.flow-items span span {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  display: inline !important;
  color: var(--accent);
}

/* top pills */
.flow-items {
  display: flex;
  gap: 18px;
  margin-bottom: 0;
  color: var(--accent);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.flow-items span {
  position: relative;
  padding: 14px 28px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-main);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
}

/* Small arrows BETWEEN pills */
.flow-items span:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.3rem;
  z-index: 1;
}

/* Curved bracket arrow matching mockup */
.flow-arrows {
  width: 100%;
  max-width: 1400px;
  height: 140px;
  color: var(--accent);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(139,182,255,0.5));
}

@media (max-width: 768px) {
  .flow-items span:not(:last-child)::after {
    display: none;
  }
  
  .flow-arrows {
    display: none;
  }
}

/* ============================================================
   PRODUCT DETAIL (STILLTRACE)
   TRANSPARENT — BACKGROUND COMES FROM BODY
   ============================================================ */

.product-detail {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.product-name {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.product-name span {
  color: var(--accent);
}

.lead {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 60px;
  white-space: pre-line;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 968px) {
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.detail-card h4 {
  margin: 0 0 12px;
  color: var(--text-main);
  font-size: 1.15rem;
}

.detail-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Clickable cards with links */
.detail-card-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  padding-bottom: 50px; /* Make room for link */
}

.detail-card-clickable:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 24px 48px rgba(0,0,0,0.5);
  border-color: var(--accent);
}

.card-link {
  position: absolute;
  bottom: 20px;
  left: 24px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.card-link:hover {
  gap: 8px;
  text-decoration: underline;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================================
   MODULE STYLES
   ============================================================ */

/* Module spacing */
.product-detail > div[class^="module-"] {
  margin-bottom: 80px;
}

.product-detail > div[class^="module-"]:last-child {
  margin-bottom: 0;
}

.module-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-main);
}

/* ============================================================
   MODULE: HERO
   ============================================================ */

.module-hero {
  text-align: center;
  padding: 40px 0 60px;
}

.module-hero-headline {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--text-main);
}

.module-hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================================
   MODULE: TWO-COLUMN
   ============================================================ */

.module-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.module-two-column.reverse {
  direction: rtl;
}

.module-two-column.reverse > * {
  direction: ltr;
}

.two-column-image img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

.two-column-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-main);
}

.two-column-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .module-two-column {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ============================================================
   MODULE: STATS
   ============================================================ */

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.stat-card {
  padding: 30px 20px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 20px 40px rgba(0,0,0,0.35);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6ea8ff, #9b7cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.stat-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   MODULE: TIMELINE
   ============================================================ */

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

.timeline-steps {
  position: relative;
  padding-left: 60px;
}

.timeline-steps::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(139,182,255,0.2));
}

.timeline-step {
  position: relative;
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

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

.timeline-number {
  position: absolute;
  left: -60px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6ea8ff, #9b7cff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(139,182,255,0.4);
}

.timeline-content {
  flex: 1;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 10px 30px rgba(0,0,0,0.35);
}

.timeline-content h4 {
  margin: 0 0 12px;
  color: var(--text-main);
  font-size: 1.15rem;
}

.timeline-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .timeline-steps {
    padding-left: 50px;
  }
  
  .timeline-number {
    left: -50px;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

/* ============================================================
   MODULE: CTA
   ============================================================ */

.module-cta {
  background: linear-gradient(
    135deg,
    rgba(110,168,255,0.15),
    rgba(155,124,255,0.15)
  );
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 60px 40px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 20px 40px rgba(0,0,0,0.45);
}

.cta-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-main);
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   MODULE: CONTACT FORM
   ============================================================ */

.module-contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 20px 40px rgba(0,0,0,0.45);
}

.form-field {
  margin-bottom: 24px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(139,182,255,0.1);
}

.form-field select {
  cursor: pointer;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  margin-top: 8px;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(110,168,255,0.4);
}

.form-privacy {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .contact-form {
    padding: 30px 20px;
  }
}

/* ============================================================
   FOOTER (MOCKUP MATCH)
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 54px 20px 28px;
  margin-top: 100px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(160px, 1fr));
  gap: 34px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.footer-logo .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.footer-col h4 {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.footer-col a {
  display: block;
  margin: 8px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border);

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;

  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-copy {
  justify-self: start;
}

.footer-links {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.footer-links a:hover {
  color: var(--text-main);
}

.footer-links .dot {
  opacity: 0.7;
}

.footer-social {
  justify-self: end;
  display: inline-flex;
  gap: 10px;
}

.social-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);

  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}

.social-btn:hover {
  background: rgba(255,255,255,0.06);
}

/* Footer responsive */
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-copy,
  .footer-links,
  .footer-social {
    justify-self: center;
  }
}

/* ============================================================
   ROUTING HELPERS
   ============================================================ */

.hidden {
  display: none;
}
