/* ========== UTILITY ========== */
  .text-blue { color: #0F475F !important; }
  .gradient-blue {
    background: linear-gradient(90deg, #4A9BB5, #0F475F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

/* ========== CSS VARIABLES ========== */
  :root {
    --color-cream: #FDF6EF;
    --color-cream-dark: #F5E6D8;
    --color-warm-bg: #FAF0E6;
    --color-burgundy: #8B2E3B;
    --color-burgundy-light: #A3424F;
    --color-burgundy-deep: #6B1D28;
    --color-coral: #C4654A;
    --color-coral-hover: #B55840;
    --color-charcoal: #2A2A2A;
    --color-text: #3D3535;
    --color-text-light: #6B5E5E;
    --color-text-muted: #9A8E8E;
    --color-white: #FFFFFF;
    --color-midnight: #1E1A2A;
    --color-midnight-accent: #2C2640;
    --color-border: rgba(139, 46, 59, 0.12);
    --color-border-light: rgba(139, 46, 59, 0.06);
    
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --max-width: 1200px;
    --section-padding: clamp(80px, 10vw, 140px);
    --transition-smooth: cubic-bezier(0.23, 1, 0.32, 1);
  }

  /* ========== RESET & BASE ========== */
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  html { 
    scroll-behavior: smooth; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
  }

  img { max-width: 100%; display: block; }
  a { text-decoration: none; color: inherit; }

  /* ========== ANIMATIONS ========== */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

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

  @keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
  }

  @keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
  }

  @keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
  }

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

  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }

  /* ========== NAVIGATION ========== */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s var(--transition-smooth);
    background: transparent;
  }

  .nav.scrolled {
    background: #FDF6EF;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 40px;
    box-shadow: 0 1px 0 var(--color-border);
  }

  .nav-logo {
    display: flex;
    align-items: center;
  }

  .nav-logo .logo-img {
    height: 32px;
    width: auto;
  }

  .nav.scrolled .logo-img {
    height: 28px;
  }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #0F475F;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 12px;
    transition: all 0.3s var(--transition-smooth);
    border: none;
    cursor: pointer;
  }

  .nav-cta:hover {
    background: rgba(15, 71, 95, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(15, 71, 95, 0.3);
  }

  .nav-cta svg { width: 14px; height: 14px; }

  /* ========== HERO ========== */
  .hero {
    padding: 160px 40px var(--section-padding);
    background: var(--color-cream);
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 46, 59, 0.04) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .hero-content {
    animation: slideInLeft 1s var(--transition-smooth);
  }

  .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4.2vw, 3.8rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-burgundy);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
  }

  .hero h1 em {
    font-style: italic;
    color: var(--color-burgundy-light);
  }

  .hero-sub {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 480px;
    font-weight: 300;
  }

  .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: #0F475F;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 12px;
    transition: all 0.3s var(--transition-smooth);
    border: none;
    cursor: pointer;
  }

  .hero-cta:hover {
    background: rgba(15, 71, 95, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(15, 71, 95, 0.35);
  }

  .hero-cta svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
  .hero-cta:hover svg { transform: translateX(3px); }

  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s var(--transition-smooth) 0.2s both;
    position: relative;
  }

  .hero-product {
    width: 100%;
    max-width: 580px;
  }

  .product-window {
    background: var(--color-white);
    border-radius: 14px;
    box-shadow: 
      0 1px 3px rgba(0,0,0,0.04),
      0 12px 48px rgba(139, 46, 59, 0.1),
      0 32px 80px rgba(139, 46, 59, 0.06);
    overflow: hidden;
    border: 1px solid rgba(139, 46, 59, 0.06);
  }

  .product-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #FAFAFA;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .toolbar-dots {
    display: flex;
    gap: 6px;
  }

  .tb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }

  .tb-dot.red { background: #EF4444; }
  .tb-dot.yellow { background: #F59E0B; }
  .tb-dot.green { background: #10B981; }

  .toolbar-tabs {
    display: flex;
    gap: 4px;
    margin-left: 8px;
  }

  .tb-tab {
    font-size: 0.62rem;
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
  }

  .tb-tab.active {
    background: var(--color-white);
    color: var(--color-charcoal);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }

  .product-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    min-height: 320px;
    position: relative;
  }

  /* ===== HERO PRODUCT ANIMATION SEQUENCE ===== */
  .upload-overlay {
    position: absolute;
    inset: 0;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 10;
    animation: uploadFade 0.5s ease forwards;
    animation-delay: 2.8s;
  }

  .upload-icon svg {
    width: 32px;
    height: 32px;
    animation: uploadBounce 0.6s ease infinite alternate;
  }

  @keyframes uploadBounce {
    from { transform: translateY(0); }
    to { transform: translateY(-4px); }
  }

  .upload-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-charcoal);
    animation: fadeIn 0.4s ease 0.5s both;
  }

  .upload-bar-track {
    width: 160px;
    height: 4px;
    background: rgba(0,0,0,0.06);
    border-radius: 2px;
    overflow: hidden;
    animation: fadeIn 0.4s ease 0.6s both;
  }

  .upload-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-burgundy), var(--color-coral));
    border-radius: 2px;
    animation: uploadProgress 2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
  }

  @keyframes uploadProgress {
    0% { width: 0%; }
    30% { width: 45%; }
    60% { width: 72%; }
    85% { width: 92%; }
    100% { width: 100%; }
  }

  .upload-status {
    font-size: 0.6rem;
    color: var(--color-text-light);
    opacity: 0;
    animation: fadeIn 0.3s ease 2s forwards;
  }

  @keyframes uploadFade {
    0% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
  }

  /* Phase 2: Document text loads line by line */
  .product-doc {
    padding: 20px;
    border-right: 1px solid rgba(0,0,0,0.06);
    opacity: 0;
    animation: docReveal 0.6s ease forwards;
    animation-delay: 3s;
  }

  .doc-anim {
    opacity: 0;
    transform: translateY(6px);
    animation: docLineIn 0.4s ease forwards;
  }
  .doc-anim.da-1 { animation-delay: 3.2s; }
  .doc-anim.da-2 { animation-delay: 3.5s; }
  .doc-anim.da-3 { animation-delay: 3.7s; }
  .doc-anim.da-4 { animation-delay: 3.9s; }
  .doc-anim.da-5 { animation-delay: 4.2s; }
  .doc-anim.da-6 { animation-delay: 4.5s; }
  .doc-anim.da-7 { animation-delay: 4.8s; }
  .doc-anim.da-8 { animation-delay: 5.0s; }

  @keyframes docLineIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

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

  /* Phase 3: Analysis panel slides in after doc loads */
  .product-analysis {
    opacity: 0;
    transform: translateX(30px);
    animation: analysisSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 4.6s;
  }

  @keyframes analysisSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
  }

  .analysis-card {
    opacity: 0;
    transform: translateY(10px);
    animation: cardReveal 0.5s ease forwards;
  }

  .analysis-card:nth-child(2) { animation-delay: 5.0s; }
  .analysis-card:nth-child(3) { animation-delay: 5.5s; }

  @keyframes cardReveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .kl-item {
    opacity: 0;
    animation: cardReveal 0.4s ease forwards;
    padding: 20px;
    border-right: 1px solid rgba(0,0,0,0.06);
  }
  .kl-item:nth-child(1) { animation-delay: 5.2s; }
  .kl-item:nth-child(2) { animation-delay: 5.5s; }

  .doc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }

  .doc-type-icon svg { width: 16px; height: 16px; }

  .doc-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-charcoal);
  }

  .doc-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .doc-line {
    font-size: 0.62rem;
    color: var(--color-text);
    line-height: 1.5;
    text-align: center;
  }

  .doc-line.bold {
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    color: var(--color-charcoal);
  }

  .doc-line.light {
    color: var(--color-text-light);
  }

  .doc-line-block {
    height: 6px;
    background: rgba(0,0,0,0.04);
    border-radius: 3px;
    margin-top: 5px;
  }

  .doc-line-block.short { width: 65%; }
  .doc-line-block.medium { width: 80%; }

  .product-analysis {
    padding: 16px;
    background: var(--color-cream);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .analysis-header {
    margin-bottom: 4px;
  }

  .analysis-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-charcoal);
  }

  .analysis-subtitle {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    margin-top: 2px;
  }

  .analysis-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid rgba(0,0,0,0.04);
  }

  .kl-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .kl-check svg { width: 18px; height: 18px; }

  .kl-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-charcoal);
  }

  .kl-sub {
    font-size: 0.58rem;
    color: var(--color-text-muted);
  }

  .kl-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .kl-stat {
    background: var(--color-cream);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.04);
  }

  .kl-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-charcoal);
  }

  .kl-label {
    font-size: 0.56rem;
    color: var(--color-text-muted);
  }

  .kl-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .kl-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--color-cream);
    border-radius: 8px;
    font-size: 0.62rem;
    color: var(--color-text);
    line-height: 1.4;
  }

  .kl-item svg { width: 16px; height: 16px; flex-shrink: 0; }

  .doc-overview {
    padding: 12px 14px;
  }

  .do-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: 6px;
  }

  .do-text {
    font-size: 0.62rem;
    color: var(--color-text-light);
    line-height: 1.6;
  }

  /* ========== PROBLEM SECTION ========== */
  .problem {
    padding: var(--section-padding) 40px;
    background: var(--color-white);
    position: relative;
  }

  .problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  }

  .problem-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }

  .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0F475F;
    margin-bottom: 24px;
  }

  .section-label::before,
  .section-label::after {
    content: '';
    width: 20px;
    height: 1px;
    background: #0F475F;
    opacity: 0.4;
  }

  .problem h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 500;
    color: var(--color-burgundy);
    line-height: 1.2;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
  }

  .problem h2 em {
    font-style: italic;
  }

  .problem-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 24px;
    font-weight: 300;
  }

  .problem-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 48px;
    flex-wrap: wrap;
  }

  .timeline-step {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .timeline-pill {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--color-cream);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
  }

  .timeline-pill:hover {
    background: var(--color-cream-dark);
    transform: translateY(-2px);
  }

  .timeline-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-coral);
  }

  .timeline-arrow {
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
  }

  .timeline-arrow-fade {
    animation: arrowPulse 1.5s ease-in-out infinite;
    animation-delay: 0.5s;
  }

  @keyframes arrowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
  }

  .timeline-then-what {
    margin-left: 12px;
    position: relative;
  }

  .then-what-text {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--color-coral);
    opacity: 0;
    display: inline-block;
    animation: thenWhatReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
    text-shadow: 0 2px 20px rgba(196, 101, 74, 0.25);
  }

  .problem-timeline.visible .then-what-text {
    animation: thenWhatReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
  }

  @keyframes thenWhatReveal {
    0% { opacity: 0; transform: translateX(-10px) scale(0.8); }
    60% { opacity: 1; transform: translateX(4px) scale(1.05); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
  }

  /* ========== SOLUTION / TWO PANELS ========== */
  .solution {
    padding: var(--section-padding) 40px;
    background: var(--color-cream);
  }

  .solution-inner {
    max-width: var(--max-width);
    margin: 0 auto;
  }

  .solution h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 500;
    color: var(--color-burgundy);
    line-height: 1.2;
    margin-bottom: 60px;
    text-align: center;
    letter-spacing: -0.01em;
  }

  .solution h2 strong {
    font-weight: 700;
  }

  /* Icon bridge connecting Firms and Families */
  .solution-icon-bridge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
  }

  .bridge-line {
    height: 1px;
    flex: 1;
    max-width: 120px;
  }

  .bridge-line-left {
    background: linear-gradient(90deg, transparent, var(--color-burgundy));
    animation: bridgeLineGrow 1s ease forwards;
    animation-delay: 0.3s;
    transform-origin: right;
    transform: scaleX(0);
  }

  .bridge-line-right {
    background: linear-gradient(90deg, var(--color-coral), transparent);
    animation: bridgeLineGrow 1s ease forwards;
    animation-delay: 0.3s;
    transform-origin: left;
    transform: scaleX(0);
  }

  .solution-icon-bridge.visible .bridge-line-left,
  .solution-icon-bridge.visible .bridge-line-right {
    animation: bridgeLineGrow 1s ease forwards;
    animation-delay: 0.5s;
  }

  @keyframes bridgeLineGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }

  .bridge-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: iconPulse 3s ease-in-out infinite;
  }

  .bridge-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-burgundy), var(--color-coral));
    opacity: 0.12;
    animation: iconGlow 3s ease-in-out infinite;
  }

  @keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
  }

  @keyframes iconGlow {
    0%, 100% { opacity: 0.08; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.15); }
  }

  .bridge-icon {
    width: 48px;
    height: auto;
    position: relative;
    z-index: 1;
  }

  .solution-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
  }

  .solution-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 44px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
    border: 1px solid var(--color-border-light);
  }

  .solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(139, 46, 59, 0.08);
  }

  .solution-card-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
  }

  .solution-card-tag.firm { background: rgba(139, 46, 59, 0.08); color: var(--color-burgundy); }
  .solution-card-tag.family { background: rgba(196, 101, 74, 0.08); color: var(--color-coral); }

  .solution-card h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: 16px;
    line-height: 1.3;
  }

  .solution-card p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-text-light);
    font-weight: 300;
  }

  .solution-features {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .solution-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.5;
  }

  .solution-feature-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .firm-feature .solution-feature-icon { background: rgba(139, 46, 59, 0.08); }
  .family-feature .solution-feature-icon { background: rgba(196, 101, 74, 0.08); }

  .solution-feature-icon svg { width: 12px; height: 12px; }

  /* ========== MIDNIGHT SECTION - 3 PHASE REVEAL ========== */
  /* Scroll-lock wrapper: user scrolls through this tall container while the section stays pinned */
  .midnight-scroll-wrapper {
    height: 400vh;
    position: relative;
  }

  .midnight {
    padding: 0;
    background: var(--color-midnight);
    color: var(--color-white);
    position: sticky;
    top: 0;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .midnight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(139, 46, 59, 0.08) 0%, transparent 60%);
    pointer-events: none;
  }

  .midnight::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 101, 74, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: midnightGlow 6s ease-in-out infinite;
  }

  @keyframes midnightGlow {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
  }

  .midnight-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .midnight-stars span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: twinkle 4s ease-in-out infinite;
  }
  .midnight-stars span:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
  .midnight-stars span:nth-child(2) { top: 25%; left: 72%; animation-delay: 1.2s; animation-duration: 3.5s; }
  .midnight-stars span:nth-child(3) { top: 68%; left: 15%; animation-delay: 2.1s; animation-duration: 5s; }
  .midnight-stars span:nth-child(4) { top: 45%; left: 88%; animation-delay: 0.7s; animation-duration: 4.2s; }
  .midnight-stars span:nth-child(5) { top: 82%; left: 55%; animation-delay: 1.8s; animation-duration: 3.8s; }
  .midnight-stars span:nth-child(6) { top: 8%; left: 45%; animation-delay: 3s; animation-duration: 4.5s; }
  .midnight-stars span:nth-child(7) { top: 55%; left: 35%; animation-delay: 0.3s; width: 3px; height: 3px; }
  .midnight-stars span:nth-child(8) { top: 35%; left: 92%; animation-delay: 2.5s; animation-duration: 3.2s; }

  @keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
  }

  /* Phase 1: Big centered title */
  .midnight-phase-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .midnight-phase-title.active {
    opacity: 1;
  }

  .midnight-phase-title.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease;
  }

  .midnight-big-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 500;
    line-height: 1.1;
    text-align: center;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    filter: blur(8px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .midnight-phase-title.active .midnight-big-title {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }

  .midnight-big-title em {
    font-style: italic;
    color: var(--color-coral);
    text-shadow: 0 0 60px rgba(196, 101, 74, 0.4);
  }

  /* Scroll indicator */
  .midnight-scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.6s ease;
  }

  .midnight-scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .scroll-indicator-text {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
  }

  .scroll-indicator-track {
    width: 2px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
  }

  .scroll-indicator-dot {
    width: 2px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
    position: absolute;
    top: 0;
    animation: scrollBounce 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }

  @keyframes scrollBounce {
    0%, 100% { top: 0; opacity: 0.4; }
    50% { top: 22px; opacity: 1; }
  }

  /* Phase 2 & 3: Content area */
  .midnight-phase-content {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 3;
  }

  .midnight-phase-content.active {
    opacity: 1;
  }

  .midnight-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 80px 40px;
  }

  .midnight-headline-reveal {
    margin-bottom: 12px;
  }

  .midnight h2 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
  }

  .midnight h2 em {
    font-style: italic;
    color: var(--color-coral);
    text-shadow: 0 0 40px rgba(196, 101, 74, 0.3);
  }

  /* Scenario text - typewriter-style stagger */
  .midnight-scenario {
    margin-bottom: 24px;
  }

  .scenario-line {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .scenario-line.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  .scenario-line.sl-4 {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 1.2rem;
  }

  .midnight p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-weight: 300;
  }

  .midnight-emphasis {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9) !important;
    border-left: 2px solid var(--color-coral);
    padding-left: 24px;
    margin-top: 32px;
  }

  .midnight-body-relief {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .midnight-body-relief.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  /* Phase 3: Phone slides in */
  .midnight-visual-reveal {
    opacity: 0;
    transform: translateX(100px) translateY(40px) scale(0.85);
    filter: blur(6px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .midnight-visual-reveal.visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    filter: blur(0);
  }

  .midnight-visual {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .midnight-phone {
    width: 280px;
    height: 520px;
    background: var(--color-midnight-accent);
    border-radius: 40px;
    border: 2px solid rgba(255,255,255,0.08);
    padding: 20px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    animation: float 6s ease-in-out infinite;
  }

  .midnight-phone::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
  }

  /* Notifications animate after phone visible */
  .phone-notification {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .midnight-visual-reveal.visible .phone-notification:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
  }
  .midnight-visual-reveal.visible .phone-notification:nth-child(4) {
    opacity: 0.7;
    transform: translateY(0);
    transition-delay: 1.0s;
  }

  .phone-screen {
    margin-top: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 24px;
    padding: 24px 18px;
    height: calc(100% - 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .phone-time {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.05em;
  }

  .phone-date {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: -10px;
    margin-bottom: 16px;
  }

  .phone-notification {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 14px 16px;
    backdrop-filter: blur(10px);
  }

  .phone-notif-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .phone-notif-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--color-coral);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .phone-notif-icon svg { width: 14px; height: 14px; fill: white; }

  .phone-notif-app {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .phone-notif-time {
    margin-left: auto;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
  }

  .phone-notif-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
  }

  .phone-notif-body {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
  }

  /* ========== HOW IT WORKS ========== */
  .how-it-works {
    padding: var(--section-padding) 40px;
    background: var(--color-white);
  }

  .how-it-works-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
  }

  .how-it-works h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 500;
    color: var(--color-burgundy);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
  }

  .how-it-works-sub {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 64px;
    font-weight: 300;
  }

  .workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    position: relative;
  }

  .workflow-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-border), #4A9BB5, #0F475F, var(--color-border));
    z-index: 0;
  }

  .workflow-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 12px;
  }

  .workflow-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cream);
    border: 2px solid var(--color-border);
    transition: all 0.3s var(--transition-smooth);
  }

  .workflow-step:hover .workflow-icon {
    background: var(--color-white);
    border-color: var(--color-coral);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(196, 101, 74, 0.15);
  }

  .workflow-icon svg { width: 28px; height: 28px; }

  .workflow-step h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: 8px;
  }

  .workflow-step p {
    font-size: 0.84rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-weight: 300;
  }

  .workflow-trust-note {
    margin-top: 48px;
    padding: 20px 32px;
    background: var(--color-cream);
    border-radius: 12px;
    border: 1px solid var(--color-border-light);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--color-text);
  }

  .workflow-trust-note svg { width: 20px; height: 20px; flex-shrink: 0; }

  /* ========== TESTIMONIALS ========== */
  .testimonials {
    padding: var(--section-padding) 40px;
    background: var(--color-cream);
  }

  .testimonials-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
  }

  .testimonials h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 500;
    color: var(--color-burgundy);
    line-height: 1.2;
    margin-bottom: 60px;
    letter-spacing: -0.01em;
  }

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

  .testimonial-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 36px 32px;
    text-align: left;
    border: 1px solid var(--color-border-light);
    transition: all 0.4s var(--transition-smooth);
    position: relative;
  }

  .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(139, 46, 59, 0.08);
  }

  .testimonial-card::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--color-coral);
    opacity: 0.15;
    position: absolute;
    top: 16px;
    left: 24px;
    line-height: 1;
  }

  .testimonial-quote {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
  }

  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-white);
  }

  .testimonial-avatar.firm-avatar { background: var(--color-burgundy); }
  .testimonial-avatar.family-avatar { background: var(--color-coral); }

  .testimonial-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-charcoal);
  }

  .testimonial-role {
    font-size: 0.76rem;
    color: var(--color-text-muted);
    margin-top: 2px;
  }

  .testimonial-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-left: auto;
  }

  .testimonial-type.firm-type { background: rgba(139, 46, 59, 0.08); color: var(--color-burgundy); }
  .testimonial-type.family-type { background: rgba(196, 101, 74, 0.08); color: var(--color-coral); }

  /* ========== INTEGRATIONS ========== */
  .integrations {
    padding: var(--section-padding) 40px;
    background: var(--color-white);
  }

  .integrations-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }

  .integrations h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500;
    color: var(--color-burgundy);
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
  }

  .integrations-sub {
    font-size: 1.02rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 48px;
    font-weight: 300;
  }

  .integration-logos {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 40px;
  }

  .integration-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--color-cream);
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition-smooth);
  }

  .integration-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }

  .integration-logo svg { width: 28px; height: 28px; }

  .integration-label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: 8px;
    font-weight: 500;
  }

  /* ========== CTA / FORM ========== */
  .cta {
    padding: var(--section-padding) 40px;
    background: var(--color-cream);
    color: var(--color-charcoal);
    position: relative;
    overflow: hidden;
  }

  .cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  }

  .cta-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
  }

  /* Layout: left copy + right form card */
  .cta-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 64px;
    align-items: start;
  }

  .cta-copy {
    padding-top: 20px;
  }

  .cta-brand-icon {
    width: 64px;
    height: auto;
    margin-bottom: 28px;
    animation: iconPulse 3s ease-in-out infinite;
  }

  .cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    color: var(--color-burgundy);
  }

  .cta-sub {
    font-size: 1.02rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    font-weight: 300;
    line-height: 1.75;
  }

  .cta-trust-signals {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
  }

  .cta-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--color-text);
    font-weight: 400;
  }

  .cta-trust-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(139, 46, 59, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .cta-trust-icon svg { width: 16px; height: 16px; }

  /* Form card */
  .cta-form-card {
    background: var(--color-white);
    border-radius: 24px;
    padding: 44px 40px;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 12px 48px rgba(139, 46, 59, 0.06);
    position: relative;
  }

  .cta-form-card::before {
    content: '';
    position: absolute;
    top: -1px; left: 40px; right: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-burgundy), var(--color-coral));
    border-radius: 0 0 3px 3px;
  }

  .cta-form-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: 6px;
    text-align: center;
  }

  .cta-form-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 28px;
    font-weight: 300;
  }

  .cta-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: left;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .form-group.full-width {
    grid-column: 1 / -1;
  }

  .form-group label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.03em;
  }

  .form-group input,
  .form-group textarea {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-cream);
    color: var(--color-charcoal);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
  }

  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: var(--color-text-muted);
  }

  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--color-burgundy);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(139, 46, 59, 0.08);
  }

  .form-group textarea {
    min-height: 100px;
    resize: vertical;
  }

  .form-submit {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }

  .form-submit button {
    padding: 16px 48px;
    width: 100%;
    justify-content: center;
    background: #0F475F;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .form-submit button:hover {
    background: rgba(15, 71, 95, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(15, 71, 95, 0.3);
  }

  .form-submit button svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
  .form-submit button:hover svg { transform: translateX(3px); }

  .form-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: 16px;
    grid-column: 1 / -1;
  }

  .form-privacy svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    margin-right: 4px;
    opacity: 0.5;
  }

  /* ========== FOOTER ========== */
  .footer {
    padding: 40px;
    background: var(--color-charcoal);
    color: rgba(255,255,255,0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-logo {
    display: flex;
    align-items: center;
  }

  .footer-logo-img {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
  }

  .footer-links {
    display: flex;
    gap: 32px;
    font-size: 0.82rem;
  }

  .footer-links a {
    color: rgba(255,255,255,0.5);
    transition: color 0.3s ease;
  }

  .footer-links a:hover { color: rgba(255,255,255,0.8); }

  .footer-copy {
    font-size: 0.75rem;
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 12px;
  }

  /* ========== RESPONSIVE ========== */
  @media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-visual { order: -1; }
    .hero-product { max-width: 500px; margin: 0 auto; }
    .midnight-inner { grid-template-columns: 1fr; text-align: center; padding: 60px 20px; }
    .midnight-visual { order: -1; }
    .midnight-emphasis { text-align: left; }
    .midnight-big-title { font-size: clamp(2.4rem, 6vw, 3.5rem); }
    .solution-icon-bridge { margin-bottom: 32px; }
    .bridge-line { max-width: 60px; }
    .solution-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .workflow-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .workflow-steps::before { display: none; }
  }

  @media (max-width: 768px) {
    .nav { padding: 16px 20px; }
    .nav.scrolled { padding: 12px 20px; }
    .hero { padding: 120px 20px 60px; }
    .problem, .solution, .midnight, .how-it-works, .testimonials, .integrations, .cta {
      padding: clamp(60px, 8vw, 100px) 20px;
    }
    .testimonials-grid { grid-template-columns: 1fr; }
    .problem-timeline { flex-direction: column; gap: 12px; }
    .timeline-arrow { transform: rotate(90deg); }
    .cta-layout { grid-template-columns: 1fr; gap: 40px; }
    .cta-copy { text-align: center; }
    .cta-trust-signals { align-items: center; }
    .cta-form { grid-template-columns: 1fr; }
    .cta-form-card { padding: 32px 24px; }
    .footer { padding: 30px 20px; flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 20px; }
    .midnight-scroll-wrapper { height: 350vh; }
    .midnight-phone { width: 240px; height: 440px; }
    .product-body { grid-template-columns: 1fr; }
    .product-doc { display: none; }
    .toolbar-tabs { display: none; }
  }

  @media (max-width: 480px) {
    .nav-cta span { display: none; }
    .nav-cta { padding: 10px 14px; }
    .solution-card { padding: 28px 24px; }
    .testimonial-card { padding: 28px 24px; }
    .workflow-steps { grid-template-columns: 1fr; }
    .product-analysis { padding: 12px; }
  }