  :root {
    --bg: #0B0C10;
    --surface: #13141A;
    --surface2: #1A1C24;
    --border: rgba(255,255,255,0.08);
    --text: #F0F0F5;
    --muted: #8888AA;
    --accent: #7C6EFF;
    --accent2: #2FFFA0;
    --accent3: #FF6B6B;
    --warm: #FF9B50;
    --font-head: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background:
      /* Cinematic spotlight — top centre */
      radial-gradient(ellipse 130% 60% at 50% -8%, rgba(124,110,255,0.22) 0%, transparent 58%),
      /* Left deep violet orb */
      radial-gradient(ellipse 80% 55% at -10% 38%, rgba(100,80,255,0.14) 0%, transparent 58%),
      /* Right teal accent */
      radial-gradient(ellipse 70% 50% at 112% 65%, rgba(47,255,160,0.11) 0%, transparent 58%),
      /* Mid-screen warm glow */
      radial-gradient(ellipse 50% 40% at 72% 55%, rgba(124,110,255,0.07) 0%, transparent 60%),
      /* Deep cinematic base */
      #060710;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ── AI CIRCUIT MESH ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      /* Dot intersections */
      radial-gradient(circle, rgba(124,110,255,0.22) 1px, transparent 1px),
      /* Horizontal lines */
      linear-gradient(90deg, rgba(124,110,255,0.04) 1px, transparent 1px),
      /* Vertical lines */
      linear-gradient(0deg, rgba(124,110,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px, 48px 48px, 48px 48px;
    pointer-events: none;
    z-index: 0;
    mask-image:
      radial-gradient(ellipse 110% 80% at 50% 0%, black 0%, transparent 80%);
    -webkit-mask-image:
      radial-gradient(ellipse 110% 80% at 50% 0%, black 0%, transparent 80%);
    opacity: 0.5;
    animation: gridDrift 30s ease-in-out infinite alternate;
  }
  @keyframes gridDrift {
    from { background-position: 0 0, 0 0, 0 0; }
    to   { background-position: 24px 24px, 24px 24px, 24px 24px; }
  }

  /* ── AI NOISE TEXTURE ── */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
  }

  /* ── FLOATING AI AMBIENT ORBS ── */
  @keyframes orbFloat1 {
    0%,100% { transform: translate(0,0) scale(1); opacity: 0.55; }
    33%     { transform: translate(30px,-40px) scale(1.08); opacity: 0.7; }
    66%     { transform: translate(-20px,20px) scale(0.95); opacity: 0.5; }
  }
  @keyframes orbFloat2 {
    0%,100% { transform: translate(0,0) scale(1); opacity: 0.4; }
    40%     { transform: translate(-35px,25px) scale(1.1); opacity: 0.6; }
    70%     { transform: translate(20px,-30px) scale(0.92); opacity: 0.45; }
  }
  @keyframes orbFloat3 {
    0%,100% { transform: translate(0,0) scale(1); opacity: 0.35; }
    50%     { transform: translate(25px,35px) scale(1.06); opacity: 0.55; }
  }
  @keyframes auroraShimmer {
    0%,100% { opacity: 0.6; transform: scaleX(1); }
    50%     { opacity: 0.85; transform: scaleX(1.04); }
  }

  .ai-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(72px);
    will-change: transform;
  }
  .ai-orb-1 {
    width: 640px; height: 640px;
    top: -160px; left: -120px;
    background: radial-gradient(circle,
      rgba(124,110,255,0.32) 0%,
      rgba(100,80,255,0.14) 40%,
      transparent 72%);
    animation: orbFloat1 18s ease-in-out infinite;
  }
  .ai-orb-2 {
    width: 480px; height: 480px;
    top: 25%; right: -120px;
    background: radial-gradient(circle,
      rgba(47,255,160,0.22) 0%,
      rgba(30,200,130,0.1) 45%,
      transparent 72%);
    animation: orbFloat2 22s ease-in-out infinite;
  }
  .ai-orb-3 {
    width: 380px; height: 380px;
    bottom: 18%; left: 22%;
    background: radial-gradient(circle,
      rgba(124,110,255,0.18) 0%,
      rgba(80,120,255,0.08) 50%,
      transparent 72%);
    animation: orbFloat3 26s ease-in-out infinite;
  }
  .ai-orb-4 {
    width: 320px; height: 320px;
    bottom: -80px; right: 18%;
    background: radial-gradient(circle,
      rgba(47,255,160,0.16) 0%,
      rgba(20,180,120,0.06) 50%,
      transparent 72%);
    animation: orbFloat1 20s ease-in-out infinite reverse;
  }
  .ai-orb-5 {
    width: 260px; height: 260px;
    top: 55%; left: 55%;
    background: radial-gradient(circle,
      rgba(255,110,180,0.10) 0%,
      rgba(200,80,160,0.05) 50%,
      transparent 72%);
    animation: orbFloat2 24s ease-in-out infinite reverse;
    filter: blur(60px);
  }

  /* ── AURORA TOP BEAM ── */
  .ai-aurora {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(124,110,255,0.0) 8%,
      rgba(124,110,255,0.8) 28%,
      rgba(47,255,160,1.0) 50%,
      rgba(124,110,255,0.8) 72%,
      rgba(124,110,255,0.0) 92%,
      transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    animation: auroraShimmer 5s ease-in-out infinite;
    box-shadow:
      0 0 24px 2px rgba(124,110,255,0.35),
      0 0 60px 4px rgba(47,255,160,0.18);
  }
  .ai-aurora::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to bottom,
      rgba(124,110,255,0.10) 0%,
      rgba(47,255,160,0.04) 30%,
      transparent 100%
    );
  }
  /* Scan line — moves from top to bottom slowly */
  .ai-scanline {
    position: fixed;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(47,255,160,0.12) 20%,
      rgba(47,255,160,0.35) 50%,
      rgba(47,255,160,0.12) 80%,
      transparent 100%
    );
    pointer-events: none;
    z-index: 0;
    animation: scanDown 12s linear infinite;
    opacity: 0;
  }
  @keyframes scanDown {
    0%   { top: 0%;   opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }

  /* Make sure all real content is above orbs */
  nav, .hero, .stats, .main, .features, .pricing, footer { position: relative; z-index: 1; }

  /* ── NAV ── */
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    background: rgba(11,12,16,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .nav-logo {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
  }
  .nav-logo span { color: var(--accent); }
  .nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .nav-links { display: flex; gap: 32px; }
  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--text); }

  /* ── HAMBURGER MENU ── */
  .hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
  }
  .hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.3s ease;
  }
  .hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  /* ── MOBILE MENU ── */
  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    background: rgba(11,12,16,0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    z-index: 99;
    animation: slideDown 0.3s ease both;
  }
  .mobile-menu.active {
    display: flex;
  }
  .mobile-menu a {
    display: block;
    padding: 16px 48px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-top: 1px solid rgba(124,110,255,0.1);
  }
  .mobile-menu a:hover {
    color: var(--text);
    background: rgba(124,110,255,0.05);
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    nav {
      padding: 16px 20px;
    }
    .nav-links {
      display: none;
    }
    .hamburger-btn {
      display: flex;
    }
    .nav-left {
      gap: 12px;
    }
    .theme-toggle {
      display: none;
    }
  }

  /* ── HERO ── */
  .hero {
    position: relative;
    padding: 100px 48px 80px;
    max-width: 1100px;
    margin: 0 auto;
  }
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(47,255,160,0.08);
    border: 1px solid rgba(47,255,160,0.2);
    color: var(--accent2);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    margin-bottom: 28px;
    animation: fadeUp 0.6s ease both;
  }
  .hero-eyebrow::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent2);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
  }
  .hero h1 {
    font-family: var(--font-head);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    animation: fadeUp 0.6s 0.1s ease both;
  }
  .hero h1 .grad {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-sub {
    margin-top: 20px;
    font-size: 18px;
    color: var(--muted);
    max-width: 540px;
    font-weight: 300;
    animation: fadeUp 0.6s 0.2s ease both;
  }
  .hero-cta {
    margin-top: 36px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeUp 0.6s 0.3s ease both;
  }
  .btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .btn-primary:hover { background: #9585ff; transform: translateY(-2px); }
  .btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .btn-secondary:hover { background: var(--surface); }
  .hero-orb {
    position: absolute;
    right: -40px; top: 20px;
    width: 520px; height: 520px;
    background: radial-gradient(circle at 40% 40%,
      rgba(124,110,255,0.22) 0%,
      rgba(47,255,160,0.08) 45%,
      transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    animation: orbFloat2 16s ease-in-out infinite;
    filter: blur(40px);
  }
  /* Cinematic hero backdrop */
  .hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 0;
  }
  .hero-backdrop-img {
    position: absolute;
    inset: -10%;
    background-image: url('https://images.unsplash.com/photo-1620121692029-d088224ddc74?w=1600&q=75&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    filter: blur(0px) saturate(0.6) brightness(0.22);
    transform: scale(1.1);
    animation: backdropDrift 20s ease-in-out infinite alternate;
  }
  @keyframes backdropDrift {
    from { transform: scale(1.10) translateY(0px); }
    to   { transform: scale(1.15) translateY(-18px); }
  }
  /* Multi-layer gradient over backdrop image */
  .hero-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      /* Strong left fade — where text lives */
      linear-gradient(110deg, rgba(6,7,16,0.97) 0%, rgba(6,7,16,0.80) 45%, rgba(6,7,16,0.30) 100%),
      /* Bottom fade into page */
      linear-gradient(to bottom, transparent 50%, rgba(6,7,16,1.0) 100%),
      /* Purple tint over image */
      linear-gradient(135deg, rgba(124,110,255,0.12) 0%, transparent 60%);
  }

  /* Neural canvas container in hero */
  #neural-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
  }

  /* Hero content must sit above backdrop */
  .hero-eyebrow, .hero h1, .hero-sub, .hero-cta { position: relative; z-index: 2; }
  .hero-orb { z-index: 1; }

  /* Animated glowing ring behind hero text */
  .hero-ring {
    position: absolute;
    right: 48px; top: 60px;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(124,110,255,0.15);
    pointer-events: none;
    z-index: 1;
    animation: ringPulse 6s ease-in-out infinite;
  }
  .hero-ring::before {
    content: '';
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    border: 1px solid rgba(47,255,160,0.12);
    animation: ringPulse 6s ease-in-out infinite reverse;
  }
  .hero-ring::after {
    content: '';
    position: absolute;
    inset: 56px;
    border-radius: 50%;
    border: 1px solid rgba(124,110,255,0.08);
    animation: ringPulse 8s ease-in-out infinite;
  }
  @keyframes ringPulse {
    0%,100% { transform: scale(1); opacity: 0.8; }
    50%     { transform: scale(1.04); opacity: 0.4; }
  }

  /* Data stream — vertical flowing dots on right side */
  .hero-datastream {
    position: absolute;
    right: 200px; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
      transparent 0%,
      rgba(124,110,255,0.3) 30%,
      rgba(47,255,160,0.5) 50%,
      rgba(124,110,255,0.3) 70%,
      transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    animation: streamFlow 4s ease-in-out infinite;
    opacity: 0.4;
  }
  @keyframes streamFlow {
    0%,100% { opacity: 0.25; transform: scaleY(1); }
    50%     { opacity: 0.55; transform: scaleY(1.03); }
  }

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

  /* ── STATS ── */
  .stats {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0 48px;
    max-width: 1100px;
    margin: 0 auto;
    animation: fadeUp 0.6s 0.4s ease both;
  }
  .stat {
    flex: 1;
    padding: 28px 0;
    border-right: 1px solid var(--border);
  }
  .stat:last-child { border-right: none; padding-left: 32px; }
  .stat:first-child { padding-left: 0; }
  .stat + .stat { padding-left: 32px; }
  .stat-num {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
  }
  .stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

  /* ── MAIN LAYOUT ── */
  .main {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    align-items: start;
  }

  /* ── FORM PANEL ── */
  .form-panel {
    background: linear-gradient(160deg, rgba(26,28,36,1) 0%, rgba(19,20,26,1) 100%);
    border: 1px solid rgba(124,110,255,0.2);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: 90px;
    animation: fadeUp 0.6s 0.2s ease both;
    box-shadow:
      0 0 0 1px rgba(124,110,255,0.05),
      0 24px 48px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.05);
  }
  .form-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 20px; right: 20px;
    height: 1px;
    background: linear-gradient(90deg,
      transparent, rgba(124,110,255,0.5), rgba(47,255,160,0.5), transparent
    );
    border-radius: 99px;
  }
  .panel-title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .panel-title .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
  }
  .form-group { margin-bottom: 16px; }
  .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
  }
  .form-group input,
  .form-group select {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;        /* ≥16px = iOS tidak auto-zoom */
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
  }
  .form-group input:focus,
  .form-group select:focus { border-color: var(--accent); }
  .form-group input::placeholder { color: var(--muted); }
  .select-wrap { position: relative; }
  .select-wrap::after {
    content: '▾';
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    font-size: 12px;
  }
  .chip-group { display: flex; flex-wrap: wrap; gap: 7px; }
  .chip {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 9px 15px;      /* min 44px touch target */
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .chip.on {
    background: rgba(124,110,255,0.15);
    border-color: rgba(124,110,255,0.5);
    color: #a99dff;
  }
  .gallery-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }
  .gallery-slot {
    display: block;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface2);
    position: relative;
  }
  .gallery-slot input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
  }
  .gallery-slot-thumb {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    text-align: center;
    color: var(--muted);
  }
  .gallery-slot-thumb span {
    font-size: 32px;
    line-height: 1;
  }
  .gallery-slot-thumb small {
    font-size: 11px;
    display: block;
    color: var(--muted);
  }
  .gallery-slot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .btn-gen {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
  }
  .btn-gen:hover { background: #9585ff; transform: translateY(-1px); }
  .btn-gen:active { transform: scale(0.98); }
  .btn-gen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.4s;
  }
  .btn-gen:hover::after { transform: translateX(100%); }

  /* ── RIGHT PANEL ── */
  .right-panel { display: flex; flex-direction: column; gap: 20px; animation: fadeUp 0.6s 0.3s ease both; }

  /* ── TABS ── */
  .tab-bar {
    display: flex;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
  }
  .tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
  }
  .tab-btn.active {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
  }

  /* ── PREVIEW PANEL ── */
  .preview-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: none;
  }
  .preview-panel.active { display: block; }
  .browser-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
  }
  .browser-dots { display: flex; gap: 6px; }
  .bdot {
    width: 11px; height: 11px;
    border-radius: 50%;
  }
  .browser-url {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 12px;
    font-size: 12px;
    color: var(--muted);
    font-family: 'DM Sans', monospace;
  }
  .preview-body {
    background: var(--surface2);
    min-height: 360px;
    height: 520px;
    overflow: hidden;
    position: relative;
    width: 100%;
    display: block;
  }
  /* Scale bar — toggle mobile/desktop view */
  .preview-scale-bar {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
  }
  .preview-scale-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-head);
    transition: all 0.18s;
  }
  .preview-scale-btn.active {
    background: var(--surface);
    color: var(--text);
    border-color: var(--accent);
  }
  .preview-scale-label {
    font-size: 11px;
    color: var(--muted);
    margin-left: auto;
    font-family: var(--font-head);
  }
  /* iframe wrapper for scale transform */
  .preview-iframe-wrap {
    overflow: hidden;
    position: relative;
    display: block;
  }
  .preview-iframe-wrap iframe {
    border: none;
    display: block;
    transform-origin: top left;
    /* Prevents right-side bleed on scale transform */
    max-width: none;
    flex-shrink: 0;
  }
  .empty-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #888;
    gap: 12px;
    background: var(--surface);
  }
  .empty-icon { font-size: 36px; opacity: 0.4; }

  /* ── LOG PANEL ── */
  .log-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: none;
  }
  .log-panel.active { display: block; }
  .log-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
  }
  .log-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); animation: pulse 2s infinite; }
  .log-body {
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 2;
    min-height: 300px;
    background: #0D0E12;
  }
  .log-line { display: block; }
  .lg-dim { color: #444; }
  .lg-info { color: #7C6EFF; }
  .lg-ok { color: #2FFFA0; }
  .lg-warn { color: #FF9B50; }
  .lg-val { color: #FF9B50; }
  .lg-key { color: #7ec8e3; }

  /* ── ARCH PANEL ── */
  .arch-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: none;
  }
  .arch-panel.active { display: block; }
  .arch-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
  .arch-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
  .arch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .arch-box {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid;
    text-align: center;
    min-width: 120px;
  }
  .arch-sub { font-size: 11px; color: var(--muted); }
  .arch-arrow { color: var(--muted); font-size: 20px; }
  .rule-box {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 2;
    color: var(--muted);
  }

  /* ── FEATURES SECTION ── */
  .features {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 48px;
  }
  .section-label {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
  }
  .section-title {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 48px;
  }
  .feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .feat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
  }
  .feat-card:hover { border-color: rgba(124,110,255,0.4); transform: translateY(-4px); }
  .feat-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
  }
  .feat-card h3 { font-family: var(--font-head); font-size: 15px; font-weight: 700; margin-bottom: 8px; }
  .feat-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

  /* ── FOOTER ── */
  footer {
    border-top: 1px solid var(--border);
    padding: 32px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    max-width: 1100px;
    margin: 0 auto;
  }
  .footer-logo { font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--text); }
  .footer-logo span { color: var(--accent); }
  .badge-demo {
    background: rgba(255,107,107,0.12);
    border: 1px solid rgba(255,107,107,0.25);
    color: var(--accent3);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-head);
    letter-spacing: 0.5px;
  }

  /* ── TOAST ── */
  .toast {
    position: fixed;
    bottom: 28px; right: 28px;
    background: var(--surface2);
    border: 1px solid var(--accent);
    color: var(--text);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    z-index: 999;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.3s;
    font-family: var(--font-head);
  }
  .toast.show { transform: translateY(0); opacity: 1; }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    nav {
      padding: 16px 20px;
      align-items: flex-start;
      gap: 12px;
    }
    .nav-links { display: none; }
    .theme-toggle {
      padding: 1px !important;
      gap: 2px !important;
    }
    .theme-toggle-btn {
      padding: 4px 8px !important;
      font-size: 10px !important;
      min-height: auto !important;
      gap: 2px !important;
    }
    .theme-toggle-btn .t-icon {
      font-size: 10px !important;
    }
    .theme-divider {
      height: 10px !important;
    }
    .nav-badge {
      position: static;
      left: auto;
      transform: none;
      margin-top: 8px;
      width: 100%;
      justify-content: center;
    }
    .hero {
      padding: 56px 18px 32px;
    }
    .hero-orb { display: none; }
    .hero h1 { font-size: clamp(34px, 9vw, 48px); }
    .hero-sub {
      margin-top: 16px;
      font-size: 16px;
      max-width: 100%;
    }
    .hero-cta {
      margin-top: 28px;
      flex-direction: column;
      align-items: stretch;
    }
    .btn-primary,
    .btn-secondary {
      width: 100%;
      justify-content: center;
      padding: 14px 0;
    }
    .stats {
      padding: 0 18px;
      flex-direction: column;
    }
    .stat {
      min-width: auto;
      border-right: none;
      border-bottom: 1px solid var(--border);
      padding: 18px 0;
    }
    .stat:last-child { border-bottom: none; }
    .main {
      padding: 0 18px;
      grid-template-columns: 1fr;
      gap: 20px;
    }
    .form-panel {
      position: static;
      top: auto;
      padding: 22px;
    }
    .right-panel { gap: 18px; }
    .tab-bar {
      overflow-x: auto;
      padding-bottom: 4px;
    }
    .tab-btn {
      white-space: nowrap;
      flex: none;
      min-width: 100px;
    }
    .browser-bar {
      flex-wrap: wrap;
      gap: 10px;
    }
    .browser-url { width: 100%; }
    .preview-body {
      height: 62vh;
      min-height: 380px;
      overflow: hidden;
    }
    .preview-scale-bar { display: flex !important; }
    .preview-scale-btn { font-size: 11px; padding: 5px 10px; }
    .features { padding: 0 18px; }
    .section-title { font-size: clamp(28px, 8vw, 34px); }
    .feat-grid { grid-template-columns: 1fr; }
    .feat-card { padding: 20px; }
    .pricing { padding: 0 18px; }
    .price-grid { grid-template-columns: 1fr; }
    .price-card { padding: 28px 22px; }
    footer { padding: 24px 18px; flex-direction: column; gap: 14px; text-align: center; }
    .form-group label { font-size: 11px; }
    .select-wrap::after { right: 12px; }
    .gallery-upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .arch-flow { gap: 6px; }
    .arch-node .arch-box { min-width: 100px; }
    .rule-box { font-size: 11px; }
    .toast { bottom: 20px; right: 16px; left: 16px; }
  }
  /* ═══════════════════════════════════════════════════════
     EXHIBITION MOBILE OPTIMIZATIONS
     Target: 360px–430px handphone portrait
     ═══════════════════════════════════════════════════════ */
  @media (max-width: 768px) {

    /* ── 1. BODY PADDING untuk gesture bar iOS/Android ── */
    body {
      padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* ── 2. NAV — compact, tidak overlap konten ── */
    nav {
      padding: 12px 16px !important;
    }
    .nav-badge {
      font-size: 11px !important;
      padding: 6px 12px !important;
      position: static !important;
      left: auto !important;
      transform: none !important;
      margin: 0 !important;
      width: auto !important;
    }

    /* ── 3. HERO — breathing room yang pas ── */
    .hero {
      padding: 80px 18px 100px !important;
    }
    .hero-ring,
    .hero-datastream { display: none !important; }
    .hero-backdrop-img { filter: blur(2px) saturate(0.5) brightness(0.22) !important; }

    /* ── 4. FORM PANEL — panelkan penuh tanpa sticky ── */
    .form-panel {
      position: static !important;
      padding: 20px 16px !important;
      border-radius: 16px !important;
    }

    /* ── 5. INPUT — tinggi tap-friendly ── */
    .form-group input,
    .form-group select {
      padding: 13px 14px !important;
      font-size: 16px !important;
      border-radius: 10px !important;
      min-height: 48px !important;
    }

    /* ── 6. CHIPS — grid 2 kolom di mobile, mudah dipencet ── */
    .chip-group {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 8px !important;
    }
    .chip {
      text-align: center !important;
      padding: 11px 10px !important;
      font-size: 11px !important;
      min-height: 44px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      -webkit-tap-highlight-color: transparent !important;
    }

    /* ── 7. GENERATE BUTTON — lebih besar dan jelas ── */
    .btn-generate,
    button[onclick="generate()"],
    button[onclick*="generate"] {
      min-height: 54px !important;
      font-size: 16px !important;
      border-radius: 14px !important;
      letter-spacing: 0.3px !important;
    }

    /* ── 8. DOWNLOAD BUTTON ── */
    .btn-download,
    button[onclick="downloadHTML()"] {
      min-height: 50px !important;
      font-size: 14px !important;
      border-radius: 12px !important;
    }

    /* ── 9. TAB BAR — sticky di top saat scroll ── */
    .tab-bar {
      position: sticky !important;
      top: 64px !important;
      z-index: 50 !important;
      background: var(--surface) !important;
      backdrop-filter: blur(12px) !important;
      -webkit-backdrop-filter: blur(12px) !important;
      padding: 8px 4px !important;
      border-radius: 12px !important;
      margin-bottom: 8px !important;
    }
    .tab-btn {
      min-height: 40px !important;
      font-size: 13px !important;
      padding: 8px 16px !important;
      -webkit-tap-highlight-color: transparent !important;
    }

    /* ── 10. PREVIEW SCALE BAR — tombol lebih gampang dipencet ── */
    .preview-scale-btn {
      min-height: 38px !important;
      padding: 8px 16px !important;
      font-size: 12px !important;
      -webkit-tap-highlight-color: transparent !important;
    }

    /* ── 11. PREVIEW BODY — gunakan lebih banyak layar ── */
    .preview-body {
      height: 58vh !important;
      min-height: 340px !important;
      border-radius: 0 0 14px 14px !important;
    }

    /* ── 12. FEATURES & PRICING section spacing ── */
    .features,
    .pricing {
      padding: 0 14px !important;
      margin-top: 48px !important;
    }
    .feat-card {
      padding: 18px 16px !important;
    }
    .section-title {
      font-size: clamp(24px, 7.5vw, 32px) !important;
    }

    /* ── 13. THEME TOGGLE — compact di mobile ── */
    .theme-toggle-btn {
      padding: 4px 8px !important;
      font-size: 10px !important;
      min-height: auto !important;
      gap: 2px !important;
      -webkit-tap-highlight-color: transparent !important;
    }
    .theme-toggle-btn .t-icon {
      font-size: 10px !important;
    }

    /* ── 14. GALLERY UPLOAD — tap area lebih jelas ── */
    .gallery-upload-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 10px !important;
    }
    .gallery-frame {
      min-height: 110px !important;
      border-radius: 12px !important;
    }

    /* ── 15. TOAST — full bottom, tidak terblock ── */
    .toast {
      bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
      left: 14px !important;
      right: 14px !important;
      width: auto !important;
      max-width: 100% !important;
      font-size: 13px !important;
    }

    /* ── 16. BROWSER BAR URL ── */
    .browser-url {
      font-size: 11px !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
    }

    /* ── 17. RIGHT PANEL order — Preview duluan ── */
    .right-panel {
      display: flex !important;
      flex-direction: column !important;
    }

    /* ── 18. Smooth scroll & momentum ── */
    .main,
    .tab-content {
      -webkit-overflow-scrolling: touch !important;
    }
  }

  /* Extra kecil — 360px (Redmi, Galaxy A series) */
  @media (max-width: 380px) {
    .chip-group {
      grid-template-columns: 1fr 1fr !important;
    }
    .hero h1 {
      font-size: clamp(28px, 9vw, 36px) !important;
    }
    .theme-toggle-btn {
      padding: 10px 12px !important;
      font-size: 12px !important;
    }
    .form-group input,
    .form-group select {
      font-size: 15px !important;
    }
    .btn-generate,
    button[onclick="generate()"] {
      font-size: 15px !important;
    }
  }

  /* ── CSS UNTUK HARGA (PRICING) ── */
  .pricing {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 48px;
  }
  .price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
  }
  .price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
  }
  /* Efek Hover */
  .price-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }
  /* Highlight Paket Best Seller */
  .price-card.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(124,110,255,0.08) 0%, var(--surface) 100%);
    transform: scale(1.05);
  }
  .price-card.featured:hover { transform: scale(1.05) translateY(-10px); }

  .p-title {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent2);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
  }
  .p-price {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text);
  }
  .p-price span {
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
  }
  .p-list {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
  }
  .p-list li {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .p-list li::before {
    content: '✓';
    color: var(--accent2);
    font-weight: 900;
  }
  .btn-price {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--surface2);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
    border: 1px solid var(--border);
  }
  .btn-price:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
  }
  .featured .btn-price {
    background: var(--accent);
    border-color: var(--accent);
  }

  @media (max-width: 768px) {
    .price-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: scale(1); }
  }

  /* ══════════════════════════════════════════════════════
     LIGHT MODE — Ocean Breeze: Teal, Sky & Coral Theme
  ══════════════════════════════════════════════════════ */
  body.light-mode {
    --bg: #F4F8FC;
    --surface: #FFFFFF;
    --surface2: #E4F2FA;
    --border: rgba(0,150,200,0.14);
    --text: #0A2233;
    --muted: #3A6E88;
    --accent: #007FAF;
    --accent2: #D95A28;
    --accent3: #B83420;
    --warm: #F07848;
    --nav-bg: rgba(244,248,252,0.90);
    --log-bg: #0A2233;
    background:
      radial-gradient(ellipse 120% 55% at 50% -5%, rgba(0,180,220,0.13) 0%, transparent 58%),
      radial-gradient(ellipse 80% 55% at -8% 40%, rgba(0,150,200,0.10) 0%, transparent 58%),
      radial-gradient(ellipse 70% 50% at 112% 65%, rgba(224,90,43,0.09) 0%, transparent 58%),
      #F4F8FC;
    background-attachment: fixed;
  }

  /* Nav */
  body.light-mode nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0,130,160,0.08);
  }
  body.light-mode .nav-logo { color: var(--text); }
  body.light-mode .nav-logo span { color: var(--accent); }
  body.light-mode .nav-links a { color: var(--muted); }
  body.light-mode .nav-links a:hover { color: var(--accent); }
  body.light-mode .nav-badge {
    background: rgba(0,150,180,0.09);
    border-color: rgba(0,150,180,0.28);
    color: var(--accent);
  }
  
  /* Light mode hamburger menu */
  body.light-mode .hamburger-btn span {
    background: var(--text);
  }
  body.light-mode .mobile-menu {
    background: rgba(244,248,252,0.95);
    border-bottom-color: var(--border);
  }
  body.light-mode .mobile-menu a {
    color: var(--muted);
    border-top-color: rgba(0,160,200,0.1);
  }
  body.light-mode .mobile-menu a:hover {
    color: var(--text);
    background: rgba(0,160,200,0.05);
  }

  /* ═══════════════════════════════════════════════════
     LIGHT MODE — Cinematic Bright AI Aesthetic
     Tone: Morning light, frosted glass, airy tech
     ═══════════════════════════════════════════════════ */

  /* ── Light body background — soft morning gradient ── */
  body.light-mode {
    background:
      /* Top — soft sky blue spotlight */
      radial-gradient(ellipse 120% 55% at 50% -5%, rgba(0,180,220,0.13) 0%, transparent 58%),
      /* Left — cool teal breath */
      radial-gradient(ellipse 80% 55% at -8% 40%, rgba(0,150,200,0.10) 0%, transparent 58%),
      /* Right — warm peach accent */
      radial-gradient(ellipse 70% 50% at 112% 65%, rgba(224,90,43,0.09) 0%, transparent 58%),
      /* Centre — warm soft glow */
      radial-gradient(ellipse 55% 40% at 68% 55%, rgba(0,160,200,0.06) 0%, transparent 60%),
      /* Base — cool white */
      #F4F8FC;
    background-attachment: fixed;
  }

  /* ── Light mode neural canvas — visible, teal-tinted ── */
  body.light-mode #neural-canvas {
    opacity: 0.28;
    filter: hue-rotate(185deg) saturate(0.7) brightness(0.45);
  }

  /* ── Light mode hero backdrop — bright frosted glass ── */
  body.light-mode .hero-backdrop-img {
    /* Bright abstract tech image — circuit/glass aesthetic */
    background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1600&q=75&auto=format&fit=crop');
    filter: blur(3px) saturate(0.25) brightness(2.2) opacity(0.18);
    transform: scale(1.12);
  }
  body.light-mode .hero-backdrop::after {
    background:
      /* Strong left fade — white dominates where text is */
      linear-gradient(110deg, rgba(244,248,252,0.97) 0%, rgba(244,248,252,0.82) 42%, rgba(220,238,252,0.35) 100%),
      /* Bottom fade into page */
      linear-gradient(to bottom, transparent 50%, rgba(244,248,252,1.0) 100%),
      /* Very soft teal tint on right image area */
      linear-gradient(135deg, rgba(0,160,200,0.08) 0%, transparent 55%);
  }

  /* ── Light mode: hero rings — elegant teal outlines ── */
  body.light-mode .hero-ring {
    border-color: rgba(0,160,200,0.18);
    box-shadow: 0 0 32px rgba(0,160,200,0.06);
  }
  body.light-mode .hero-ring::before {
    border-color: rgba(224,90,43,0.13);
  }
  body.light-mode .hero-ring::after {
    border-color: rgba(0,160,200,0.09);
  }

  /* ── Light mode: data stream — soft sky blue ── */
  body.light-mode .hero-datastream {
    background: linear-gradient(to bottom,
      transparent 0%,
      rgba(0,160,200,0.22) 30%,
      rgba(0,200,220,0.40) 50%,
      rgba(0,160,200,0.22) 70%,
      transparent 100%
    );
    opacity: 0.4;
  }

  /* ── Light mode: scan line — soft sky blue shimmer ── */
  body.light-mode .ai-scanline {
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(0,160,200,0.06) 20%,
      rgba(0,200,220,0.18) 50%,
      rgba(0,160,200,0.06) 80%,
      transparent 100%
    );
    opacity: 0;
  }

  /* ── Light mode: orb-5 — soft warm peach glow ── */
  body.light-mode .ai-orb-5 {
    background: radial-gradient(circle,
      rgba(224,90,43,0.12) 0%,
      rgba(244,132,95,0.06) 50%,
      transparent 72%
    );
    filter: blur(55px);
  }

  /* ── Light mode: aurora line — vivid teal-to-amber ── */
  body.light-mode .ai-aurora {
    height: 2px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(0,150,200,0.0) 8%,
      rgba(0,180,220,0.70) 28%,
      rgba(224,90,43,0.85) 50%,
      rgba(0,180,220,0.70) 72%,
      rgba(0,150,200,0.0) 92%,
      transparent 100%
    );
    box-shadow:
      0 0 22px 3px rgba(0,180,220,0.22),
      0 0 50px 5px rgba(224,90,43,0.12);
  }
  body.light-mode .ai-aurora::after {
    background: linear-gradient(to bottom,
      rgba(0,180,220,0.09) 0%,
      rgba(224,90,43,0.04) 35%,
      transparent 100%
    );
  }

  /* ── Light mode: circuit grid — soft teal visible ── */
  body.light-mode::before {
    opacity: 0.26;
    background-image:
      radial-gradient(circle, rgba(0,150,200,0.30) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,150,200,0.05) 1px, transparent 1px),
      linear-gradient(0deg,  rgba(0,150,200,0.05) 1px, transparent 1px);
    background-size: 48px 48px, 48px 48px, 48px 48px;
    mask-image: radial-gradient(ellipse 110% 80% at 50% 0%, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 110% 80% at 50% 0%, black 0%, transparent 80%);
  }

  /* ── Light mode: ambient orbs — soft, visible, airy ── */
  body.light-mode .ai-orb-1 {
    background: radial-gradient(circle,
      rgba(0,180,220,0.20) 0%,
      rgba(0,150,200,0.09) 45%,
      transparent 72%
    );
    filter: blur(44px);
  }
  body.light-mode .ai-orb-2 {
    background: radial-gradient(circle,
      rgba(224,90,43,0.17) 0%,
      rgba(244,132,95,0.07) 45%,
      transparent 72%
    );
    filter: blur(44px);
  }
  body.light-mode .ai-orb-3 {
    background: radial-gradient(circle,
      rgba(0,180,220,0.14) 0%,
      rgba(0,150,200,0.06) 50%,
      transparent 72%
    );
    filter: blur(54px);
  }
  body.light-mode .ai-orb-4 {
    background: radial-gradient(circle,
      rgba(224,90,43,0.13) 0%,
      rgba(244,132,95,0.05) 50%,
      transparent 72%
    );
    filter: blur(54px);
  }

  /* ── Light mode: form panel — crisp white glass card ── */
  body.light-mode .form-panel {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(0,160,200,0.22);
    box-shadow:
      0 0 0 1px rgba(0,160,200,0.07),
      0 24px 60px rgba(0,130,180,0.12),
      0  4px 12px rgba(0,0,0,0.04),
      inset 0 1px 0 rgba(255,255,255,1.0);
  }
  body.light-mode .form-panel::before {
    background: linear-gradient(90deg,
      transparent,
      rgba(0,180,220,0.55),
      rgba(224,90,43,0.55),
      transparent
    );
  }

  /* Hero */
  body.light-mode .hero-orb {
    background: radial-gradient(circle at 40% 40%, rgba(224,90,43,0.15) 0%, rgba(0,150,180,0.06) 45%, transparent 70%);
  }
  body.light-mode .hero-eyebrow {
    background: rgba(224,90,43,0.08);
    border-color: rgba(224,90,43,0.3);
    color: var(--accent2);
  }
  body.light-mode .hero-eyebrow::before { background: var(--accent2); }
  body.light-mode .hero h1 { color: var(--text); }
  body.light-mode .hero h1 .grad {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  body.light-mode .hero-sub { color: var(--muted); }

  /* Buttons */
  body.light-mode .btn-primary {
    background: var(--accent2);
    color: #fff;
    box-shadow: 0 4px 16px rgba(224,90,43,0.3);
  }
  body.light-mode .btn-primary:hover {
    background: #C8471C;
    box-shadow: 0 8px 24px rgba(224,90,43,0.4);
  }
  body.light-mode .btn-secondary {
    color: var(--text);
    border-color: rgba(0,130,160,0.25);
    background: rgba(255,255,255,0.75);
  }
  body.light-mode .btn-secondary:hover { background: var(--surface2); }

  /* Stats */
  body.light-mode .stats {
    border-color: var(--border);
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
  }
  body.light-mode .stat { border-right-color: var(--border); }
  body.light-mode .stat-num { color: var(--accent2); }
  body.light-mode .stat-label { color: var(--muted); }

  /* Form panel */
  body.light-mode .form-panel {
    background: #FFFFFF;
    border-color: var(--border);
    box-shadow: 0 4px 32px rgba(0,130,160,0.09), 0 1px 4px rgba(0,0,0,0.04);
  }
  body.light-mode .panel-title { color: var(--text); }
  body.light-mode .panel-title .dot {
    background: var(--accent2);
    box-shadow: 0 0 10px rgba(224,90,43,0.55);
  }
  body.light-mode .form-group label { color: var(--muted); }
  body.light-mode .form-group input,
  body.light-mode .form-group select {
    background: var(--surface2);
    border-color: rgba(0,130,160,0.18);
    color: var(--text);
  }
  body.light-mode .form-group input:focus,
  body.light-mode .form-group select:focus { border-color: var(--accent); }
  body.light-mode .form-group input::placeholder { color: #7AAAB8; }

  /* Chips */
  body.light-mode .chip {
    background: var(--surface2);
    border-color: rgba(0,130,160,0.2);
    color: var(--muted);
  }
  body.light-mode .chip.on {
    background: rgba(0,150,180,0.12);
    border-color: rgba(0,150,180,0.45);
    color: var(--accent);
  }

  /* Generate button */
  body.light-mode .btn-gen {
    background: linear-gradient(135deg, var(--accent2), #F4845F);
    color: #fff;
    box-shadow: 0 4px 20px rgba(224,90,43,0.35);
  }
  body.light-mode .btn-gen:hover {
    background: linear-gradient(135deg, #C8471C, #E06A45);
    box-shadow: 0 6px 28px rgba(224,90,43,0.45);
  }

  /* Tab bar */
  body.light-mode .tab-bar {
    background: var(--surface2);
    border-bottom-color: var(--border);
  }
  body.light-mode .tab-btn { color: var(--muted); }
  body.light-mode .tab-btn.active {
    background: #FFFFFF;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
  }

  /* Preview panel */
  body.light-mode .preview-panel,
  body.light-mode .preview-body {
    background: var(--surface2);
    border-color: var(--border);
  }
  body.light-mode .browser-bar {
    background: #FFFFFF;
    border-bottom-color: var(--border);
  }
  body.light-mode .browser-url { color: var(--muted); }
  body.light-mode .empty-preview { background: var(--surface2); }

  /* Log panel — stays dark for readability */
  body.light-mode .log-panel { border-color: var(--border); }
  body.light-mode .log-header {
    background: #0A2233;
    color: #5BAFC8;
    border-bottom-color: rgba(255,255,255,0.07);
  }
  body.light-mode .log-body { background: #0A2233; }

  /* Arch panel */
  body.light-mode .arch-panel {
    background: #FFFFFF;
    border-color: var(--border);
    box-shadow: 0 4px 24px rgba(0,130,160,0.07);
  }
  body.light-mode .rule-box {
    background: var(--surface2);
    border-color: var(--border);
    color: var(--muted);
  }

  /* Feature cards */
  body.light-mode .feat-card {
    background: #FFFFFF;
    border-color: var(--border);
    box-shadow: 0 2px 16px rgba(0,130,160,0.06);
  }
  body.light-mode .feat-card:hover {
    border-color: rgba(0,150,180,0.4);
    box-shadow: 0 10px 36px rgba(0,130,160,0.13);
  }
  body.light-mode .feat-card h3 { color: var(--text); }
  body.light-mode .feat-card p { color: var(--muted); }
  body.light-mode .section-label { color: var(--accent); }
  body.light-mode .section-title { color: var(--text); }

  /* Pricing cards */
  body.light-mode .price-card {
    background: #FFFFFF;
    border-color: var(--border);
    box-shadow: 0 2px 16px rgba(0,130,160,0.06);
  }
  body.light-mode .price-card:hover {
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(0,130,160,0.15);
  }
  body.light-mode .price-card.featured {
    border-color: var(--accent2);
    background: linear-gradient(180deg, rgba(224,90,43,0.06) 0%, #FFFFFF 100%);
    box-shadow: 0 8px 40px rgba(224,90,43,0.15);
  }
  body.light-mode .p-title { color: var(--accent); }
  body.light-mode .p-price { color: var(--text); }
  body.light-mode .p-price span { color: var(--muted); }
  body.light-mode .p-list li { color: var(--muted); }
  body.light-mode .p-list li::before { color: var(--accent2); }
  body.light-mode .btn-price {
    background: var(--surface2);
    border-color: var(--border);
    color: var(--text);
  }
  body.light-mode .btn-price:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
  body.light-mode .featured .btn-price {
    background: var(--accent2);
    border-color: var(--accent2);
    color: #fff;
  }
  body.light-mode .price-badge { background: var(--accent2); color: #fff; }

  /* About section */
  body.light-mode #tentang > div {
    background: #FFFFFF !important;
    border-color: var(--border) !important;
    box-shadow: 0 2px 16px rgba(0,130,160,0.06);
  }
  body.light-mode #tentang h3 { color: var(--text) !important; }
  body.light-mode #tentang p { color: var(--muted) !important; }
  body.light-mode #tentang strong { color: var(--accent) !important; }

  /* Footer */
  body.light-mode footer {
    border-top-color: var(--border);
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(8px);
  }
  body.light-mode .footer-logo { color: var(--text); }
  body.light-mode .footer-logo span { color: var(--accent); }
  body.light-mode footer > div { color: var(--muted) !important; }
  body.light-mode .badge-demo {
    background: rgba(224,90,43,0.1);
    border-color: rgba(224,90,43,0.3);
    color: var(--accent2);
  }

  /* Toast */
  body.light-mode .toast {
    background: #FFFFFF;
    border-color: var(--accent2);
    color: var(--text);
    box-shadow: 0 6px 24px rgba(224,90,43,0.18);
  }

  /* ══ THEME TOGGLE BUTTON ══ */
  .theme-toggle {
    position: static;
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(124,110,255,0.2);
    border-radius: 99px;
    padding: 2px;
    box-shadow: none;
    backdrop-filter: none;
    transition: all 0.3s;
  }
  .theme-toggle:hover {
    border-color: rgba(124,110,255,0.4);
    background: rgba(124,110,255,0.08);
    backdrop-filter: blur(8px);
  }
  body.light-mode .theme-toggle {
    background: transparent;
    border-color: rgba(0,150,180,0.2);
    box-shadow: none;
  }
  body.light-mode .theme-toggle:hover {
    border-color: rgba(0,150,180,0.4);
    background: rgba(0,150,180,0.08);
    box-shadow: none;
  }
  .theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 99px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    letter-spacing: 0.2px;
  }
  .theme-toggle-btn .t-icon { font-size: 12px; transition: transform 0.3s; }
  .theme-toggle-btn:hover { color: var(--text); }
  .theme-toggle-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: none;
  }
  body.light-mode .theme-toggle-btn.active {
    background: var(--accent2);
    box-shadow: none;
  }
  .theme-toggle-btn.active .t-icon { transform: rotate(20deg); }
  .theme-divider {
    width: 1px;
    height: 12px;
    background: rgba(124,110,255,0.15);
    flex-shrink: 0;
  }

  
