/* ==========================================================================
   QuoteMaker.lk — Contiant-Inspired Editorial Fintech Design System
   Designed around soft editorial minimalism, large Manrope typography,
   pastel color blocking, product storytelling, and friendly rounded UI.
   Inspired by Contiant (StanVision)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & COLOR SYSTEM
   -------------------------------------------------------------------------- */
:root {
  /* Editorial Typography */
  --ct-font-display: 'Manrope', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ct-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ct-font-mono: 'Roboto Mono', monospace;

  /* Contiant Neutral Palette */
  --ct-canvas: #F8FAFC;
  --ct-canvas-subtle: #F1F5F9;
  --ct-white: #FFFFFF;
  --ct-ink: #0D0D0C;
  --ct-navy: #1F2933;
  --ct-slate-dark: #3E4C59;
  --ct-slate-body: #52606D;
  --ct-slate-muted: #7B8794;
  --ct-slate-light: #9AA5B1;
  --ct-border: #E4E7EB;
  --ct-border-subtle: #CBD2D9;

  /* Primary Brand Purple & Indigo (Contiant Action Color) */
  --ct-purple: #7C3AED;
  --ct-purple-hover: #6D28D9;
  --ct-purple-dark: #3F27AC;
  --ct-purple-light: #DFD1F4;
  --ct-purple-subtle: #F5F1FD;
  --ct-button-blue: #3D44E9;

  /* Contiant Signature Section Pastel Themes */
  /* Theme A: Mint / Soft Teal (Statutory / Trust) */
  --ct-mint-bg: #DFF3F6;
  --ct-mint-surface: #EBF8FA;
  --ct-mint-dark: #23596D;
  --ct-mint-border: #BCE5E9;

  /* Theme B: Warm Peach / Coral (Bank / Settlement) */
  --ct-peach-bg: #F1D9D0;
  --ct-peach-surface: #FAF0EC;
  --ct-peach-dark: #8C432F;
  --ct-peach-border: #E8CAC0;

  /* Theme C: Butter Yellow (Templates / Trade BOQs) */
  --ct-yellow-bg: #F8F3E7;
  --ct-yellow-surface: #FCF9F0;
  --ct-yellow-dark: #6D5400;
  --ct-yellow-border: #EDE2C3;

  /* Theme D: Lavender (Privacy & Speed) */
  --ct-lavender-bg: #DFD1F4;
  --ct-lavender-surface: #F5EEFC;
  --ct-lavender-dark: #3F27AC;
  --ct-lavender-border: #D1BDEB;

  /* Rounded Radii (Contiant Soft Editorial System) */
  --ct-radius-xl: 32px;
  --ct-radius-lg: 24px;
  --ct-radius-md: 18px;
  --ct-radius-sm: 12px;
  --ct-radius-pill: 9999px;

  /* Shadows (Extremely soft, modern) */
  --ct-shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --ct-shadow-hover: 0 20px 48px -12px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --ct-shadow-float: 0 16px 36px -8px rgba(31, 41, 51, 0.14), 0 2px 6px -1px rgba(31, 41, 51, 0.06);
}

/* --------------------------------------------------------------------------
   2. GLOBAL EDITORIAL TYPOGRAPHY & ELEMENTS
   -------------------------------------------------------------------------- */
.ct-page-wrap {
  background-color: var(--ct-canvas);
  color: var(--ct-ink);
  font-family: var(--ct-font-body);
  overflow-x: hidden;
}

.ct-heading-editorial {
  font-family: var(--ct-font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--ct-ink);
  line-height: 1.15;
}

/* Hand-drawn loop and underline highlights */
.ct-highlight-wrap {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.ct-highlight-text {
  position: relative;
  z-index: 1;
  color: var(--ct-ink);
}

.ct-highlight-svg {
  position: absolute;
  left: -6%;
  top: -15%;
  width: 112%;
  height: 130%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.ct-highlight-svg path {
  fill: none;
  stroke: var(--ct-purple);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawHighlight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.ct-underline-svg {
  position: absolute;
  left: -2%;
  bottom: -8px;
  width: 104%;
  height: 14px;
  pointer-events: none;
  overflow: visible;
}

.ct-underline-svg path {
  fill: none;
  stroke: var(--ct-purple);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawHighlight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes drawHighlight {
  to {
    stroke-dashoffset: 0;
  }
}

/* Editorial Overline Pills */
.ct-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--ct-radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  background-color: #FFFFFF;
  border: 1px solid var(--ct-border);
  color: var(--ct-slate-dark);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.ct-pill-tag .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Editorial Buttons */
.ct-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--ct-radius-pill);
  font-family: var(--ct-font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.ct-btn-primary {
  background-color: var(--ct-purple);
  color: #FFFFFF !important;
  border: 1px solid var(--ct-purple);
  box-shadow: 0 4px 16px -2px rgba(124, 58, 237, 0.35);
}

.ct-btn-primary:hover {
  background-color: var(--ct-purple-hover);
  border-color: var(--ct-purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -4px rgba(124, 58, 237, 0.45);
}

.ct-btn-primary:active {
  transform: translateY(0);
}

.ct-btn-primary .btn-arrow {
  transition: transform 0.2s ease;
}

.ct-btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.ct-btn-secondary {
  background-color: #FFFFFF;
  color: var(--ct-ink) !important;
  border: 1.5px solid var(--ct-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ct-btn-secondary:hover {
  background-color: var(--ct-canvas-subtle);
  border-color: var(--ct-border-subtle);
  transform: translateY(-1.5px);
  color: var(--ct-ink) !important;
}

/* --------------------------------------------------------------------------
   3. HERO SECTION (CONTIANT VISUAL STORYTELLING)
   -------------------------------------------------------------------------- */
/* ==========================================================================
   CONTIANT WIDE EDITORIAL CANVAS SYSTEM
   Expands navbar and homepage sections to fill widescreen viewports smoothly
   without huge margins on the sides (max-width: 1540px).
   ========================================================================== */
.page-home-contiant .site-header .container,
.page-home-contiant .container,
.ct-page-wrap .container {
  width: 100% !important;
  max-width: 1540px !important;
  padding-left: clamp(20px, 3.8vw, 60px) !important;
  padding-right: clamp(20px, 3.8vw, 60px) !important;
}

.page-home-contiant .site-header .header-inner {
  width: 100%;
}

/* --------------------------------------------------------------------------
   3. HERO SECTION (CONTIANT VISUAL STORYTELLING CANVAS)
   -------------------------------------------------------------------------- */
.ct-hero-section {
  position: relative;
  padding: 44px 0 84px;
  background-color: var(--ct-canvas);
  overflow: hidden;
}

/* Subtle pastel background ambient blooms */
.ct-hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 20%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(223, 209, 244, 0.5) 0%, rgba(223, 243, 246, 0.35) 50%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.ct-hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(560px, 1.35fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.ct-hero-left {
  max-width: 580px;
}

.ct-hero-title {
  font-family: var(--ct-font-display);
  font-size: clamp(2.8rem, 4.6vw, 4.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ct-ink);
  margin-bottom: 22px;
}

.ct-title-light {
  color: #52606D;
  font-weight: 400;
}

.ct-hero-lead {
  font-size: 1.16rem;
  line-height: 1.68;
  color: var(--ct-slate-body);
  margin-bottom: 32px;
  font-weight: 400;
  max-width: 520px;
}

.ct-hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Trust assurance checkmarks */
.ct-trust-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  font-size: 0.85rem;
  color: var(--ct-slate-muted);
  font-weight: 500;
}

.ct-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ct-trust-item svg {
  color: #10B981;
}

/* Quick trade presets */
.ct-preset-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px dashed var(--ct-border);
}

.ct-preset-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ct-slate-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ct-preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--ct-radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  background: #FFFFFF;
  border: 1px solid var(--ct-border);
  color: var(--ct-slate-dark);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ct-preset-chip:hover {
  background: var(--ct-purple-subtle);
  border-color: var(--ct-purple-light);
  color: var(--ct-purple);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   4. HERO RIGHT: CONTIANT 5-NODE PRODUCT STORYTELLING CANVAS
   -------------------------------------------------------------------------- */
.ct-flow-composition {
  position: relative;
  width: 100%;
  max-width: 740px;
  height: 530px;
  margin: 0 auto;
  animation: heroBreathing 7s ease-in-out infinite;
}

@keyframes heroBreathing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Connecting SVG paths between the 5 nodes */
.ct-flow-svg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 740px;
  height: 530px;
  pointer-events: none;
  z-index: 1;
}

.ct-flow-path {
  fill: none;
  stroke: #8B5CF6;
  stroke-width: 2.4;
  stroke-dasharray: 6 6;
  animation: flowDash 24s linear infinite;
  opacity: 0.9;
}

@keyframes flowDash {
  to {
    stroke-dashoffset: -320;
  }
}

.ct-pulse-particle {
  fill: var(--ct-purple);
  filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.6));
}

/* Node 1: Contractor Identity Badge (Top Left) */
.ct-flow-node-user {
  position: absolute;
  top: 24px;
  left: 0;
  width: 175px;
  z-index: 4;
  background: #FFFFFF;
  border-radius: var(--ct-radius-pill);
  padding: 6px 12px 6px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ct-border);
  box-shadow: var(--ct-shadow-card);
}

.ct-flow-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ct-font-display);
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
}

.ct-flow-user-meta {
  line-height: 1.15;
}

.ct-flow-user-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ct-ink);
  white-space: nowrap;
}

.ct-flow-user-role {
  font-size: 0.68rem;
  color: var(--ct-slate-muted);
  white-space: nowrap;
}

/* Node 2: Product / Line Item Card (Top Center) */
.ct-flow-node-product {
  position: absolute;
  top: 0;
  left: 230px;
  width: 205px;
  z-index: 4;
  background: #FFFFFF;
  border-radius: var(--ct-radius-md);
  border: 1px solid var(--ct-border);
  box-shadow: var(--ct-shadow-hover);
  padding: 12px 14px;
}

.ct-product-visual-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ct-product-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #FEF3C7;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ct-product-pill-approved {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: var(--ct-radius-pill);
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.ct-product-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ct-ink);
  line-height: 1.2;
  margin-bottom: 2px;
}

.ct-product-sub {
  font-size: 0.68rem;
  color: var(--ct-slate-muted);
  margin-bottom: 8px;
}

.ct-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid #F1F5F9;
}

.ct-product-price {
  font-family: var(--ct-font-mono);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--ct-ink);
}

.ct-product-btn-action {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--ct-radius-pill);
  background: var(--ct-ink);
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Node 3: Statutory Tax Settings Card (Top Right) */
.ct-flow-node-tax {
  position: absolute;
  top: 14px;
  left: 500px;
  width: 195px;
  z-index: 4;
  background: #FFFFFF;
  border-radius: var(--ct-radius-md);
  border: 1px solid var(--ct-border);
  box-shadow: var(--ct-shadow-float);
  padding: 14px 14px;
}

.ct-tax-node-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ct-slate-muted);
  margin-bottom: 2px;
}

.ct-tax-node-sub {
  font-size: 0.68rem;
  color: var(--ct-slate-muted);
  margin-bottom: 8px;
}

.ct-tax-toggles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}

.ct-tax-pill-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--ct-canvas);
  border: 1px solid var(--ct-border);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ct-slate-dark);
}

.ct-tax-pill-toggle .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
}

.ct-tax-pill-toggle .dot.svat {
  background: #7C3AED;
}

.ct-tax-note-auto {
  font-size: 0.65rem;
  font-weight: 600;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Node 4: Official Quotation Breakdown Card (Bottom Left) */
.ct-flow-node-quote {
  position: absolute;
  top: 175px;
  left: 20px;
  width: 355px;
  z-index: 4;
  background: #FFFFFF;
  border-radius: var(--ct-radius-lg);
  border: 1px solid var(--ct-border);
  box-shadow: var(--ct-shadow-hover);
  padding: 20px 22px;
}

.ct-quote-node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ct-border);
}

.ct-quote-ref-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ct-slate-muted);
  font-family: var(--ct-font-mono);
}

.ct-quote-node-client {
  margin-bottom: 12px;
}

.ct-quote-node-client .client-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ct-ink);
}

.ct-quote-node-client .client-loc {
  font-size: 0.7rem;
  color: var(--ct-slate-muted);
}

.ct-quote-calc-breakdown {
  background: #FAFAFC;
  border-radius: var(--ct-radius-sm);
  padding: 10px 12px;
  border: 1px solid var(--ct-border);
  margin-bottom: 12px;
  font-size: 0.74rem;
}

.ct-calc-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--ct-slate-body);
}

.ct-calc-row .num {
  font-family: var(--ct-font-mono);
  font-weight: 600;
  color: var(--ct-ink);
}

.ct-calc-row.grand {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1.5px solid var(--ct-border);
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--ct-ink);
}

.ct-calc-row.grand .num {
  color: var(--ct-purple);
  font-size: 0.92rem;
}

.ct-quote-node-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  border-radius: var(--ct-radius-pill);
  background: var(--ct-ink);
  color: #FFFFFF !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ct-quote-node-action-btn:hover {
  background: var(--ct-purple);
  transform: translateY(-1px);
}

/* Node 5: Success / Dispatched Badge (Bottom Right) */
.ct-flow-node-success {
  position: absolute;
  top: 410px;
  left: 450px;
  width: 240px;
  z-index: 4;
  background: var(--ct-lavender-bg);
  border: 1px solid var(--ct-lavender-border);
  border-radius: var(--ct-radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--ct-shadow-float);
}

.ct-success-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ct-purple);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  flex-shrink: 0;
}

.ct-success-content {
  line-height: 1.2;
}

.ct-success-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ct-purple-dark);
}

.ct-success-sub {
  font-size: 0.72rem;
  color: var(--ct-purple-dark);
  opacity: 0.85;
}

/* Responsive Scaling for the Hero Flow Composition */
@media (max-width: 1200px) {
  .ct-flow-composition {
    transform: scale(0.92);
    transform-origin: top center;
  }
}

@media (max-width: 991px) {
  .ct-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .ct-hero-left {
    max-width: 100%;
    text-align: center;
  }
  
  .ct-hero-ctas, .ct-trust-strip, .ct-preset-bar {
    justify-content: center;
  }
  
  .ct-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  
  .ct-flow-composition {
    max-width: 600px;
    margin: 0 auto;
    transform: scale(0.95);
  }
}

@media (max-width: 640px) {
  .ct-flow-composition {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }
  
  .ct-flow-svg-canvas {
    display: none;
  }
  
  .ct-flow-node-user,
  .ct-flow-node-product,
  .ct-flow-node-bank,
  .ct-flow-node-quote,
  .ct-flow-node-success {
    position: static;
    width: 100%;
    max-width: 100%;
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   5. INFINITE SRI LANKAN BANK LOGO MARQUEE
   -------------------------------------------------------------------------- */
.ct-marquee-section {
  padding: 36px 0 44px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--ct-border);
  border-bottom: 1px solid var(--ct-border);
  overflow: hidden;
}

.ct-marquee-heading {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ct-slate-muted);
  margin-bottom: 24px;
}

.ct-marquee-track-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.ct-marquee-track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: marqueeScroll 38s linear infinite;
}

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

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

.ct-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: var(--ct-canvas);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ct-slate-dark);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ct-marquee-item:hover {
  background-color: #FFFFFF;
  border-color: var(--ct-purple-light);
  color: var(--ct-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.ct-bank-emblem {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  background-color: #FFFFFF;
  border: 1px solid var(--ct-border);
  color: var(--ct-ink);
}

/* --------------------------------------------------------------------------
   6. INTERACTIVE 3-STEP STORY: "HOW QUOTATIONS WIN DEALS"
   -------------------------------------------------------------------------- */
.ct-story-section {
  padding: 96px 0;
  background-color: var(--ct-canvas);
}

.ct-section-header-editorial {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.ct-section-title-editorial {
  font-family: var(--ct-font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ct-ink);
  margin-bottom: 16px;
}

.ct-section-sub-editorial {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ct-slate-body);
}

.ct-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ct-step-card {
  background: #FFFFFF;
  border-radius: var(--ct-radius-lg);
  border: 1px solid var(--ct-border);
  box-shadow: var(--ct-shadow-card);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.2s ease;
}

.ct-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ct-shadow-hover);
  border-color: var(--ct-purple-light);
}

.ct-step-badge-num {
  font-family: var(--ct-font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ct-purple);
  background-color: var(--ct-purple-subtle);
  padding: 4px 12px;
  border-radius: var(--ct-radius-pill);
  width: max-content;
  margin-bottom: 24px;
}

.ct-step-card h3 {
  font-family: var(--ct-font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ct-ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.ct-step-card p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ct-slate-body);
  margin-bottom: 24px;
  flex: 1;
}

.ct-step-visual-preview {
  background-color: var(--ct-canvas);
  border-radius: var(--ct-radius-sm);
  border: 1px solid var(--ct-border);
  padding: 16px;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   7. PASTEL COLOR-BLOCKED 4-CARD SYSTEM (CONTIANT SIGNATURE)
   -------------------------------------------------------------------------- */
.ct-pastel-features-section {
  padding: 96px 0 108px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--ct-border);
  border-bottom: 1px solid var(--ct-border);
}

.ct-pastel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.ct-pastel-card {
  border-radius: var(--ct-radius-xl);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
  overflow: hidden;
}

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

/* Card 1: Mint Theme */
.ct-card-mint {
  background-color: var(--ct-mint-bg);
  color: var(--ct-mint-dark);
}
.ct-card-mint .ct-card-tag {
  background-color: rgba(255, 255, 255, 0.65);
  color: var(--ct-mint-dark);
}

/* Card 2: Peach Theme */
.ct-card-peach {
  background-color: var(--ct-peach-bg);
  color: var(--ct-peach-dark);
}
.ct-card-peach .ct-card-tag {
  background-color: rgba(255, 255, 255, 0.65);
  color: var(--ct-peach-dark);
}

/* Card 3: Butter Yellow Theme */
.ct-card-yellow {
  background-color: var(--ct-yellow-bg);
  color: var(--ct-yellow-dark);
}
.ct-card-yellow .ct-card-tag {
  background-color: rgba(255, 255, 255, 0.65);
  color: var(--ct-yellow-dark);
}

/* Card 4: Lavender Theme */
.ct-card-lavender {
  background-color: var(--ct-lavender-bg);
  color: var(--ct-lavender-dark);
}
.ct-card-lavender .ct-card-tag {
  background-color: rgba(255, 255, 255, 0.65);
  color: var(--ct-lavender-dark);
}

.ct-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--ct-radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: max-content;
  margin-bottom: 32px;
}

.ct-card-body-top h3 {
  font-family: var(--ct-font-display);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.ct-card-body-top p {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 440px;
}

.ct-card-footer-visual {
  margin-top: 36px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--ct-radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   8. EDITORIAL COMPARISON MATRIX ("LOCAL REALITY VS GENERIC APPS")
   -------------------------------------------------------------------------- */
.ct-compare-section {
  padding: 96px 0;
  background-color: var(--ct-canvas);
}

.ct-compare-container {
  max-width: 980px;
  margin: 0 auto;
}

.ct-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.ct-comp-card {
  border-radius: var(--ct-radius-xl);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}

.ct-comp-legacy {
  background: #FFFFFF;
  border: 1px solid var(--ct-border);
  color: var(--ct-slate-body);
}

.ct-comp-quotemaker {
  background: #FFFFFF;
  border: 2px solid var(--ct-purple);
  box-shadow: 0 16px 40px -8px rgba(124, 58, 237, 0.16);
  position: relative;
}

.ct-comp-pill-header {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--ct-radius-pill);
  width: max-content;
  margin-bottom: 18px;
}

.ct-comp-legacy .ct-comp-pill-header {
  background-color: #F1F5F9;
  color: var(--ct-slate-muted);
}

.ct-comp-quotemaker .ct-comp-pill-header {
  background-color: var(--ct-purple-subtle);
  color: var(--ct-purple);
}

.ct-comp-title {
  font-family: var(--ct-font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ct-ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.ct-comp-sub {
  font-size: 0.9rem;
  color: var(--ct-slate-muted);
  margin-bottom: 28px;
}

.ct-comp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ct-comp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.ct-comp-item svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.ct-comp-item.bad svg {
  color: #EF4444;
}

.ct-comp-item.good svg {
  color: #10B981;
}

/* --------------------------------------------------------------------------
   9. POPULAR TRADE TEMPLATES SHOWCASE
   -------------------------------------------------------------------------- */
.ct-templates-section {
  padding: 96px 0;
  background-color: #FFFFFF;
  border-top: 1px solid var(--ct-border);
}

.ct-templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.ct-tmpl-card {
  background: #FFFFFF;
  border-radius: var(--ct-radius-lg);
  border: 1px solid var(--ct-border);
  overflow: hidden;
  box-shadow: var(--ct-shadow-card);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.ct-tmpl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ct-shadow-hover);
  border-color: var(--ct-purple-light);
}

.ct-tmpl-thumb {
  height: 180px;
  position: relative;
  background-color: #0F172A;
  overflow: hidden;
}

.ct-tmpl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ct-tmpl-card:hover .ct-tmpl-thumb img {
  transform: scale(1.05);
}

.ct-tmpl-pill-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--ct-radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.82);
  color: #FFFFFF;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ct-tmpl-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ct-tmpl-body h4 {
  font-family: var(--ct-font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--ct-ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.ct-tmpl-body p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ct-slate-body);
  margin-bottom: 20px;
  flex: 1;
}

.ct-tmpl-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--ct-border);
  font-size: 0.82rem;
}

.ct-tmpl-footer .action {
  font-weight: 700;
  color: var(--ct-purple);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   10. EDITORIAL FAQ ACCORDION
   -------------------------------------------------------------------------- */
.ct-faq-section {
  padding: 96px 0 108px;
  background-color: var(--ct-canvas);
  border-top: 1px solid var(--ct-border);
}

.ct-faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.ct-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 48px;
}

.ct-faq-item {
  background: #FFFFFF;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ct-faq-item.active {
  border-color: var(--ct-purple-light);
  box-shadow: 0 8px 24px -4px rgba(124, 58, 237, 0.08);
}

.ct-faq-question {
  width: 100%;
  padding: 22px 26px;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--ct-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ct-ink);
  letter-spacing: -0.015em;
  cursor: pointer;
}

.ct-faq-icon-arrow {
  width: 22px;
  height: 22px;
  color: var(--ct-slate-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
}

.ct-faq-item.active .ct-faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--ct-purple);
}

.ct-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.ct-faq-item.active .ct-faq-answer {
  max-height: 400px;
}

.ct-faq-answer-inner {
  padding: 0 26px 24px;
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--ct-slate-body);
}

/* --------------------------------------------------------------------------
   11. CONTIANT MIDNIGHT CONVERSION BAND
   -------------------------------------------------------------------------- */
.ct-midnight-cta-section {
  padding: 30px 0 96px;
  background-color: var(--ct-canvas);
}

.ct-midnight-box {
  background: var(--ct-ink);
  border-radius: var(--ct-radius-xl);
  padding: 72px 56px;
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px -16px rgba(13, 13, 12, 0.4);
}

.ct-midnight-box::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.35) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.ct-midnight-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.ct-midnight-tag {
  display: inline-flex;
  padding: 5px 14px;
  border-radius: var(--ct-radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ct-midnight-title {
  font-family: var(--ct-font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.ct-midnight-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 36px;
}

.ct-midnight-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.ct-btn-white-pill {
  background-color: #FFFFFF;
  color: var(--ct-ink) !important;
  font-weight: 700;
}

.ct-btn-white-pill:hover {
  background-color: #F1F5F9;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.2);
}

.ct-btn-ghost-pill {
  background: transparent;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.ct-btn-ghost-pill:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.ct-midnight-assurances {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #94A3B8;
}

.ct-midnight-assurances span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE BREAKPOINTS (CONTIANT ADAPTIVE LAYOUT)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ct-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ct-hero-left {
    max-width: 100%;
    text-align: center;
  }

  .ct-hero-ctas {
    justify-content: center;
  }

  .ct-trust-strip {
    justify-content: center;
  }

  .ct-preset-bar {
    justify-content: center;
  }

  .ct-steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ct-pastel-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ct-compare-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ct-templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ct-hero-section {
    padding: 44px 0 60px;
  }

  .ct-hero-title {
    font-size: 2.3rem;
  }

  .ct-sat-bank {
    top: -10px;
    right: -10px;
  }

  .ct-sat-tax {
    bottom: -15px;
    left: -10px;
  }

  .ct-sat-pdf {
    display: none; /* Hide 3rd satellite on smaller screens to prevent crowding */
  }

  .ct-templates-grid {
    grid-template-columns: 1fr;
  }

  .ct-pastel-card {
    padding: 36px 28px;
    min-height: auto;
  }

  .ct-midnight-box {
    padding: 48px 24px;
  }
}

@media (max-width: 480px) {
  .ct-hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .ct-btn-pill {
    width: 100%;
    text-align: center;
  }

  .ct-satellite-card {
    position: static;
    margin: 10px auto;
    width: 100%;
    box-shadow: var(--ct-shadow-card);
  }

  .ct-flow-composition {
    padding: 10px 0;
  }

  .ct-flow-svg-canvas {
    display: none;
  }
}
