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

  :root {
    --red: #D01C1C;
    --red-dark: #A01212;
    --red-light: #FF2D2D;
    --black: #0A0A0A;
    --black-mid: #111111;
    --black-soft: #1A1A1A;
    --gray: #2A2A2A;
    --gray-mid: #3D3D3D;
    --gray-light: #6A6A6A;
    --white: #FFFFFF;
    --off-white: #F5F3F0;
    --cream: #FAF8F5;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.65;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 5%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nav-logo span {
    color: var(--red);
  }

  .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
  }

  .nav-links a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
    text-transform: uppercase;
  }

  .nav-links a:hover { color: var(--white); }

  .nav-cta {
    background: var(--red);
    color: var(--white) !important;
    padding: 9px 20px;
    border-radius: 2px;
    font-weight: 600 !important;
    color: var(--white);
    transition: background 0.2s !important;
  }

  .nav-cta {
    position: relative;
    overflow: hidden;
    transition: background 0.25s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s !important;
  }
  .nav-cta::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-15deg);
    opacity: 0;
  }
  .nav-cta:hover { background: var(--red-light) !important; color: var(--white) !important; transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(208,28,28,0.4) !important; }
  .nav-cta:hover::after { opacity: 1; animation: btnShimmer 0.6s ease forwards; }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
  }

  .nav-mobile-toggle:hover {
    color: var(--red);
  }

  /* SG PLUGIN DROPDOWN */
  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
  }

  .nav-dropdown-toggle:hover,
  .nav-dropdown:hover .nav-dropdown-toggle {
    color: var(--white);
  }

  .nav-dropdown-toggle svg {
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }

  .nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #141414;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    min-width: 260px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(208,28,28,0.12);
    z-index: 9999;
    /* invisible top padding bridges the gap between button and menu */
    padding: 18px 0 6px 0;
    margin-top: 0;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
  }

  @keyframes dropFade {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
  }

  .nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #141414;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: translateX(-50%) rotate(45deg);
  }

  .nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    text-decoration: none;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-dropdown-item:last-child { border-bottom: none; }

  .nav-dropdown-item:hover {
    background: rgba(208,28,28,0.1);
  }

  .nav-dropdown-icon {
    width: 34px;
    height: 34px;
    background: rgba(208,28,28,0.12);
    border: 1px solid rgba(208,28,28,0.25);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .nav-dropdown-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--red);
  }

  .nav-dropdown-text { flex: 1; }

  .nav-dropdown-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.3px;
    margin-bottom: 2px;
  }

  .nav-dropdown-desc {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.3px;
  }

  .nav-dropdown-dl {
    width: 28px;
    height: 28px;
    background: rgba(208,28,28,0.15);
    border: 1px solid rgba(208,28,28,0.3);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
  }

  .nav-dropdown-item:hover .nav-dropdown-dl {
    background: var(--red);
  }

  .nav-dropdown-dl svg {
    width: 13px;
    height: 13px;
    fill: rgba(255,255,255,0.7);
    transition: fill 0.2s;
  }

  .nav-dropdown-item:hover .nav-dropdown-dl svg {
    fill: #fff;
  }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-align: left;
    padding: 0;
    position: relative;
    overflow: hidden;
  }

  .hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 5% 80px;
    gap: 60px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
    perspective-origin: center center;
  }

  .holo-stack {
    position: relative;
    width: 100%;
    height: 520px;
  }

  .holo-card {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    will-change: transform, opacity;
    transition: none;
    backface-visibility: hidden;
  }

  .holo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    pointer-events: none;
    user-select: none;
  }

  .holo-card-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 4px 10px;
    border-radius: 2px;
    pointer-events: none;
  }

  .holo-label {
    position: absolute;
    bottom: -32px;
    left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .holo-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #D01C1C;
    box-shadow: 0 0 8px rgba(208,28,28,0.9);
    animation: hvbPulse 2s ease-in-out infinite;
  }

  .holo-label span {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
  }

  @media (max-width: 900px) {
    .hero-split {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 60px;
      padding: 120px 5% 60px;
    }
    .hero-left { align-items: center; }
    .holo-stack { height: 300px; }
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('https://images.unsplash.com/photo-1613977257363-707ba9348227?w=1800&q=90');
    background-size: cover;
    background-position: center 40%;
    filter: brightness(0.32) saturate(0.85);
  }

  .hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    filter: none;
    background:
      radial-gradient(ellipse 80% 60% at 50% 50%, rgba(208,28,28,0.18) 0%, transparent 65%),
      linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.65) 100%);
  }

  .hero-grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
      linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
  }

  /* Ensure all hero content floats above bg image */
  .hero-split, .hero-left, .hero-right, .hero-eyebrow, .hero h1, .hero-sub, .hero-actions, .hero-stats {
    position: relative;
    z-index: 3;
  }

  .hero-eyebrow {
    position: relative;
    z-index: 3;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 24px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .hero-eyebrow::before,
  .hero-eyebrow::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--red);
  }

  h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 8vw, 110px);
    line-height: 0.92;
    letter-spacing: 1px;
    margin-bottom: 28px;
    position: relative;
  }

  h1 em {
    font-style: normal;
    color: var(--red);
  }

  .hero-sub {
    position: relative;
    z-index: 2;
    font-size: clamp(16px, 1.8vw, 19px);
    color: rgba(255,255,255,0.55);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 48px;
    position: relative;
  }

  .hero-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
  }

  @keyframes btnShimmer {
    0%   { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(250%) skewX(-15deg); }
  }

  @keyframes btnIconBounce {
    0%, 100% { transform: translateY(0); }
    40%       { transform: translateY(3px); }
    70%       { transform: translateY(-2px); }
  }

  .btn-primary {
    background: var(--red);
    color: var(--white);
    padding: 15px 36px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition:
      background 0.25s ease,
      transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
      box-shadow 0.25s ease,
      letter-spacing 0.25s ease;
    box-shadow: 0 4px 16px rgba(208,28,28,0.3);
    cursor: pointer;
    border: none;
  }

  /* Shimmer sweep on hover */
  .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-15deg);
    opacity: 0;
    transition: opacity 0.1s;
  }

  .btn-primary:hover {
    background: var(--red-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 32px rgba(208,28,28,0.5), 0 2px 8px rgba(208,28,28,0.3);
    letter-spacing: 1px;
  }

  .btn-primary:hover::after {
    opacity: 1;
    animation: btnShimmer 0.6s ease forwards;
  }

  /* Bounce the download icon on hover */
  .btn-primary:hover svg {
    animation: btnIconBounce 0.5s ease forwards;
  }

  .btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 16px rgba(208,28,28,0.3);
    transition-duration: 0.08s;
  }

  .btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.7);
    padding: 15px 36px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 2px;
    transition: border-color 0.2s, color 0.2s;
    display: inline-block;
  }

  .btn-ghost:hover {
    border-color: rgba(255,255,255,0.45);
    color: var(--white);
  }

  .hero-stats {
    position: relative;
    z-index: 2;
    position: relative;
    display: flex;
    gap: 60px;
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .stat-item { text-align: center; }

  .stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 44px;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1;
    display: block;
  }

  .stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
  }

  /* RENDER SHOWCASE */
  .render-bar {
    background: var(--black-soft);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 18px 5%;
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
  }

  .render-bar-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .render-bar-track {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  }

  .render-bar-inner {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: renderScroll 28s linear infinite;
  }

  .render-bar-track:hover .render-bar-inner {
    animation-play-state: paused;
  }

  @keyframes renderScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .render-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    padding: 6px 16px;
    border-radius: 3px;
    flex-shrink: 0;
    cursor: default;
    letter-spacing: 0.3px;
    border: 1px solid rgba(208,28,28,0.6);
    background: rgba(208,28,28,0.08);
    box-shadow:
      0 0 8px rgba(208,28,28,0.35),
      0 0 20px rgba(208,28,28,0.12),
      inset 0 0 6px rgba(208,28,28,0.06);
    text-shadow: 0 0 12px rgba(208,28,28,0.5);
    transition: box-shadow 0.2s, border-color 0.2s;
  }

  .render-tag:hover {
    border-color: rgba(208,28,28,1);
    box-shadow:
      0 0 12px rgba(208,28,28,0.7),
      0 0 30px rgba(208,28,28,0.3),
      inset 0 0 10px rgba(208,28,28,0.1);
    text-shadow: 0 0 16px rgba(208,28,28,0.9);
  }

  /* SECTION SHARED */
  section { padding: 100px 5%; }

  .section-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 16px;
    display: block;
  }

  h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 0.95;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
  }

  .section-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.5);
    max-width: 520px;
    line-height: 1.75;
  }

  /* HOW IT WORKS */
  .how-section {
    background: var(--black);
  }

  .how-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 72px;
    gap: 40px;
    flex-wrap: wrap;
  }

  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
  }

  .step-card {
    background: var(--black);
    padding: 44px 36px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
  }

  .step-card:hover { background: rgba(255,255,255,0.02); }

  .step-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 100px;
    line-height: 1;
    color: rgba(255,255,255,0.04);
    position: absolute;
    top: 12px;
    right: 20px;
    letter-spacing: -2px;
    user-select: none;
  }

  .step-icon {
    width: 44px;
    height: 44px;
    background: rgba(208,28,28,0.12);
    border: 1px solid rgba(208,28,28,0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
  }

  .step-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--red);
  }

  .step-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: var(--white);
  }

  .step-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    line-height: 1.75;
  }

  /* FEATURES */
  .features-section {
    background: var(--black-soft);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .features-header {
    text-align: center;
    margin-bottom: 72px;
  }

  .features-header .section-desc {
    margin: 0 auto;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: rgba(255,255,255,0.06);
  }

  .feature-card {
    background: var(--black-soft);
    padding: 40px 32px;
    transition: background 0.25s;
  }

  .feature-card:hover { background: rgba(255,255,255,0.03); }

  .feature-badge {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(208,28,28,0.1);
    border: 1px solid rgba(208,28,28,0.25);
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 20px;
  }

  .feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
    line-height: 1.3;
  }

  .feature-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.42);
    line-height: 1.75;
  }

  /* COMPARISON */
  .compare-section {
    background: var(--black);
  }

  .compare-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-top: 60px;
    background: rgba(255,255,255,0.05);
  }

  .compare-col {
    padding: 44px 40px;
    background: var(--black);
  }

  .compare-col.highlight {
    background: rgba(208,28,28,0.06);
    border: 1px solid rgba(208,28,28,0.2);
  }

  .compare-col-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 24px;
    display: block;
  }

  .compare-col.highlight .compare-col-label {
    color: var(--red);
  }

  .compare-col-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
  }

  .compare-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .compare-list li {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .compare-list li .check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
  }

  .compare-col .check { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.25); }
  .compare-col.highlight .check { background: rgba(208,28,28,0.15); color: var(--red); }
  .compare-col.highlight li { color: rgba(255,255,255,0.75); }

  /* TESTIMONIALS */
  .testimonials-section {
    background: var(--black-soft);
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  .testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
    gap: 40px;
    flex-wrap: wrap;
  }

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

  .testimonial-card {
    background: var(--black);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 32px 28px;
    border-radius: 2px;
    position: relative;
  }

  .testimonial-card::before {
    content: '"';
    font-family: 'Bebas Neue', sans-serif;
    font-size: 80px;
    line-height: 1;
    color: rgba(208,28,28,0.2);
    position: absolute;
    top: 16px;
    right: 24px;
  }

  .testimonial-text {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255,255,255,0.65);
    margin-bottom: 28px;
  }

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

  .author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--red-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 15px;
    color: var(--white);
    flex-shrink: 0;
  }

  .author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
  }

  .author-role {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
  }

  /* PRICING */
  .pricing-section {
    background: var(--black);
    text-align: center;
  }

  .pricing-header {
    margin-bottom: 64px;
  }

  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
  }

  .pricing-card {
    background: rgba(12,12,12,0.92);
    backdrop-filter: blur(10px);
    padding: 44px 36px;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    z-index: 2;
  }

  /* Featured / Pro card */
  .pricing-card.featured {
    background: var(--red) !important;
    border-color: var(--red) !important;
    transform: translateY(-16px);
    box-shadow: 0 32px 80px rgba(208,28,28,0.4), 0 0 0 1px rgba(208,28,28,0.5);
    z-index: 3;
    backdrop-filter: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-20px);
    box-shadow: 0 40px 100px rgba(208,28,28,0.5), 0 0 0 1px rgba(208,28,28,0.7);
  }

  /* MOST POPULAR badge */
  .pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 2.5px;
    background: #fff;
    color: var(--red);
    padding: 5px 14px;
    white-space: nowrap;
    font-weight: 700;
    border-radius: 2px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }

  .plan-name {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 16px;
  }

  .pricing-card.featured .plan-name { color: rgba(255,255,255,0.85); }

  .plan-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px;
    line-height: 1;
    letter-spacing: 1px;
    margin-bottom: 4px;
    color: #fff;
  }

  .plan-period {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 28px;
  }

  .pricing-card.featured .plan-period { color: rgba(255,255,255,0.7); }

  .plan-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin-bottom: 28px;
  }

  .pricing-card.featured .plan-divider { background: rgba(255,255,255,0.25); }

  .plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
    flex: 1;
  }

  .plan-features li {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
  }

  .pricing-card.featured .plan-features li { color: rgba(255,255,255,0.92); }

  .plan-features li::before {
    content: '—';
    color: rgba(255,255,255,0.18);
    font-size: 11px;
    flex-shrink: 0;
  }

  .pricing-card.featured .plan-features li::before { color: rgba(255,255,255,0.5); }

  .plan-btn {
    display: block;
    text-align: center;
    padding: 14px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
  }

  .plan-btn-outline {
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
  }

  .plan-btn-outline:hover {
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
  }

  .plan-btn-solid {
    background: var(--white);
    color: var(--red-dark);
  }

  .plan-btn-solid:hover { background: var(--off-white); }

  /* CTA BAND */
  .cta-band {
    background: var(--red-dark);
    padding: 100px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .cta-band::before {
    content: 'RENDER';
    font-family: 'Bebas Neue', sans-serif;
    font-size: 280px;
    line-height: 1;
    color: rgba(0,0,0,0.12);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    user-select: none;
    letter-spacing: 10px;
  }

  .cta-band h2 {
    position: relative;
    color: var(--white);
    margin-bottom: 16px;
  }

  .cta-band p {
    font-size: 17px;
    color: rgba(255,255,255,0.65);
    max-width: 480px;
    margin: 0 auto 44px;
    position: relative;
  }

  .cta-band .btn-primary {
    background: var(--white);
    color: var(--red-dark);
    position: relative;
  }

  .cta-band .btn-primary:hover { background: var(--off-white); color: #111; }


  .footer-social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
  }

  .social-btn {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: all 0.25s ease;
    flex-shrink: 0;
  }

  .social-btn svg {
    width: 16px;
    height: 16px;
  }

  .social-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(208,28,28,0.4);
  }


  /* SECTION BACKGROUND IMAGES */

  .how-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    isolation: isolate;
  }
  .how-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.72);
    z-index: 0;
    pointer-events: none;
  }
  .how-section > * {
    position: relative;
    z-index: 1;
  }

  .features-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    isolation: isolate;
  }
  .features-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.72);
    z-index: 0;
    pointer-events: none;
  }
  .features-section > * {
    position: relative;
    z-index: 1;
  }

  .compare-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    isolation: isolate;
  }
  .compare-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.75);
    z-index: 0;
    pointer-events: none;
  }
  .compare-section > * {
    position: relative;
    z-index: 1;
  }

  .testimonials-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1631049307264-da0ec9d70304?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    isolation: isolate;
  }
  .testimonials-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.74);
    z-index: 0;
    pointer-events: none;
  }
  .testimonials-section > * {
    position: relative;
    z-index: 1;
  }

  .about-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1545569341-9eb8b30979d9?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    isolation: isolate;
  }
  .about-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.76);
    z-index: 0;
    pointer-events: none;
  }
  .about-section > * {
    position: relative;
    z-index: 1;
  }

  .pricing-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    isolation: isolate;
  }
  .pricing-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.74);
    z-index: 0;
    pointer-events: none;
  }
  .pricing-section > * {
    position: relative;
    z-index: 1;
  }

  .how-video-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    isolation: isolate;
  }
  .how-video-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.78);
    z-index: 0;
    pointer-events: none;
  }
  .how-video-section > * {
    position: relative;
    z-index: 1;
  }


  /* TEXT VISIBILITY OVER SECTION BG IMAGES */
  .how-section h2, .how-section h3, .how-section p,
  .features-section h2, .features-section h3, .features-section p,
  .compare-section h2, .compare-section h3, .compare-section p,
  .testimonials-section h2, .testimonials-section h3, .testimonials-section p,
  .about-section h2, .about-section h3, .about-section p,
  .pricing-section h2, .pricing-section h3, .pricing-section p,
  .how-video-section h2, .how-video-section h3, .how-video-section p {
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  }

  /* Cards and boxes get a solid dark backing so they remain crisp */
  .how-step, .feature-card, .compare-table,
  .testimonial-card {
    background: rgba(14,14,14,0.88) !important;
    backdrop-filter: blur(8px);
    border-color: rgba(255,255,255,0.1) !important;
  }

  /* About photo column z-index fix */
  .about-photo-col, .about-text-col {
    position: relative;
    z-index: 1;
  }

  /* Ensure pricing card text is crisp */
  .plan-name, .plan-price, .plan-period, .plan-features li {
    position: relative;
    z-index: 1;
  }

  /* Checklist and video checklist text */
  .video-checklist li {
    color: rgba(255,255,255,0.8) !important;
  }

  /* Testimonial quote text */
  .testimonial-card p {
    color: rgba(255,255,255,0.8) !important;
  }

  /* Compare table text */
  .compare-table td, .compare-table th {
    text-shadow: none;
  }

  /* About body text */
  .about-body {
    color: rgba(255,255,255,0.7) !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
  }

  /* section-desc */
  .section-desc {
    color: rgba(255,255,255,0.65) !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  }

  /* FOOTER */
  footer {
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 60px 5% 36px;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
  }

  .footer-brand .nav-logo {
    font-size: 20px;
    margin-bottom: 16px;
    display: inline-flex;
  }

  .footer-brand p {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    line-height: 1.7;
    max-width: 240px;
  }

  .footer-col-title {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 20px;
  }

  .footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-col ul a {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
  }

  .footer-col ul a:hover { color: var(--white); }

  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.2);
  }

  .footer-bottom span {
    color: var(--red);
  }

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

  .hero > * { position: relative; }

  h1 { animation: fadeUp 0.7s ease both; }
  .hero-eyebrow { animation: fadeUp 0.6s ease both; }
  .hero-sub { animation: fadeUp 0.75s 0.1s ease both; }
  .hero-actions { animation: fadeUp 0.75s 0.2s ease both; }
  .hero-stats { animation: fadeUp 0.75s 0.35s ease both; }

  /* DIVIDER */
  .red-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0.4;
  }

  /* Responsive */
  @media (max-width: 900px) {
    .nav-mobile-toggle {
      display: flex;
    }
    .nav-links {
      display: none;
      position: fixed;
      top: 68px; left: 0; right: 0; bottom: 0;
      background: rgba(10,10,10,0.98);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 30px;
      padding: 40px;
      z-index: 99;
      border-top: 1px solid rgba(255,255,255,0.06);
      overflow-y: auto;
    }
    .nav-links.is-active {
      display: flex;
    }
    .nav-links li {
      width: 100%;
      text-align: center;
    }
    .nav-links a {
      font-size: 18px;
      display: block;
      padding: 10px 0;
    }
    .nav-dropdown-menu {
      position: static;
      transform: none;
      box-shadow: none;
      background: rgba(255,255,255,0.02);
      border: none;
      border-radius: 0;
      width: 100%;
      margin-top: 10px;
      padding: 0;
    }
    .nav-dropdown:hover .nav-dropdown-menu {
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
      display: block;
      padding: 0;
    }
    .nav-dropdown-menu::before {
      display: none;
    }
    .steps-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .compare-layout { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 32px; }
  }

  @media (max-width: 480px) {
    .nav-cta {
      padding: 7px 12px;
      font-size: 11px;
    }
  }

  @media (max-width: 600px) {
    .footer-top { grid-template-columns: 1fr; }
  }

  .nav-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
  }
  .nav-logo-img:hover {
    transform: scale(1.1);
  }

  /* --- UI APP STYLES (scoped to .app-ui-wrapper) --- */
  .app-ui-wrapper {
    --bg-color: #0a0000;
    --panel-bg: rgba(18, 4, 4, 0.95);
    --input-bg: rgba(0, 0, 0, 0.7);
    --text-main: #f0f0f0;
    --text-muted: #7a5555;
    --accent-primary: #e8001c;
    --accent-gold: #ffffff;
    --border-color: rgba(232, 0, 28, 0.25);
    --danger: #ff2a42;
  }
  .app-ui-wrapper .sidebar {
    width: 320px; min-width: 320px; background: var(--panel-bg);
    border-right: 1px solid rgba(232,0,28,0.2); padding: 25px 20px;
    display: flex; flex-direction: column; backdrop-filter: blur(10px); z-index: 10;
    overflow-y: auto;
    transition: width 0.3s cubic-bezier(0.4,0,0.2,1), min-width 0.3s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease, opacity 0.25s ease;
    position: relative;
  }
  .app-ui-wrapper .sidebar.collapsed {
    width: 0px; min-width: 0px; padding: 0; overflow: hidden; opacity: 0;
    border-right: none;
  }
  .sidebar-toggle-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    z-index: 100;
    width: 20px;
    height: 56px;
    background: rgba(18,4,4,0.95);
    border: 1px solid rgba(232,0,28,0.3);
    border-left: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, left 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s;
    box-shadow: 3px 0 12px rgba(0,0,0,0.4);
    color: rgba(232,0,28,0.7);
    padding: 0;
  }
  .sidebar-toggle-btn:hover {
    background: rgba(232,0,28,0.12);
    color: #e8001c;
    box-shadow: 3px 0 16px rgba(232,0,28,0.2);
  }
  .sidebar-toggle-btn svg {
    transition: transform 0.3s ease;
  }
  .sidebar-toggle-btn.collapsed svg {
    transform: rotate(180deg);
  }
  .app-ui-wrapper .tabs { display: flex; gap: 8px; margin-bottom: 20px; }
  .app-ui-wrapper .tab-btn {
    flex: 1; padding: 10px; background: rgba(232, 0, 28, 0.05); color: var(--text-muted);
    border: 1px solid var(--border-color); cursor: pointer; text-transform: uppercase;
    font-size: 0.75em; font-weight: 800; border-radius: 2px; transition: all 0.2s;
  }
  .app-ui-wrapper .tab-btn.active { background: rgba(232, 0, 28, 0.18); color: var(--accent-primary); border-color: var(--accent-primary); }
  .app-ui-wrapper .tab-content { display: none; flex-direction: column; flex: 1; padding-right: 5px; }
  .app-ui-wrapper .tab-content.active { display: flex; }
  .app-ui-wrapper .main-area {
    flex: 1; padding: 25px; overflow-y: auto; background-color: var(--bg-color);
    background-image: linear-gradient(rgba(232, 0, 28, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(232, 0, 28, 0.04) 1px, transparent 1px);
    background-size: 30px 30px; padding-bottom: 100px;
  }
  .app-ui-wrapper .main-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
  .app-ui-wrapper .header-title { color: var(--accent-primary); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
  .app-ui-wrapper #credit-counter { font-weight: 800; color: var(--accent-primary); margin-right: 15px; }
  .app-ui-wrapper button.btn-buy {
    padding: 8px 15px; background: rgba(232, 0, 28, 0.12); color: #ff4444;
    border: 1px solid rgba(232,0,28,0.6); cursor: pointer; text-transform: uppercase; font-size: 0.75em; font-weight: bold; transition: 0.2s;
  }
  .app-ui-wrapper button.btn-buy:hover { background: var(--accent-primary); color: #fff; }
  .app-ui-wrapper .input-group { margin-bottom: 18px; }
  .app-ui-wrapper label { font-size: 0.7em; display: block; margin-bottom: 6px; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 1.5px; font-weight: bold; }
  .app-ui-wrapper textarea,
  .app-ui-wrapper select,
  .app-ui-wrapper input[type="email"],
  .app-ui-wrapper input[type="password"],
  .app-ui-wrapper input[type="text"] {
    width: 100%; padding: 10px; border: 1px solid var(--border-color); background-color: var(--input-bg);
    color: var(--text-main); border-radius: 2px; font-family: inherit; box-sizing: border-box;
  }
  .app-ui-wrapper .render-btn {
    padding: 12px; width: 100%; background: rgba(232, 0, 28, 0.1); color: var(--accent-primary);
    border: 1px solid var(--border-color); cursor: pointer; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; transition: 0.2s;
  }
  .app-ui-wrapper .render-btn:hover { background: var(--accent-primary); color: #fff; }
  .app-ui-wrapper .btn-secondary {
    background: transparent; color: var(--text-main); border: 1px solid var(--text-muted);
    padding: 10px; cursor: pointer; font-size: 0.8em; flex: 1; text-align: center; text-decoration: none; text-transform: uppercase; font-weight: bold; transition: 0.2s;
  }
  .app-ui-wrapper .btn-secondary:hover { border-color: var(--text-main); background: rgba(255,255,255,0.05); }
  .app-ui-wrapper .btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; border-color: var(--border-color); color: var(--text-muted); }
  .app-ui-wrapper .prop-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .app-ui-wrapper .prop-thumbnail { position: relative; width: 50px; height: 50px; border: 1px solid var(--border-color); }
  .app-ui-wrapper .prop-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
  .app-ui-wrapper .prop-remove-btn { position: absolute; top: -5px; right: -5px; background: var(--danger); color: white; border: none; border-radius: 50%; width: 16px; height: 16px; font-size: 10px; cursor: pointer; z-index: 5; }
  .app-ui-wrapper .history-item { background: rgba(0,0,0,0.4); border: 1px solid var(--border-color); padding: 10px; margin-bottom: 12px; cursor: pointer; transition: 0.2s; position: relative; }
  .app-ui-wrapper .history-item:hover { border-color: var(--accent-primary); background: rgba(232, 0, 28, 0.06); }
  .app-ui-wrapper .history-thumb { width: 100%; height: 120px; object-fit: cover; margin-bottom: 8px; border: 1px solid var(--border-color); }
  .app-ui-wrapper .history-prompt { font-size: 0.7em; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
  .app-ui-wrapper .draft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; max-width: 800px; }
  .app-ui-wrapper .draft-item { width: 100%; border: 3px solid transparent; border-radius: 8px; cursor: pointer; opacity: 0.6; transition: all 0.2s ease; object-fit: cover; aspect-ratio: inherit; display: block; box-sizing: border-box; }
  .app-ui-wrapper .draft-item:hover { opacity: 1; border-color: rgba(232, 0, 28, 0.6); }
  .app-ui-wrapper .draft-item.selected { border-color: #ffffff; opacity: 1; box-shadow: 0 0 20px rgba(255,255,255,0.2); transform: scale(1.02); }
  .app-ui-wrapper .slider-container { position: relative; width: 100%; border: 1px solid var(--border-color); overflow: hidden; margin-bottom: 15px; background: #000; border-radius: 8px; }
  .app-ui-wrapper .img-original { width: 100%; display: block; opacity: 0.8; filter: grayscale(30%); }
  .app-ui-wrapper .img-generated { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
  .app-ui-wrapper .slider-control { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 10; }
  .app-ui-wrapper .slider-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--accent-primary); pointer-events: none; box-shadow: 0 0 8px rgba(232,0,28,0.8); }
  .app-ui-wrapper .modal-overlay { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
  .app-ui-wrapper .modal-content { background: var(--panel-bg); padding: 30px; border: 1px solid var(--border-color); max-width: 500px; width: 100%; display: flex; flex-direction: column; }
  .app-ui-wrapper .price-tier { border: 1px solid rgba(232,0,28,0.5); padding: 15px; margin: 10px 0; cursor: pointer; transition: 0.2s; text-align: center; background: rgba(232,0,28,0.05); }
  .app-ui-wrapper .price-tier:hover { background: rgba(232,0,28,0.15); border-color: var(--accent-primary); }
  .app-ui-wrapper .canvas-container { position: relative; width: 100%; background: transparent; overflow: hidden; margin: 0; border: 1px solid var(--border-color); border-radius: 8px; }
  .app-ui-wrapper #base-image-canvas { width: 100%; display: block; opacity: 0.8; }
  .app-ui-wrapper #draw-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: crosshair; opacity: 0.8; }
  .app-ui-wrapper .floating-toolbar {
    position: absolute; bottom: 30px; left: calc(50% + 160px); transform: translateX(-50%);
    background: rgba(12, 2, 2, 0.95); border: 1px solid rgba(232, 0, 28, 0.35); border-radius: 50px;
    padding: 8px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px); z-index: 3000;
  }
  .app-ui-wrapper .toolbar-btn { background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 50%; transition: all 0.2s; }
  .app-ui-wrapper .toolbar-btn:hover { background: rgba(232, 0, 28, 0.12); color: var(--accent-primary); }
  .app-ui-wrapper .toolbar-input { background: rgba(0,0,0,0.5); border: 1px solid rgba(232, 0, 28, 0.25); color: var(--text-main); border-radius: 20px; padding: 8px 15px; width: 250px; font-size: 0.85em; outline: none; transition: border-color 0.2s; }
  .app-ui-wrapper .toolbar-input:focus { border-color: var(--accent-primary); }
  .app-ui-wrapper .toolbar-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.1); margin: 0 4px; }
  .app-ui-wrapper #main-render-btn {
    position: relative; background: transparent; color: #ffffff; border: none; padding: 16px; width: 100%; font-weight: 900;
    font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; margin-bottom: 15px; z-index: 1; transition: transform 0.2s ease;
  }
  .app-ui-wrapper #main-render-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .app-ui-wrapper #main-render-btn::before { content: ""; position: absolute; top: -1px; bottom: -1px; left: -1px; right: -1px; background: linear-gradient(90deg, #8b0000, #e8001c, #ff4444, #8b0000); border-radius: 50px; z-index: -2; filter: blur(2px); opacity: 0.9; transition: opacity 0.2s ease, filter 0.2s ease; }
  .app-ui-wrapper #main-render-btn::after { content: ""; position: absolute; top: 1px; bottom: 1px; left: 1px; right: 1px; background: #0d0000; border-radius: 50px; z-index: -1; }
  .app-ui-wrapper #main-render-btn:hover:not(:disabled) { transform: translateY(-2px); }
  .app-ui-wrapper #main-render-btn:hover:not(:disabled)::before { opacity: 1; filter: blur(4px); }
  .app-ui-wrapper #main-render-btn:active:not(:disabled) { transform: translateY(0px); }

  /* --- SKELETON LOADER --- */
  @keyframes skeletonPulse {
    0%   { opacity: 0.35; }
    50%  { opacity: 0.7;  }
    100% { opacity: 0.35; }
  }
  .skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
    max-width: 800px;
  }
  .skeleton-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(232, 0, 28, 0.15);
    background: rgba(232, 0, 28, 0.04);
  }
  .skeleton-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg,
      rgba(232,0,28,0.12) 0%,
      rgba(232,0,28,0.22) 40%,
      rgba(80,0,10,0.18) 60%,
      rgba(232,0,28,0.12) 100%);
    animation: skeletonPulse 1.6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
  }
  .skeleton-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(255,255,255,0.04) 50%,
      transparent 100%);
    animation: skeletonShimmer 2s linear infinite;
  }
  @keyframes skeletonShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%);  }
  }
  .skeleton-bar {
    height: 10px;
    border-radius: 4px;
    background: rgba(232,0,28,0.15);
    animation: skeletonPulse 1.6s ease-in-out infinite;
    margin: 12px 12px 6px;
  }
  .skeleton-bar.short {
    width: 55%;
    height: 8px;
    margin: 0 12px 14px;
    animation-delay: 0.2s;
  }
  .skeleton-label {
    font-size: 0.65em;
    color: rgba(232,0,28,0.45);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 14px;
    animation: skeletonPulse 1.6s ease-in-out infinite;
  }

  /* --- APP MODAL OVERLAY --- */
  @keyframes modalOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes modalOverlayOut {
    from { opacity: 1; }
    to   { opacity: 0; }
  }
  @keyframes modalWrapperIn {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
  }
  @keyframes modalWrapperOut {
    from { opacity: 1; transform: scale(1)    translateY(0); }
    to   { opacity: 0; transform: scale(0.96) translateY(12px); }
  }

  #app-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
  }
  #app-modal.is-opening {
    display: flex;
    animation: modalOverlayIn 0.28s ease forwards;
  }
  #app-modal.is-closing {
    display: flex;
    animation: modalOverlayOut 0.22s ease forwards;
  }

  /* This replaces the 'body' tag styling from the UI code */
  .app-ui-wrapper {
    width: 95vw;
    height: 90vh;
    max-width: 1600px;
    display: flex;
    background-color: var(--bg-color, #06080b);
    border-radius: 8px;
    border: 1px solid rgba(232, 0, 28, 0.3);
    overflow: hidden;
    position: relative;
    color: #f0f0f0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
  }
  #app-modal.is-opening .sgai-app-shell {
    animation: modalWrapperIn 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
  }
  #app-modal.is-closing .sgai-app-shell {
    animation: modalWrapperOut 0.22s ease forwards;
  }

  /* Close button for the app window */
  .app-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    transition: color 0.2s;
  }

  .app-close-btn:hover {
    color: #fff;
  }
  @keyframes rpPop {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
  }
  .render-tag { cursor: pointer !important; }
  .plugin-bar {
    background: rgba(208,28,28,0.06);
    border-top: 1px solid rgba(208,28,28,0.15);
    border-bottom: 1px solid rgba(208,28,28,0.15);
    padding: 14px 5%;
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
  }
  .plugin-bar-label {
    font-family: "Space Mono", monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .plugin-bar-track {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  }
  .plugin-bar-inner {
    display: flex;
    gap: 12px;
    animation: pluginScroll 22s linear infinite;
    width: max-content;
  }
  .plugin-bar-track:hover .plugin-bar-inner {
    animation-play-state: paused;
  }
  @keyframes pluginScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .plugin-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    white-space: nowrap;
    padding: 6px 14px;
    border: 1px solid rgba(208,28,28,0.25);
    border-radius: 2px;
    background: rgba(208,28,28,0.04);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    flex-shrink: 0;
  }
  .plugin-tag:hover {
    color: #fff;
    border-color: rgba(208,28,28,0.7);
    background: rgba(208,28,28,0.12);
  }
  .plugin-icon { font-size: 10px; opacity: 0.7; }
  .gallery-section {
    background: var(--black);
    padding: 100px 0 80px;
    overflow: hidden;
  }

  .gallery-header {
    text-align: center;
    padding: 0 5%;
    margin-bottom: 64px;
  }

  .gallery-header .section-desc { margin: 0 auto; }

  .gallery-stack-wrap {
    position: relative;
    width: 100%;
  }

  .gallery-track {
    display: flex;
    gap: 20px;
    padding: 40px 5% 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
  }

  .gallery-track::-webkit-scrollbar { display: none; }
  .gallery-track.dragging { cursor: grabbing; user-select: none; }

  .render-card {
    flex: 0 0 280px;
    height: 360px;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    scroll-snap-align: start;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(-6deg) rotateX(3deg) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow:
      8px 16px 40px rgba(0,0,0,0.6),
      2px 4px 12px rgba(0,0,0,0.4),
      inset 0 1px 0 rgba(255,255,255,0.06);
    cursor: crosshair;
    border: 1px solid rgba(255,255,255,0.07);
  }

  .render-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.04);
    box-shadow:
      0 32px 80px rgba(0,0,0,0.7),
      0 0 0 1px rgba(208,28,28,0.3),
      inset 0 1px 0 rgba(255,255,255,0.1);
    z-index: 10;
    border-color: rgba(208,28,28,0.3);
  }

  /* Layer system */
  .layer-raw,
  .layer-rendered {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .layer-raw img,
  .layer-rendered img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .layer-raw img {
    filter: saturate(0.25) brightness(0.7) sepia(0.3);
  }

  .layer-rendered {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.05s linear;
  }

  .layer-rendered img {
    filter: brightness(1) saturate(1.05);
  }

  .reveal-divider {
    position: absolute;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, rgba(208,28,28,0.9) 30%, #D01C1C 50%, rgba(208,28,28,0.9) 70%, transparent 100%);
    transform: translateX(-50%);
    left: 0;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 5;
  }

  .render-card:hover .reveal-divider { opacity: 1; }

  /* Badges */
  .layer-badge {
    position: absolute;
    top: 14px;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 2px;
    z-index: 6;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .layer-badge-raw {
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.12);
  }

  .layer-badge-ai {
    right: 12px;
    background: rgba(208,28,28,0.85);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
  }

  /* Hide both badges until hover */
  .layer-badge { opacity: 0; }
  .render-card:hover .layer-badge { opacity: 1; }

  .card-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 18px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .render-card:hover .card-meta { transform: translateY(0); }

  .card-num {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: rgba(208,28,28,0.8);
    letter-spacing: 2px;
    line-height: 1;
  }

  .card-tag {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.5px;
    text-align: right;
    line-height: 1.4;
  }

  .render-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    z-index: 2;
    transition: opacity 0.4s;
  }

  .render-card:hover::before { opacity: 0.5; }

  .gallery-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 4px;
  }

  .gallery-hint span {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
  }
  @keyframes lbPop {
    from { transform: scale(0.75); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
  }
  .render-card { cursor: zoom-in !important; }
  .about-section {
    background: var(--black-soft);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 100px 5%;
  }

  .about-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: center;
    max-width: 1160px;
    margin: 0 auto;
  }

  .about-photo-col {
    display: flex;
    justify-content: center;
  }

  .about-photo-wrap {
    position: relative;
    width: 340px;
    flex-shrink: 0;
  }

  .about-photo-ring {
    position: absolute;
    inset: -10px;
    border-radius: 6px;
    border: 1px solid rgba(208,28,28,0.18);
    pointer-events: none;
    z-index: 0;
  }

  .about-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    border-radius: 4px;
    display: block;
    position: relative;
    z-index: 1;
    filter: grayscale(15%);
    transition: filter 0.4s ease;
  }

  .about-photo:hover { filter: grayscale(0%); }

  .about-photo-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--red);
    color: #fff;
    padding: 16px 20px;
    border-radius: 4px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 12px 32px rgba(208,28,28,0.4);
  }

  .badge-num {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px;
    letter-spacing: 1px;
    line-height: 1;
  }

  .badge-label {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 2px;
  }

  .about-text-col h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 0.95;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    margin-top: 10px;
  }

  .about-role {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
  }

  .about-role-tag {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 4px 10px;
    border-radius: 2px;
  }

  .about-role-sep {
    color: var(--red);
    font-size: 14px;
  }

  .about-subheading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--red);
    margin-bottom: 20px;
  }

  .about-body {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    line-height: 1.85;
    margin-bottom: 16px;
  }

  .about-body strong { color: rgba(255,255,255,0.85); font-weight: 600; }
  .about-body em { color: rgba(255,255,255,0.75); font-style: italic; }

  .about-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 24px 0;
  }

  .about-dl-btn {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }

  @media (max-width: 900px) {
    .about-inner { grid-template-columns: 1fr; gap: 60px; }
    .about-photo-wrap { width: 100%; max-width: 320px; }
    .about-photo-col { justify-content: flex-start; }
    .about-photo-badge { right: 0; }
  }
  .how-video-section {
    background: var(--black-soft);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 100px 5%;
  }

  .how-video-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 72px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }

  .video-checklist {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .video-checklist li {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .vc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(208,28,28,0.6);
  }

  .video-thumb-link {
    display: block;
    text-decoration: none;
  }

  .video-frame-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(208,28,28,0.1);
    background: #000;
  }

  .video-frame-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.85);
  }

  .video-thumb-link:hover .video-frame-wrap img {
    transform: scale(1.03);
    filter: brightness(0.6);
  }

  .video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: background 0.3s;
  }

  .video-thumb-link:hover .video-play-overlay {
    background: rgba(0,0,0,0.25);
  }

  .video-play-btn {
    width: 72px;
    height: 72px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s, background 0.25s;
    backdrop-filter: blur(4px);
  }

  .video-thumb-link:hover .video-play-btn {
    transform: scale(1.12);
    background: rgba(208,28,28,0.85);
  }

  .video-watch-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    background: rgba(0,0,0,0.5);
    padding: 5px 14px;
    border-radius: 2px;
    backdrop-filter: blur(4px);
  }

  @media (max-width: 900px) {
    .how-video-inner {
      grid-template-columns: 1fr;
      gap: 44px;
    }
  }
  #app-modal {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0,0,0,0.86);
    backdrop-filter: blur(14px);
  }
  #app-modal.is-open { display: flex !important; }
  #app-modal .sgai-app-shell {
    position: relative;
    width: min(1500px, 96vw);
    height: min(900px, 92vh);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: #06080b;
    box-shadow: 0 40px 120px rgba(0,0,0,0.72), 0 0 0 1px rgba(0,229,255,0.08);
  }
  #sgai-app-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #06080b;
  }
  #app-modal .app-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    background: rgba(0,0,0,0.72);
    color: rgba(255,255,255,0.7);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }
  #app-modal .app-close-btn:hover {
    color: #fff;
    border-color: rgba(0,229,255,0.45);
    background: rgba(0,229,255,0.12);
  }
  @media (max-width: 760px) {
    #app-modal { padding: 10px; }
    #app-modal .sgai-app-shell { width: 100vw; height: 94vh; border-radius: 8px; }
  }