/* CloudCorevix - Editorial Engineering & Autonomous AI Web Projects Aesthetic */
/* Exact design language, hairline precision & typography inspired by SendLint */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #0A0A0B;
  --surface: #131316;
  --raised: #1A1A1E;
  --border: #26262A;
  --border-light: rgba(255, 255, 255, 0.08);
  --accent-mint: #3DD68C;
  --accent-mint-hover: #52e59d;
  --accent-mint-dim: rgba(61, 214, 140, 0.12);
  --accent-amber: #E8A33D;
  --accent-red: #EE6266;
  --accent-blue: #60A5FA;
  --accent-purple: #A78BFA;
  --text-main: #F5F5F3;
  --text-muted: #B8B8B5;
  --text-dim: #8A8A88;
}

* {
  box-sizing: border-box;
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code, pre, .font-mono, [data-mono] {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
  scroll-behavior: smooth;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #0A0A0B;
}
::-webkit-scrollbar-thumb {
  background: #26262A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3A3A40;
}

/* Master Layout Container */
.ed-container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Section Rhythm Paddings */
.ed-pad-hero {
  padding-top: 56px;
  padding-bottom: 56px;
}
.ed-pad-work {
  padding-top: 64px;
  padding-bottom: 64px;
}
.ed-pad-features {
  padding-top: 56px;
  padding-bottom: 24px;
}
.ed-pad-pricing {
  padding-top: 56px;
  padding-bottom: 56px;
}
.ed-pad-faq {
  padding-top: 56px;
  padding-bottom: 64px;
}
.ed-pad-cta {
  padding-top: 84px;
  padding-bottom: 96px;
}

/* Asymmetric 7/5 & 5/7 Feature Rows */
.ed-frow {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  padding: 52px 0;
  border-top: 1px solid var(--border);
}
.ed-frow--flip {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.ed-frow--flip .ed-frow-text {
  order: 2;
}
.ed-frow--flip .ed-frow-frag {
  order: 1;
}

.ed-frow--widefrag {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.ed-frow--flip.ed-frow--widefrag {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

/* Indented accent line pattern */
.ed-indent {
  padding-left: 80px;
}

/* Primary Button with Mint Glow */
.ed-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background: var(--accent-mint);
  color: #0A0A0B;
  border: 1px solid var(--accent-mint);
  border-radius: 6px;
  padding: 0 24px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 150ms ease-out;
}
.ed-btn-primary:hover {
  background: var(--accent-mint-hover);
  box-shadow: 0 0 24px rgba(61, 214, 140, 0.45);
  transform: translateY(-1px);
}

/* Arrow text link */
.ed-arrow-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ed-arrow-link .ed-arrow {
  display: inline-block;
  transition: transform 150ms ease-out;
}
.ed-arrow-link:hover .ed-arrow {
  transform: translateX(4px);
}

/* Secondary Button */
.ed-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 22px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 150ms ease-out;
}
.ed-btn-secondary:hover {
  border-color: var(--text-main);
  background: rgba(245, 245, 243, 0.04);
}

/* Hero Elements */
.ed-hero-h1 {
  font-size: clamp(38px, 6.2vw, 80px);
  font-weight: 600;
  line-height: 0.96;
  margin: 0;
  letter-spacing: -0.04em;
  max-width: 1040px;
}
.ed-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* The Stakes (3-column hairline rule grid) */
.ed-stakes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.ed-stakes > * {
  padding: 34px 32px 38px;
  border-left: 1px solid var(--border);
}
.ed-stakes > :first-child {
  padding-left: 0;
  border-left: none;
}

/* Who it's for (3 audience cards) */
.ed-audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.ed-audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px 26px 28px;
  min-width: 0;
  transition: border-color 0.2s ease;
}
.ed-audience-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Works with Tech Stack Rails */
.ed-works-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 12px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.ed-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ed-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-main);
  transition: border-color 0.15s ease;
}
.ed-chip:hover {
  border-color: var(--accent-mint);
}

/* Split Ledger */
.ed-ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}
.ed-ledger > * {
  padding: 0 40px;
  border-left: 1px solid var(--border);
}
.ed-ledger > :first-child {
  padding-left: 0;
  border-left: none;
}

/* Cryptographic Certificate Plate */
.ed-cert {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.ed-cert-head {
  padding: 14px 24px;
  background: var(--raised);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ed-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  padding: 32px;
}

/* Pricing Grid */
.ed-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.ed-plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px 28px;
  transition: all 0.2s ease;
}
.ed-plan-pro {
  background: #15181C;
  border-color: var(--accent-mint);
  box-shadow: 0 0 0 1px var(--accent-mint), 0 24px 60px -30px rgba(61, 214, 140, 0.35);
}

/* Editorial FAQ 2-Column Hairlines */
.ed-faq-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 12px 48px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.ed-faq-row:last-child {
  border-bottom: 1px solid var(--border);
}

/* Product UI Fragments & Replicas */
.frag-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.frag-header {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--raised);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Web Compare Panes */
.web-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 16px;
}
.web-view-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #1E293B;
  overflow: hidden;
}

/* Diff Line Styles */
.diff-line {
  padding: 3px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.6;
}
.diff-add {
  background: rgba(61, 214, 140, 0.12);
  color: #3DD68C;
}
.diff-remove {
  background: rgba(238, 98, 102, 0.12);
  color: #EE6266;
}
.diff-warn {
  background: rgba(232, 163, 61, 0.12);
  color: #E8A33D;
}

/* Modals */
.hidden-modal {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.25s ease;
}
.active-modal {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: all 0.25s ease;
}

/* Responsive Media Queries */
@media (max-width: 860px) {
  .ed-frow,
  .ed-frow--flip,
  .ed-frow--widefrag,
  .ed-frow--flip.ed-frow--widefrag {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 0;
  }
  .ed-frow--flip .ed-frow-text {
    order: 1;
  }
  .ed-frow--flip .ed-frow-frag {
    order: 2;
  }
  .ed-stakes {
    grid-template-columns: minmax(0, 1fr);
  }
  .ed-stakes > * {
    padding: 24px 0;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .ed-stakes > :first-child {
    border-top: none;
  }
  .ed-audience {
    grid-template-columns: minmax(0, 1fr);
  }
  .ed-works-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .ed-ledger {
    grid-template-columns: minmax(0, 1fr);
  }
  .ed-ledger > * {
    padding: 28px 0 0;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .ed-ledger > :first-child {
    padding-top: 0;
    border-top: none;
  }
  .ed-plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .ed-cert-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
  }
  .ed-faq-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .ed-indent {
    padding-left: 0;
  }
  .web-compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
