/* ========================================
   Visual Engine — Virtual Studio
   Landing Page Styles
   ======================================== */

   *,
   *::before,
   *::after {
       margin: 0;
       padding: 0;
       box-sizing: border-box;
   }
   
   :root {
       --black: #000000;
       --surface: #0a0a0a;
       --surface-2: #111111;
       --surface-3: #1a1a1a;
       --border: #222222;
       --border-light: #333333;
       --text: #f5f5f5;
       --text-secondary: #a0a0a0;
       --text-muted: #666666;
   
       --gradient-primary: linear-gradient(90deg, #8c52ff, #5ce1e6);
       --gradient-warm: linear-gradient(180deg, #494141, #ffc33c);
       --gradient-accent: linear-gradient(135deg, #8c52ff, #5ce1e6);
       --gradient-logo-text: linear-gradient(180deg, #8a7a5c, #ebbd33);
   
       --purple: #8c52ff;
       --cyan: #5ce1e6;
       --gold: #ffc33c;
   
       --radius: 12px;
       --radius-lg: 20px;
       --radius-sm: 8px;
       --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   }
   
   html {
       scroll-behavior: smooth;
       -webkit-font-smoothing: antialiased;
       -moz-osx-font-smoothing: grayscale;
   }
   
   body {
       font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
       background-color: var(--black);
       color: var(--text);
       line-height: 1.6;
       overflow-x: hidden;
   }
   
   .container {
       max-width: 1200px;
       margin: 0 auto;
       padding: 0 24px;
   }
   
   /* ========================================
      Navigation
      ======================================== */
   
   .nav {
       position: fixed;
       top: 0;
       left: 0;
       right: 0;
       z-index: 1000;
       padding: 16px 0;
       background: rgba(0, 0, 0, 0.7);
       backdrop-filter: blur(20px);
       -webkit-backdrop-filter: blur(20px);
       border-bottom: 1px solid rgba(255, 255, 255, 0.05);
   }
   
.nav-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-spacer {
    display: none;
}
   
   .nav-logo {
       display: flex;
       align-items: center;
       text-decoration: none;
   }
   
   .logo-img {
       height: 90px;
       width: auto;
   }
   
   .nav-links {
       display: flex;
       align-items: center;
       gap: 32px;
   }
   
   .nav-link {
       color: var(--text-secondary);
       text-decoration: none;
       font-size: 14px;
       font-weight: 500;
       letter-spacing: 0.01em;
       transition: color var(--transition);
   }
   
   .nav-link:hover {
       color: var(--text);
   }
   
   /* ========================================
      Buttons
      ======================================== */
   
   .btn {
       display: inline-flex;
       align-items: center;
       justify-content: center;
       padding: 12px 28px;
       font-size: 14px;
       font-weight: 600;
       font-family: inherit;
       text-decoration: none;
       border-radius: var(--radius-sm);
       cursor: pointer;
       transition: all var(--transition);
       letter-spacing: 0.01em;
       border: none;
   }
   
   .btn-primary {
       background: var(--gradient-primary);
       color: #000;
       position: relative;
   }
   
   .btn-primary:hover {
       opacity: 0.9;
       transform: translateY(-1px);
       box-shadow: 0 8px 32px rgba(140, 82, 255, 0.3);
   }
   
  .btn-outline {
      background: transparent;
      color: var(--text);
      border: 1px solid var(--border-light);
  }
  
  .btn-outline:hover {
      border-color: var(--text-secondary);
      background: rgba(255, 255, 255, 0.04);
  }

  .btn-login {
      background: transparent;
      color: #a78bfa;
      border: 1px solid rgba(140, 82, 255, 0.45);
      transition: background 0.2s, border-color 0.2s, color 0.2s;
  }

  .btn-login:hover {
      background: rgba(140, 82, 255, 0.1);
      border-color: rgba(140, 82, 255, 0.8);
      color: #c4b5fd;
  }
   
   .btn-lg {
       padding: 16px 36px;
       font-size: 15px;
       border-radius: var(--radius);
   }
   
   /* ========================================
      Hero
      ======================================== */
   
   .hero {
       min-height: 100vh;
       display: flex;
       align-items: center;
       justify-content: center;
       text-align: center;
       padding: 140px 24px 100px;
       position: relative;
   }
   
   .hero::before {
       content: '';
       position: absolute;
       top: 0;
       left: 50%;
       transform: translateX(-50%);
       width: 800px;
       height: 800px;
       background: radial-gradient(circle, rgba(140, 82, 255, 0.08) 0%, transparent 70%);
       pointer-events: none;
   }
   
   .hero-badge {
       display: inline-flex;
       align-items: center;
       gap: 8px;
       padding: 8px 20px;
       background: rgba(140, 82, 255, 0.1);
       border: 1px solid rgba(140, 82, 255, 0.2);
       border-radius: 100px;
       font-size: 13px;
       font-weight: 500;
       color: var(--cyan);
       letter-spacing: 0.02em;
       margin-bottom: 40px;
   }
   
   .hero-title {
       font-size: clamp(40px, 7vw, 80px);
       font-weight: 700;
       line-height: 1.08;
       letter-spacing: -0.03em;
       margin-bottom: 28px;
   }
   
   .gradient-text {
       background: var(--gradient-primary);
       -webkit-background-clip: text;
       -webkit-text-fill-color: transparent;
       background-clip: text;
       font-size: 0.55em;
   }
   
   .logo-text-gradient {
       background: var(--gradient-logo-text);
       -webkit-background-clip: text;
       -webkit-text-fill-color: transparent;
       background-clip: text;
       opacity: 1.99;
   }
   
.hero-subtitle {
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    font-weight: 400;
}
   
   .hero-actions {
       display: flex;
       gap: 16px;
       justify-content: center;
       flex-wrap: wrap;
   }
   
   /* ========================================
      Sections
      ======================================== */
   
   .section {
       padding: 120px 0;
   }
   
   .section-dark {
       background: var(--surface);
   }
   
   .section-header {
       text-align: center;
       margin-bottom: 72px;
   }
   
   .section-title {
       font-size: clamp(28px, 4vw, 42px);
       font-weight: 700;
       letter-spacing: -0.02em;
       margin-bottom: 16px;
   }
   
   .section-subtitle {
       font-size: 17px;
       color: var(--text-secondary);
       max-width: 600px;
       margin: 0 auto;
       line-height: 1.7;
   }
   
   /* ========================================
      Cards (How It Works)
      ======================================== */
   
   .cards-grid {
       display: grid;
       grid-template-columns: repeat(3, 1fr);
       gap: 24px;
   }
   
   .card {
       background: var(--surface);
       border: 1px solid var(--border);
       border-radius: var(--radius-lg);
       padding: 40px 32px;
       transition: all var(--transition);
       position: relative;
       overflow: hidden;
   }
   
   .card::before {
       content: '';
       position: absolute;
       top: 0;
       left: 0;
       right: 0;
       height: 2px;
       background: var(--gradient-primary);
       opacity: 0;
       transition: opacity var(--transition);
   }
   
   .card:hover {
       border-color: var(--border-light);
       transform: translateY(-4px);
   }
   
   .card:hover::before {
       opacity: 1;
   }
   
   .card-number {
       font-size: 48px;
       font-weight: 700;
       background: var(--gradient-primary);
       -webkit-background-clip: text;
       -webkit-text-fill-color: transparent;
       background-clip: text;
       margin-bottom: 24px;
       line-height: 1;
   }
   
   .card-title {
       font-size: 18px;
       font-weight: 600;
       margin-bottom: 16px;
       letter-spacing: -0.01em;
   }
   
   .card-text {
       font-size: 15px;
       color: var(--text-secondary);
       line-height: 1.7;
   }
   
   /* ========================================
      Showcase (Before / After)
      ======================================== */
   
   .showcase {
       display: flex;
       flex-direction: column;
       gap: 64px;
   }
   
   .showcase-pair {
       display: flex;
       align-items: center;
       gap: 24px;
       justify-content: center;
   }
   
   .showcase-item {
       flex: 1;
       max-width: 480px;
       position: relative;
       border-radius: var(--radius-lg);
       overflow: hidden;
       border: 1px solid var(--border);
       background: var(--surface-2);
   }
   
   .showcase-item img {
       width: 100%;
       height: 360px;
       object-fit: cover;
       display: block;
   }
   
   .showcase-label {
       position: absolute;
       top: 16px;
       left: 16px;
       padding: 6px 16px;
       background: rgba(0, 0, 0, 0.7);
       backdrop-filter: blur(8px);
       border-radius: 100px;
       font-size: 12px;
       font-weight: 600;
       letter-spacing: 0.06em;
       text-transform: uppercase;
       color: var(--text-secondary);
       border: 1px solid rgba(255, 255, 255, 0.1);
   }
   
   .showcase-label-ai {
       background: rgba(140, 82, 255, 0.25);
       color: var(--cyan);
       border-color: rgba(140, 82, 255, 0.3);
   }
   
   .showcase-arrow {
       color: var(--text-muted);
       flex-shrink: 0;
   }
   
   /* ========================================
      Architecture Grid
      ======================================== */
   
   .arch-grid {
       display: grid;
       grid-template-columns: repeat(2, 1fr);
       gap: 24px;
   }
   
   .arch-item {
       background: var(--surface);
       border: 1px solid var(--border);
       border-radius: var(--radius-lg);
       padding: 36px 32px;
       transition: all var(--transition);
   }
   
   .arch-item:hover {
       border-color: var(--border-light);
   }
   
   .arch-icon {
       width: 56px;
       height: 56px;
       display: flex;
       align-items: center;
       justify-content: center;
       border-radius: var(--radius);
       background: rgba(140, 82, 255, 0.08);
       border: 1px solid rgba(140, 82, 255, 0.15);
       color: var(--purple);
       margin-bottom: 20px;
   }
   
   .arch-item h4 {
       font-size: 17px;
       font-weight: 600;
       margin-bottom: 10px;
       letter-spacing: -0.01em;
   }
   
   .arch-item p {
       font-size: 14px;
       color: var(--text-secondary);
       line-height: 1.7;
   }
   
   /* ========================================
      CTA Section
      ======================================== */
   
   .section-cta {
       padding: 120px 0;
       text-align: center;
       position: relative;
       overflow: hidden;
   }
   
   .section-cta::before {
       content: '';
       position: absolute;
       bottom: 0;
       left: 50%;
       transform: translateX(-50%);
       width: 900px;
       height: 500px;
       background: radial-gradient(ellipse, rgba(92, 225, 230, 0.06) 0%, transparent 70%);
       pointer-events: none;
   }
   
   .cta-title {
       font-size: clamp(28px, 4vw, 40px);
       font-weight: 700;
       letter-spacing: -0.02em;
       margin-bottom: 16px;
   }
   
   .cta-text {
       font-size: 17px;
       color: var(--text-secondary);
       max-width: 560px;
       margin: 0 auto 40px;
       line-height: 1.7;
   }
   
   /* ========================================
      Footer
      ======================================== */
   
   .footer {
       padding: 40px 0;
       border-top: 1px solid var(--border);
   }
   
   .footer-inner {
       display: flex;
       align-items: center;
       justify-content: space-between;
   }
   
   .footer-copy {
       font-size: 13px;
       color: var(--text-muted);
   }
   
   .footer-link {
       font-size: 13px;
       color: var(--text-secondary);
       text-decoration: none;
       transition: color var(--transition);
   }
   
   .footer-link:hover {
       color: var(--text);
   }
   
/* ========================================
   Demo Page
   ======================================== */

.demo-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 24px 80px;
    position: relative;
}

.demo-page::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(140, 82, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.demo-container {
    max-width: 640px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.demo-header {
    text-align: center;
    margin-bottom: 36px;
    margin-top: 0;
}

.demo-header h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-header p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.demo-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--purple);
    background: var(--surface-3);
    box-shadow: 0 0 0 3px rgba(140, 82, 255, 0.1);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
}

.form-select option {
    background: var(--surface-2);
    color: var(--text);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-submit {
    width: 100%;
    margin-top: 8px;
    font-size: 16px;
    padding: 14px;
}

.form-note {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 40px;
    transition: color var(--transition);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    position: fixed;
    top: 100px;
    left: 24px;
    z-index: 100;
}

.back-link:hover {
    color: var(--text);
    border-color: var(--border-light);
}
   
   /* ========================================
      Success Message
      ======================================== */
   
   .form-success {
       display: none;
       text-align: center;
       padding: 48px 32px;
   }
   
   .form-success.visible {
       display: block;
   }
   
   .form-success svg {
       color: var(--cyan);
       margin-bottom: 24px;
   }
   
   .form-success h3 {
       font-size: 22px;
       font-weight: 600;
       margin-bottom: 12px;
   }
   
   .form-success p {
       font-size: 15px;
       color: var(--text-secondary);
       line-height: 1.6;
   }
   
   /* ========================================
      Responsive
      ======================================== */
   
   @media (max-width: 900px) {
       .cards-grid {
           grid-template-columns: 1fr;
       }
   
       .arch-grid {
           grid-template-columns: 1fr;
       }
   
       .showcase-pair {
           flex-direction: column;
       }
   
       .showcase-item {
           max-width: 100%;
       }
   
       .showcase-arrow {
           transform: rotate(90deg);
       }
   
       .showcase-item img {
           height: 280px;
       }
   }
   
   @media (max-width: 640px) {
       .nav-inner {
           padding: 0 16px;
       }
   
       .logo-img {
           height: 36px;
       }
   
       .nav-links {
           gap: 16px;
       }
   
       .nav-link {
           display: none;
       }
   
       .hero {
           padding: 120px 16px 80px;
       }
   
       .hero-subtitle {
           font-size: 16px;
       }
   
       .hero-actions {
           flex-direction: column;
           align-items: center;
       }
   
       .section {
           padding: 80px 0;
       }
   
       .section-cta {
           padding: 80px 0;
       }
   
       .card {
           padding: 32px 24px;
       }
   
       .footer-inner {
           flex-direction: column;
           gap: 12px;
           text-align: center;
       }
   
       .demo-form {
           padding: 28px 20px;
       }
   
       .form-row {
           grid-template-columns: 1fr;
       }
   
       .showcase-item img {
           height: 220px;
       }
   }