    /* Prevent iOS zoom on input focus */
    @media screen and (max-width: 768px) {
      input, select, textarea {
        font-size: 16px;
      }
    }

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

    :root {
      --primary: #1E3A5F;
      --accent: #00D4AA;
      --accent-dark: #00a88a;
      --secondary: #FF6B35;
      --bg: #F8FAFC;
      --text: #1A1A2E;
      --text-light: #64748b;
      --card-bg: #ffffff;
      --border: #e2e8f0;
      --danger: #ef4444;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      padding-top: 36px;
    }

    .mono {
      font-family: 'JetBrains Mono', monospace;
    }

    /* Navigation */
    .nav {
      position: fixed;
      top: 36px;
      left: 0;
      right: 0;
      z-index: 100;
      background: rgba(30, 58, 95, 0.97);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      padding: 16px 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .nav-logo {
      height: 36px;
      filter: brightness(0) invert(1);
    }

    .nav-title {
      font-size: 1.4rem;
      font-weight: 800;
      color: white;
    }

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

    .nav-links a {
      color: rgba(255,255,255,0.85);
      text-decoration: none;
      font-weight: 500;
      font-size: 0.9rem;
      transition: color 0.2s;
    }

    .nav-links a:hover,
    .nav-links a.active {
      color: var(--accent);
    }

    .nav-cta {
      background: var(--accent);
      color: var(--primary) !important;
      padding: 10px 24px;
      border-radius: 8px;
      font-weight: 700;
    }

    .nav-cta:hover {
      background: var(--accent-dark);
    }

    /* Hero Section */
    .hero {
      padding: 160px 40px 100px;
      position: relative;
      overflow: visible;
    }

    /* Video container - clips the video while allowing hero content to overflow */
    .hero-video-container {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      overflow: hidden;
      z-index: 0;
    }

    .hero-video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Gradient overlay - covers entire hero */
    .hero::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background:
        linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(15, 39, 68, 0.75) 100%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
      pointer-events: none;
      z-index: 1;
    }

    .hero-content {
      position: relative;
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
      z-index: 2;
    }

    .hero-text h1 {
      font-size: 3.2rem;
      font-weight: 800;
      color: white;
      line-height: 1.1;
      margin-bottom: 24px;
    }

    .hero-text h1 .highlight {
      color: var(--accent);
    }

    .hero-text .tagline {
      font-size: 1.25rem;
      color: rgba(255,255,255,0.7);
      margin-bottom: 24px;
      font-family: 'JetBrains Mono', monospace;
    }

    .hero-text p {
      font-size: 1.125rem;
      color: rgba(255,255,255,0.8);
      margin-bottom: 32px;
      max-width: 500px;
    }

    .cta-buttons {
      display: flex;
      gap: 16px;
      margin-bottom: 40px;
    }

    .btn-primary {
      background: var(--accent);
      color: var(--primary);
      padding: 16px 32px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 700;
      font-size: 1rem;
      transition: all 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .btn-primary:hover {
      background: var(--accent-dark);
      transform: translateY(-2px);
    }

    .btn-secondary {
      background: transparent;
      color: white;
      padding: 16px 32px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      font-size: 1rem;
      border: 2px solid rgba(255,255,255,0.3);
      transition: all 0.2s;
    }

    .btn-secondary:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    /* Hero Chart Display */
    .hero-chart {
      background: rgba(255,255,255,0.05);
      border-radius: 16px;
      padding: 24px;
      border: 1px solid rgba(255,255,255,0.1);
      -webkit-backdrop-filter: blur(20px);
      backdrop-filter: blur(20px);
    }

    .hero-chart-title {
      color: rgba(255,255,255,0.9);
      font-weight: 700;
      font-size: 1rem;
      margin-bottom: 8px;
    }

    .hero-chart-subtitle {
      color: rgba(255,255,255,0.5);
      font-size: 0.8rem;
      margin-bottom: 20px;
    }

    .hero-chart svg {
      width: 100%;
      height: 200px;
    }

    .hero-chart-wrapper {
      display: flex;
      flex-direction: column;
    }

    .hero-chart-stats {
      display: flex;
      gap: 24px;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid rgba(255,255,255,0.1);
      justify-content: center;
    }

    .hero-stat {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .hero-stat-value {
      color: var(--accent);
      font-size: 1.5rem;
      font-weight: 800;
      transition: color 0.3s ease;
    }

    .hero-stat-label {
      color: rgba(255,255,255,0.5);
      font-size: 0.7rem;
      text-transform: uppercase;
      margin-top: 4px;
    }

    /* Interactive Chart Controls */
    .hero-chart-controls {
      display: flex;
      gap: 12px;
      margin-top: 20px;
      justify-content: center;
      align-items: center;
      position: relative;
      z-index: 100;
      isolation: isolate;  /* Creates new stacking context for select dropdowns */
    }

    .chart-dropdown {
      position: relative;
      flex-shrink: 0;
    }

    .chart-dropdown select {
      appearance: none;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 6px;
      padding: 8px 32px 8px 12px;
      color: white;
      font-size: 0.8rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
      height: 36px;
      box-sizing: border-box;
      width: auto;
      min-width: 80px;  /* Auto-width but don't shrink too small */
    }

    .chart-dropdown select:hover {
      background: rgba(255,255,255,0.15);
      border-color: rgba(255,255,255,0.3);
    }

    .chart-dropdown select:focus {
      outline: none;
      border-color: var(--accent);
    }

    .chart-dropdown::after {
      content: '';
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 5px solid rgba(255,255,255,0.6);
      pointer-events: none;
    }

    .chart-dropdown option {
      background: var(--primary);
      color: white;
    }

    /* Custom theme dropdown */
    .theme-dropdown {
      position: relative;
      flex-shrink: 0;
    }

    .theme-dropdown-trigger {
      appearance: none;
      background: #00D4AA;
      border: 2px solid rgba(255,255,255,0.4);
      border-radius: 6px;
      width: 36px;
      height: 36px;
      cursor: pointer;
      transition: all 0.2s;
      box-sizing: border-box;
    }

    .theme-dropdown-trigger:hover {
      filter: brightness(1.1);
      border-color: rgba(255,255,255,0.7);
      transform: scale(1.05);
    }

    .theme-dropdown-menu {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      margin-top: 8px;
      background: rgba(15, 25, 40, 0.75);
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      backdrop-filter: blur(16px) saturate(180%);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 8px;
      padding: 8px;
      z-index: 100;
      display: none;
      box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }

    .theme-dropdown-menu.open {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
    }

    .theme-dropdown-menu.above {
      top: auto;
      bottom: 100%;
      margin-top: 0;
      margin-bottom: 8px;
    }

    .theme-dropdown-item {
      width: 28px;
      height: 28px;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.15s;
      border: 2px solid transparent;
    }

    .theme-dropdown-item:hover {
      filter: brightness(1.15);
      transform: scale(1.1);
    }

    .theme-dropdown-item.selected {
      border-color: rgba(255,255,255,0.8);
      box-shadow: 0 0 8px rgba(255,255,255,0.3);
    }

    /* Custom chart type dropdown */
    .chart-type-dropdown {
      position: relative;
      flex-shrink: 0;
    }

    .chart-type-dropdown-trigger {
      appearance: none;
      background: rgba(15, 25, 40, 0.5);
      -webkit-backdrop-filter: blur(12px) saturate(150%);
      backdrop-filter: blur(12px) saturate(150%);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 6px;
      padding: 0 32px 0 12px;
      color: white;
      font-size: 0.8rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
      height: 36px;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      white-space: nowrap;
    }

    .chart-type-dropdown-trigger:hover {
      background: rgba(255,255,255,0.15);
      border-color: rgba(255,255,255,0.3);
    }

    .chart-type-dropdown::after {
      content: '';
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 5px solid rgba(255,255,255,0.6);
      pointer-events: none;
    }

    .chart-type-dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      margin-top: 8px;
      background: rgba(15, 25, 40, 0.75);
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      backdrop-filter: blur(16px) saturate(180%);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 8px;
      padding: 4px;
      z-index: 200;
      display: none;
      box-shadow: 0 8px 24px rgba(0,0,0,0.3);
      min-width: 100%;
    }

    .chart-type-dropdown-menu.open {
      display: flex;
      flex-direction: column;
    }

    .chart-type-dropdown-menu.above {
      top: auto;
      bottom: 100%;
      margin-top: 0;
      margin-bottom: 8px;
    }

    .chart-type-dropdown.above::after {
      border-top: none;
      border-bottom: 5px solid rgba(255,255,255,0.6);
    }

    .chart-type-dropdown-item {
      padding: 8px 12px;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.15s;
      color: rgba(255,255,255,0.8);
      font-size: 0.8rem;
      white-space: nowrap;
    }

    .chart-type-dropdown-item:hover {
      background: rgba(255,255,255,0.1);
      color: white;
    }

    .chart-type-dropdown-item.selected {
      background: rgba(0,212,170,0.2);
      color: var(--accent);
    }

    /* Glantt color pickers (skin tone + nipple) */
    .glantt-color-pickers {
      display: none;
      gap: 8px;
      align-items: center;
    }
    .glantt-color-pickers.visible {
      display: flex;
    }
    .color-picker-dropdown {
      position: relative;
      flex-shrink: 0;
    }
    .color-picker-trigger {
      appearance: none;
      border: 2px solid rgba(255,255,255,0.4);
      border-radius: 6px;
      width: 36px;
      height: 36px;
      cursor: pointer;
      transition: all 0.2s;
      box-sizing: border-box;
    }
    .color-picker-trigger:hover {
      filter: brightness(1.1);
      border-color: rgba(255,255,255,0.7);
      transform: scale(1.05);
    }
    .color-picker-menu {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      margin-top: 8px;
      background: var(--primary);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 8px;
      padding: 8px;
      z-index: 100;
      display: none;
      box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }
    .color-picker-menu.open {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
    }

    .color-picker-menu.above {
      top: auto;
      bottom: 100%;
      margin-top: 0;
      margin-bottom: 8px;
    }
    .color-picker-item {
      width: 28px;
      height: 28px;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.15s;
      border: 2px solid transparent;
    }
    .color-picker-item:hover {
      filter: brightness(1.15);
      transform: scale(1.1);
    }
    .color-picker-item.selected {
      border-color: rgba(255,255,255,0.8);
      box-shadow: 0 0 8px rgba(255,255,255,0.3);
    }

    /* SFW/NSFW custom dropdown */
    .sfw-dropdown {
      position: relative;
      flex-shrink: 0;
    }
    .sfw-dropdown-trigger {
      appearance: none;
      background: rgba(15, 25, 40, 0.5);
      -webkit-backdrop-filter: blur(12px) saturate(150%);
      backdrop-filter: blur(12px) saturate(150%);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 6px;
      color: rgba(255,255,255,0.9);
      font-family: inherit;
      font-size: 0.8rem;
      font-weight: 600;
      padding: 0 28px 0 12px;
      height: 36px;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      white-space: nowrap;
      box-sizing: border-box;
    }
    .sfw-dropdown-trigger:hover {
      background-color: rgba(255,255,255,0.15);
      border-color: rgba(255,255,255,0.3);
    }
    .sfw-dropdown::after {
      content: '';
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 5px solid rgba(255,255,255,0.6);
      pointer-events: none;
    }
    .sfw-dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      margin-top: 8px;
      background: rgba(15, 25, 40, 0.75);
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      backdrop-filter: blur(16px) saturate(180%);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 8px;
      padding: 4px;
      z-index: 200;
      display: none;
      box-shadow: 0 8px 24px rgba(0,0,0,0.3);
      min-width: 100%;
    }
    .sfw-dropdown-menu.open {
      display: flex;
      flex-direction: column;
    }

    .sfw-dropdown-menu.above {
      top: auto;
      bottom: 100%;
      margin-top: 0;
      margin-bottom: 8px;
    }

    .sfw-dropdown.above::after {
      border-top: none;
      border-bottom: 5px solid rgba(255,255,255,0.6);
    }
    .sfw-dropdown-item {
      padding: 8px 12px;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.15s;
      color: rgba(255,255,255,0.8);
      font-size: 0.8rem;
      white-space: nowrap;
    }
    .sfw-dropdown-item:hover {
      background: rgba(255,255,255,0.1);
      color: white;
    }
    .sfw-dropdown-item.selected {
      background: rgba(0,212,170,0.2);
      color: var(--accent);
    }

    .play-pause-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(15, 25, 40, 0.5);
      -webkit-backdrop-filter: blur(12px) saturate(150%);
      backdrop-filter: blur(12px) saturate(150%);
      border: 1px solid rgba(255,255,255,0.15);
      color: rgba(255, 255, 255, 0.7);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      flex-shrink: 0;
    }

    .play-pause-btn:hover {
      background: rgba(255,255,255,0.2);
      color: #fff;
      transform: scale(1.05);
    }

    .play-pause-btn svg {
      width: 14px;
      height: 14px;
      fill: currentColor;
    }

    .play-pause-btn.playing .play-icon { display: none; }
    .play-pause-btn.playing .pause-icon { display: block; }
    .play-pause-btn:not(.playing) .play-icon { display: block; }
    .play-pause-btn:not(.playing) .pause-icon { display: none; }

    .share-btn {
      position: absolute;
      top: 16px;
      right: 60px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      color: rgba(255, 255, 255, 0.7);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      z-index: 10;
    }

    .share-btn:hover {
      background: rgba(255,255,255,0.2);
      color: #fff;
      transform: scale(1.05);
    }

    .share-btn svg {
      width: 16px;
      height: 16px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* Unified Chart Area - FIXED container size */
    .chart-area {
      position: relative;
      width: 100%;
      height: 280px;
      overflow: hidden;
    }

    /* All chart containers fill the fixed area */
    .chart-area > div {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px;
      gap: 16px;
    }

    /* Allow all flex children to shrink properly */
    .chart-area > div > * {
      min-width: 0;
      min-height: 0;
      flex-shrink: 1;
    }

    /* All canvases scale to fit */
    .chart-area canvas {
      max-width: 100%;
      max-height: 100%;
      flex-shrink: 1;
    }

    /* Line chart container - all layers must be absolutely positioned to align */
    .hero-chart-svg-container {
      position: relative;
      flex: 1;
      height: 100%;
    }

    .hero-chart-svg-container svg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    /* Grid lines */
    .chart-grid-line {
      stroke: rgba(255, 255, 255, 0.08);
      stroke-width: 1;
    }

    /* HTML-based dots container */
    .chart-dots-container {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      pointer-events: none;
      z-index: 2;
    }

    /* HTML-based dots (not SVG) to avoid aspect ratio distortion */
    .chart-dot {
      position: absolute;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: var(--accent);
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.2s, transform 0.15s ease-out;
      transform: translate(-50%, -50%) scale(1);
      pointer-events: auto;
      box-shadow: 0 0 10px var(--accent);
    }

    .chart-dot.active {
      opacity: 1;
    }

    /* Hero Pie Chart */
    .hero-pie-container canvas {
      width: auto;
      height: 100%;
      max-height: 100%;
      max-width: 100%;
      aspect-ratio: 1;
    }

    .pie-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
      max-width: 100px;
      overflow: hidden;
    }

    .pie-total {
      font-size: 2.2rem;
      font-weight: 800;
      color: var(--accent);
      line-height: 1;
    }

    .pie-total-label {
      font-size: 0.7rem;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 12px;
    }

    .pie-legend {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .pie-legend-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.75rem;
    }

    .pie-legend-swatch {
      width: 10px;
      height: 10px;
      border-radius: 3px;
      flex-shrink: 0;
    }

    .pie-legend-value {
      font-weight: 700;
      color: white;
      min-width: 36px;
    }

    .pie-legend-label {
      color: rgba(255,255,255,0.6);
    }

    /* Bar Chart */
    .hero-bar-container canvas {
      width: auto;
      height: 100%;
      max-height: 100%;
      max-width: 100%;
      aspect-ratio: 16 / 9;
    }

    .bar-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
      max-width: 100px;
      overflow: hidden;
    }

    .bar-total {
      font-size: 2.2rem;
      font-weight: 800;
      color: var(--accent);
      line-height: 1;
    }

    .bar-total-label {
      font-size: 0.7rem;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 12px;
    }

    .bar-legend {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .bar-legend-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.75rem;
    }

    .bar-legend-swatch {
      width: 10px;
      height: 10px;
      border-radius: 3px;
      flex-shrink: 0;
    }

    .bar-legend-value {
      font-weight: 700;
      color: white;
      min-width: 36px;
    }

    .bar-legend-label {
      color: rgba(255,255,255,0.6);
    }

    /* Möbius Chart */
    .hero-mobius-container canvas {
      width: auto;
      height: 100%;
      max-height: 100%;
      max-width: 100%;
      aspect-ratio: 16 / 9;
    }

    .mobius-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
      max-width: 100px;
      overflow: hidden;
    }

    .mobius-total {
      font-size: 2.2rem;
      font-weight: 800;
      color: var(--accent);
      line-height: 1;
    }

    .mobius-total-label {
      font-size: 0.7rem;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 12px;
    }

    .mobius-legend {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .mobius-legend-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.75rem;
    }

    .mobius-legend-swatch {
      width: 10px;
      height: 10px;
      border-radius: 3px;
      flex-shrink: 0;
    }

    .mobius-legend-value {
      font-weight: 700;
      color: white;
      min-width: 36px;
    }

    .mobius-legend-label {
      color: rgba(255,255,255,0.6);
    }

    /* Loop Chart */
    .hero-loop-container canvas {
      width: auto;
      height: 100%;
      max-height: 100%;
      max-width: 100%;
      aspect-ratio: 16 / 9;
    }

    .loop-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
      max-width: 100px;
      overflow: hidden;
    }

    .loop-total {
      font-size: 2.2rem;
      font-weight: 800;
      color: var(--accent);
      line-height: 1;
    }

    .loop-total-label {
      font-size: 0.7rem;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 12px;
    }

    .loop-growth {
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--accent);
      line-height: 1;
    }

    .loop-growth-label {
      font-size: 0.7rem;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    /* Distraction Chart */
    .hero-distraction-container canvas {
      width: auto;
      height: 100%;
      max-height: 100%;
      aspect-ratio: 1;
    }

    #distraction-svg-container {
      height: 100%;
      max-height: 100%;
      max-width: 100%;
      aspect-ratio: 1;
    }

    #distraction-svg-container svg {
      width: 100%;
      height: 100%;
    }

    .distraction-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
      max-width: 100px;
      overflow: hidden;
    }

    .distraction-total {
      font-size: 2.2rem;
      font-weight: 800;
      color: var(--accent);
      line-height: 1;
    }

    .distraction-total-label {
      font-size: 0.7rem;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 12px;
    }

    .distraction-metric {
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--accent);
      line-height: 1;
    }

    .distraction-metric-label {
      font-size: 0.7rem;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    /* Drawing Modal */
    .drawing-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.85);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .drawing-modal-content {
      background: linear-gradient(135deg, #1E3A5F 0%, #2d4a6f 100%);
      border-radius: 16px;
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
      max-width: 480px;
      width: 90%;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .drawing-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .drawing-modal-header h3 {
      color: white;
      font-size: 1.1rem;
      font-weight: 700;
      margin: 0;
    }

    .drawing-modal-close {
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.6);
      font-size: 1.8rem;
      cursor: pointer;
      line-height: 1;
      padding: 0;
      transition: color 0.2s;
    }

    .drawing-modal-close:hover {
      color: white;
    }

    .drawing-modal-body {
      padding: 20px;
    }

    .drawing-title-input {
      width: 100%;
      padding: 10px 14px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 8px;
      background: rgba(0, 0, 0, 0.3);
      color: white;
      font-size: 0.95rem;
      margin-bottom: 16px;
      box-sizing: border-box;
    }

    .drawing-title-input::placeholder {
      color: rgba(255, 255, 255, 0.4);
    }

    .drawing-title-input:focus {
      outline: none;
      border-color: var(--accent);
    }

    .drawing-canvas-wrapper {
      position: relative;
      background: rgba(0, 0, 0, 0.3);
      border-radius: 8px;
      overflow: hidden;
      /* Use aspect-ratio to match canvas dimensions (437.5:216) */
      aspect-ratio: 437.5 / 216;
    }

    .drawing-canvas-wrapper canvas {
      display: block;
      width: 100%;
      height: 100%;
      cursor: crosshair;
      touch-action: none;
    }

    .drawing-canvas-wrapper canvas.hidden {
      visibility: hidden;
      position: absolute;
    }

    .drawing-preview-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    .drawing-preview-container svg {
      width: 100%;
      height: 100%;
    }

    .drawing-metrics-overlay {
      position: absolute;
      bottom: 12px;
      right: 12px;
      background: rgba(0, 0, 0, 0.7);
      border-radius: 8px;
      padding: 8px 12px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .drawing-metric-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
    }

    .drawing-metric-label {
      font-size: 0.65rem;
      color: rgba(255, 255, 255, 0.5);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .drawing-metric-value {
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--accent);
    }

    .drawing-instructions {
      text-align: center;
      margin-top: 12px;
    }

    .drawing-instructions p {
      color: rgba(255, 255, 255, 0.6);
      font-size: 0.85rem;
      margin: 0;
    }

    .drawing-modal-footer {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      padding: 16px 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .drawing-btn {
      padding: 10px 20px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.2s;
      border: none;
    }

    .drawing-btn-clear {
      background: rgba(255, 255, 255, 0.1);
      color: white;
    }

    .drawing-btn-clear:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    .drawing-btn-replay {
      background: rgba(255, 255, 255, 0.15);
      color: white;
      border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .drawing-btn-replay:hover:not(:disabled) {
      background: rgba(255, 255, 255, 0.25);
    }

    .drawing-btn-replay:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    .drawing-btn-save {
      background: var(--accent);
      color: white;
    }

    .drawing-btn-save:hover:not(:disabled) {
      filter: brightness(1.1);
      transform: translateY(-1px);
    }

    .drawing-btn-save:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    /* Waveform Chart */
    .hero-waveform-container canvas {
      width: auto;
      height: 100%;
      max-height: 100%;
      max-width: 100%;
      aspect-ratio: 16 / 9;
    }

    .waveform-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
      max-width: 100px;
      overflow: hidden;
    }

    .waveform-style {
      font-size: 1.2rem;
      font-weight: 800;
      color: var(--accent);
      line-height: 1;
    }

    .waveform-style-label {
      font-size: 0.7rem;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 12px;
    }

    .waveform-status {
      font-size: 1rem;
      font-weight: 700;
      color: var(--accent);
      line-height: 1;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .waveform-status-label {
      font-size: 0.7rem;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    .waveform-pulse {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      animation: pulse 0.5s ease-in-out infinite alternate;
    }

    @keyframes pulse {
      0% { opacity: 0.4; transform: scale(0.8); }
      100% { opacity: 1; transform: scale(1.2); }
    }

    /* Glantt Chart (Gantt parody) */
    #glantt-chart {
      flex: 1;
      height: 100%;
      max-height: 100%;
      min-width: 0;
    }

    #glantt-chart svg {
      width: 100%;
      height: 100%;
    }

    .glantt-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
      text-align: right;
      max-width: 80px;
      flex-shrink: 0;
    }

    .glantt-timeline {
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--accent);
      line-height: 1;
    }

    .glantt-timeline-label {
      font-size: 0.7rem;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 12px;
    }

    .glantt-progress {
      font-size: 1.8rem;
      font-weight: 800;
      color: var(--accent);
      line-height: 1;
    }

    .glantt-progress-label {
      font-size: 0.7rem;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    /* Glantt controls (replaces stats when glantt is shown) */
    .hero-glantt-controls {
      display: flex;
      align-items: center;
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid rgba(255,255,255,0.1);
      height: 60px;
      overflow: hidden;
    }

    /* Floating Number Animation */
    .floating-number {
      position: absolute;
      pointer-events: none;
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      font-size: 0.9rem;
      color: var(--accent);
      text-shadow: 0 2px 10px rgba(0, 212, 170, 0.5);
      animation: floatUp 1.2s ease-out forwards;
      white-space: nowrap;
    }

    @keyframes floatUp {
      0% {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
      50% {
        opacity: 1;
      }
      100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.8);
      }
    }

    /* Chart line animation */
    .chart-line {
      stroke-dasharray: 2000;
      stroke-dashoffset: 2000;
      animation: drawLine 3s ease-out forwards;
    }

    .chart-fill {
      opacity: 1;
    }

    .chart-fade-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(to bottom,
        transparent 0%,
        transparent 20%,
        rgba(30, 58, 95, 0.3) 50%,
        rgba(30, 58, 95, 0.7) 75%,
        rgba(30, 58, 95, 1) 95%
      );
      pointer-events: none;
      z-index: 1;
    }

    .chart-line-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 2;
    }

    .chart-line-top {
      stroke-dasharray: 2000;
      stroke-dashoffset: 2000;
      animation: drawLine 3s ease-out forwards;
    }

    @keyframes drawLine {
      from {
        stroke-dashoffset: 2000;
      }
      to {
        stroke-dashoffset: 0;
      }
    }

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

    /* Metric transition */
    .hero-chart-stats {
      transition: opacity 0.3s ease;
    }

    .hero-chart-stats.transitioning {
      opacity: 0;
    }

    /* Flip Card Styles */
    .flip-card-container {
      perspective: 1000px;
      position: relative;
    }

    .flip-card {
      position: relative;
      width: 100%;
      transition: transform 0.6s ease;
      transform-style: preserve-3d;
    }

    .flip-card.flipped {
      transform: rotateY(180deg);
    }

    .flip-card-front,
    .flip-card-back {
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    .flip-card-front {
      position: relative;
    }

    .flip-card-back {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 100%;
      transform: rotateY(180deg);
      background: rgba(0, 0, 0, 0.3);
      border-radius: 12px;
      padding: 16px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
    }

    .flip-back-chart {
      position: absolute;
      top: 45%;
      left: 0;
      right: 0;
      height: 65%;
      transform: translateY(-50%);
      pointer-events: none;
      z-index: 0;
    }

    .flip-card-back-title {
      font-weight: 700;
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
      position: relative;
      z-index: 1;
    }

    .flip-card-back-title::before {
      content: '📊';
    }

    .metrics-table-container {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      position: relative;
      z-index: 1;
    }

    .metrics-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.8rem;
    }

    .metrics-table th {
      text-align: left;
      color: rgba(255, 255, 255, 0.5);
      font-weight: 600;
      padding: 8px 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      text-transform: uppercase;
      font-size: 0.65rem;
      letter-spacing: 0.5px;
    }

    .metrics-table td {
      padding: 10px 12px;
      color: rgba(255, 255, 255, 0.8);
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .metrics-table tr:hover td {
      background: rgba(255, 255, 255, 0.05);
    }

    .metrics-table .metric-actual {
      color: #ef4444;
      font-weight: 600;
    }

    .metrics-table .metric-displayed {
      color: #00D4AA;
      font-weight: 600;
    }

    .metrics-table .metric-adjustment {
      color: rgba(255, 255, 255, 0.4);
      font-size: 0.7rem;
    }

    .flip-btn {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: rgba(255, 255, 255, 0.7);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      z-index: 10;
    }

    .flip-btn:hover {
      background: rgba(255, 255, 255, 0.2);
      color: #fff;
      transform: scale(1.05);
    }

    .flip-btn svg {
      width: 18px;
      height: 18px;
      transition: transform 0.3s ease;
    }

    .flip-btn.flipped svg {
      transform: rotateY(180deg);
    }

    /* Demo Section - Dark Theme */
    .demos {
      padding: 100px 40px;
      background: linear-gradient(135deg, #0f1729 0%, #1a2744 100%);
    }

    .demos-content {
      max-width: 1200px;
      margin: 0 auto;
    }

    .demos .section-header {
      text-align: center;
      margin-bottom: 64px;
    }

    .demos .section-header h2 {
      font-size: 2.5rem;
      font-weight: 800;
      margin-bottom: 16px;
      color: white;
    }

    .demos .section-header p {
      font-size: 1.125rem;
      color: rgba(255, 255, 255, 0.7);
      max-width: 600px;
      margin: 0 auto;
    }

    .section-header {
      text-align: center;
      margin-bottom: 64px;
    }

    .section-header h2 {
      font-size: 2.5rem;
      font-weight: 800;
      margin-bottom: 16px;
      color: var(--primary);
    }

    .section-header p {
      font-size: 1.125rem;
      color: var(--text-light);
      max-width: 600px;
      margin: 0 auto;
    }

    .demo-grid {
      display: grid;
      gap: 32px;
    }

    .demo-card {
      background: rgba(255, 255, 255, 0.03);
      border-radius: 16px;
      overflow: visible;
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }

    .demo-card-text h3 {
      color: white;
      font-size: 1.4rem;
      margin-bottom: 12px;
      font-weight: 700;
    }

    .demo-card-text p {
      color: rgba(255, 255, 255, 0.7);
      font-size: 0.95rem;
      line-height: 1.6;
    }

    .demos .demo-disclaimer {
      text-align: center;
      font-size: 0.75rem;
      color: rgba(255, 255, 255, 0.5);
      margin-top: 32px;
    }

    .demo-card-header {
      padding: 20px 24px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .demo-card-title {
      font-weight: 700;
      font-size: 1.1rem;
      color: var(--primary);
    }

    .demo-card-badge {
      font-size: 0.7rem;
      padding: 6px 12px;
      border-radius: 20px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .badge-disaster { background: #fef2f2; color: var(--danger); }
    .badge-failing { background: #fff7ed; color: #ea580c; }
    .badge-dead { background: #fef2f2; color: #991b1b; }

    .demo-card-body {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }

    .demo-input {
      padding: 24px;
      background: #f8fafc;
      border-right: 1px solid var(--border);
    }

    .demo-input-label {
      font-size: 0.7rem;
      color: var(--text-light);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 12px;
      font-weight: 600;
    }

    .demo-input pre {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.75rem;
      line-height: 1.6;
      color: var(--text);
      white-space: pre-wrap;
      margin: 0;
    }

    .demo-input .bad-number {
      color: var(--danger);
      font-weight: 700;
    }

    .demo-output {
      padding: 24px;
    }

    .demo-output-label {
      font-size: 0.7rem;
      color: var(--text-light);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 12px;
      font-weight: 600;
    }

    .demo-chart {
      height: 120px;
      margin-bottom: 16px;
    }

    .demo-chart svg {
      width: 100%;
      height: 100%;
    }

    .demo-chart-card {
      min-width: 300px;
      max-width: 400px;
    }

    .demo-chart-card .an-card {
      box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    }

    .demo-stats {
      display: flex;
      gap: 20px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    .demo-stat-value {
      font-size: 1.1rem;
      font-weight: 800;
      color: var(--accent);
    }

    .demo-stat-label {
      font-size: 0.65rem;
      color: var(--text-light);
      text-transform: uppercase;
    }

    /* Theme Gallery */
    .themes {
      padding: 100px 40px;
      background: white;
    }

    .themes-content {
      max-width: 1200px;
      margin: 0 auto;
    }

    .theme-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .theme-card {
      background: var(--bg);
      border-radius: 12px;
      padding: 20px;
      text-align: center;
      border: 1px solid var(--border);
      transition: all 0.2s;
    }

    .theme-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .theme-card svg {
      width: 100%;
      height: 80px;
      margin-bottom: 12px;
    }

    .theme-card-name {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text);
    }

    .theme-note {
      text-align: center;
      font-size: 0.85rem;
      color: var(--text-light);
      margin-top: 24px;
    }

    /* Value Props */
    .value-props {
      padding: 100px 40px;
      background: var(--primary);
      color: white;
    }

    .value-props-content {
      max-width: 1000px;
      margin: 0 auto;
    }

    .value-props .section-header h2 {
      color: white;
    }

    .value-props .section-header p {
      color: rgba(255,255,255,0.7);
    }

    .value-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 32px;
      text-align: center;
    }

    .value-item {
      padding: 32px;
    }

    .value-icon {
      font-size: 3rem;
      margin-bottom: 20px;
    }

    .value-title {
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 12px;
    }

    .value-desc {
      color: rgba(255,255,255,0.7);
      font-size: 0.95rem;
      line-height: 1.7;
    }

    /* How It Works */
    .how-it-works {
      padding: 100px 40px;
      background: var(--bg);
    }

    .how-it-works-content {
      max-width: 900px;
      margin: 0 auto;
    }

    .steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 40px;
      margin-top: 64px;
    }

    .step {
      text-align: center;
    }

    .step-number {
      width: 64px;
      height: 64px;
      background: var(--accent);
      color: var(--primary);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      font-weight: 800;
      margin: 0 auto 20px;
    }

    .step h3 {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 12px;
      color: var(--primary);
    }

    .step p {
      color: var(--text-light);
      font-size: 0.9rem;
      line-height: 1.7;
    }

    /* Pricing */
    .pricing {
      padding: 100px 40px;
      background: white;
    }

    .pricing-content {
      max-width: 1200px;
      margin: 0 auto;
    }

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

    .pricing-card {
      background: var(--bg);
      border-radius: 16px;
      padding: 32px;
      border: 1px solid var(--border);
      position: relative;
    }

    .pricing-card.featured {
      border: 2px solid var(--accent);
      transform: scale(1.05);
      background: white;
    }

    .pricing-card.featured::before {
      content: 'MOST POPULAR';
      position: absolute;
      top: -12px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--accent);
      color: var(--primary);
      padding: 4px 16px;
      border-radius: 20px;
      font-size: 0.625rem;
      font-weight: 800;
      letter-spacing: 0.5px;
    }

    .pricing-tier {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 8px;
    }

    .pricing-price {
      font-size: 2.5rem;
      font-weight: 800;
      color: var(--primary);
      margin-bottom: 4px;
    }

    .pricing-price span {
      font-size: 1rem;
      font-weight: 500;
      color: var(--text-light);
    }

    .pricing-note {
      font-size: 0.75rem;
      color: var(--text-light);
      margin-bottom: 24px;
      font-style: italic;
    }

    .pricing-features {
      list-style: none;
      margin-bottom: 32px;
    }

    .pricing-features li {
      padding: 10px 0;
      font-size: 0.875rem;
      color: var(--text);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: flex-start;
      gap: 8px;
    }

    .pricing-features li::before {
      content: '✓';
      color: var(--accent);
      font-weight: 700;
    }

    .pricing-cta {
      display: block;
      text-align: center;
      padding: 14px 24px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 700;
      transition: all 0.2s;
    }

    .pricing-card.featured .pricing-cta {
      background: var(--accent);
      color: var(--primary);
    }

    .pricing-card:not(.featured) .pricing-cta {
      background: transparent;
      color: var(--primary);
      border: 2px solid var(--primary);
    }

    /* Testimonials */
    .testimonials {
      background: #f1f5f9;
      padding: 100px 40px;
    }

    .testimonials-content {
      max-width: 1200px;
      margin: 0 auto;
    }

    .testimonials-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 24px;
    }

    .testimonial-card {
      background: white;
      border-radius: 16px;
      padding: 28px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    }

    .testimonial-quote {
      font-size: 0.95rem;
      color: var(--text);
      line-height: 1.8;
      margin-bottom: 20px;
      font-style: italic;
    }

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

    .author-avatar {
      width: 44px;
      height: 44px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 700;
      font-size: 1rem;
    }

    .author-info h4 {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text);
    }

    .author-info p {
      font-size: 0.75rem;
      color: var(--text-light);
    }

    /* CTA Section */
    .cta-section {
      background: linear-gradient(135deg, var(--primary) 0%, #0f2744 100%);
      padding: 100px 40px;
      text-align: center;
      color: white;
    }

    .cta-section h2 {
      font-size: 2.5rem;
      font-weight: 800;
      margin-bottom: 16px;
    }

    .cta-section p {
      font-size: 1.125rem;
      color: rgba(255,255,255,0.8);
      margin-bottom: 32px;
      max-width: 780px;
      margin-left: auto;
      margin-right: auto;
    }

    .cta-section .btn-primary {
      font-size: 1.125rem;
      padding: 18px 40px;
    }

    .cta-note {
      margin-top: 16px;
      font-size: 0.8rem;
      color: rgba(255,255,255,0.5);
      font-style: italic;
    }

    /* Footer */
    .footer {
      background: #0f172a;
      color: rgba(255,255,255,0.7);
      padding: 60px 40px 40px;
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 48px;
      margin-bottom: 48px;
    }

    .footer-brand h3 {
      color: white;
      font-size: 1.5rem;
      margin-bottom: 12px;
    }

    .footer-brand p {
      font-size: 0.875rem;
      line-height: 1.7;
      margin-bottom: 16px;
    }

    .footer-links h4 {
      color: white;
      font-size: 0.875rem;
      font-weight: 700;
      margin-bottom: 16px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .footer-links ul {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 10px;
    }

    .footer-links a {
      color: rgba(255,255,255,0.6);
      text-decoration: none;
      font-size: 0.875rem;
      transition: color 0.2s;
    }

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

    .footer-disclaimer {
      border-top: 1px solid rgba(255,255,255,0.1);
      padding-top: 32px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .footer-disclaimer p {
      font-size: 0.7rem;
      color: rgba(255,255,255,0.4);
      line-height: 1.8;
      margin-bottom: 8px;
    }

    /* Responsive */
    @media (max-width: 1100px) {
      .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
      }
      .pricing-card.featured {
        transform: none;
      }
      .theme-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 900px) {
      .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
      }
      .hero-text h1 {
        font-size: 2.5rem;
      }
      .cta-buttons {
        justify-content: center;
      }
      .hero-chart {
        max-width: 500px;
        margin: 0 auto;
      }
      .steps {
        grid-template-columns: 1fr;
        gap: 48px;
      }
      .value-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
      }
      .demo-card-body {
        grid-template-columns: 1fr;
      }
      .demo-input {
        border-right: none;
        border-bottom: 1px solid var(--border);
      }
      .footer-content {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 768px) {
      .nav {
        padding: 12px 20px;
      }
      .nav-links {
        display: none;
      }
      .hero {
        padding: 120px 20px 60px;
      }
      .demos, .themes, .pricing, .how-it-works, .value-props {
        padding: 60px 20px;
      }
      .theme-grid {
        grid-template-columns: 1fr;
      }
      .value-grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }
      .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
      }
      .hero-chart-controls {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
      }
      .chart-dropdown select {
        min-width: 70px;  /* Smaller minimum on mobile */
        font-size: 0.75rem;
        padding: 8px 28px 8px 10px;
      }
      /* Custom dropdown triggers stay as fixed size squares on mobile */
      .chart-type-dropdown-trigger {
        font-size: 0.7rem;
        padding: 0 24px 0 8px;
        height: 32px;
        min-width: 60px;
      }
      .chart-type-dropdown::after {
        right: 8px;
      }
      /* Demo cards stack on mobile */
      .demo-card {
        flex-direction: column !important;
        gap: 24px !important;
      }
      .demo-chart-card {
        flex: 1 1 auto !important;
        min-width: 100% !important;
        max-width: 100% !important;
      }
    }
