/* --- BASE & FONT STYLES --- */
body {
  background-color: #121212;
  color: #e0e0e0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* --- TOP NAVIGATION BAR --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* --- MAIN PAGE CONTAINER & SCROLLING SECTIONS --- */
.homepage-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide-section {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  box-sizing: border-box;
  padding: 5rem 1rem 1rem 1rem;
}

.slide-content {
  width: 100%;
  max-width: 1100px;
  padding: clamp(1.5rem, 5vw, 4rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.anim-child {
  will-change: transform, opacity;
}


/* --- SECTION & TYPOGRAPHY STYLES --- */
.hero-section, .text-section, .image-section, .dual-text-section {
  width: 100%;
}

.hero-title {
  font-size: 5.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 400;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin: 1.5rem 0 1.5rem;
  padding-left: 0.3em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #a0a0a0;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-title {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.section-paragraph {
  font-size: 1.2rem;
  color: #a0a0a0;
  max-width: 800px;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
}


/* --- IMAGE & LAYOUT STYLES --- */
.showcase-image, .showcase-video {
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    display: block;
}

.dual-text-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.text-block { 
    flex: 1; 
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem; 
}

.text-block .section-title,
.text-block .section-paragraph {
    margin: 0;
}

.text-block.flex-grow-2 {
    flex-grow: 3;
}

.text-block .section-title {
    font-size: 2.5rem;
    text-align: left;
}
.text-block .section-paragraph {
    font-size: 1.1rem;
    text-align: left;
    max-width: none;
}

.dual-text-section .showcase-video,
.dual-text-section .showcase-image {
    margin-bottom: 0;
}


/* --- CUSTOM CONTENT STYLES --- */
.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 12px 24px;
    background-color: #fff;
    color: #000;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 600px;
    text-align: left;
    font-size: 1.1rem;
    color: #a0a0a0;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #333;
}

.feature-list li:first-child {
    border-top: 1px solid #333;
}

.feature-list li::before {
    content: '✓';
    color: #fff;
    margin-right: 1rem;
    font-weight: 600;
}

.feature-list-centered {
    text-align: center;
    display: inline-block;
}


/* --- LOGO GRID STYLES --- */
/* --- LOGO GRID STYLES (Redesigned for 4x4) --- */
/* --- LOGO GRID STYLES (Bulletproof 4x4) --- */
.grid-header {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 0.5rem !important;
    opacity: 0.7;
}

.logo-grid {
    display: grid !important; /* Forces grid even inside flex columns */
    grid-template-columns: repeat(4, 1fr) !important; 
    grid-template-rows: repeat(4, 1fr) !important;
    gap: 12px;
    width: 100%;
    max-width: 320px; /* Limits the total size of the grid area */
    margin: 0 auto;
}

.logo-grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #222;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden; /* Prevents oversized SVGs from leaking out */
    transition: transform 0.2s ease;
}

.logo-grid-item:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.08);
    border-color: #444;
}

/* THE CRITICAL PART: This tames the oversized SVGs */
.logo-grid-item img {
    width: 100%;
    height: 100%;
    max-width: 32px;  /* Set this to the size you want the icons to be */
    max-height: 32px;
    object-fit: contain;
    display: block;
}

/* Tablet & Mobile: Ensure it stays 4x4 */
@media (max-width: 768px) {
    .logo-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 280px;
    }
}

/* 1. Target the text-block that contains the grid to center its flex children */
.text-block:has(.logo-grid) {
    align-items: center; 
    text-align: center;
}

/* 2. Update the header to ensure it's centered and matches the grid width */
.grid-header {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 1rem !important;
    opacity: 0.7;
    
    /* Force centering */
    text-align: center;
    width: 100%;
    max-width: 320px; /* Match this to your .logo-grid max-width */
}

/* 3. Ensure the grid itself is centered */
.logo-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px;
    width: 100%;
    max-width: 320px; /* The header and grid now share this width */
    margin: 0 auto !important; /* Standard centering */
}

/* 4. Ensure the icons stay constrained */
.logo-grid-item img {
    width: 100%;
    height: 100%;
    max-width: 30px; 
    max-height: 30px;
    object-fit: contain;
}

/* --- RESPONSIVE STYLES for MOBILE --- */
@media (max-width: 768px) {
  .nav-links {
      position: absolute;
      top: 100%;
      right: 0;
      width: 100%;
      background: #121212;
      flex-direction: column;
      align-items: center;
      padding: 1rem 0;
      transform: translateY(-10%);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .top-nav.nav-open .nav-links {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
  }

  .nav-toggle {
      display: block;
  }

  .top-nav.nav-open .nav-toggle span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
  }
  .top-nav.nav-open .nav-toggle span:nth-child(2) {
      opacity: 0;
  }
  .top-nav.nav-open .nav-toggle span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
  }

  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .section-title { font-size: 2.5rem; }
  
  .dual-text-section { 
    flex-direction: column; 
    gap: 2rem; 
  }

  .text-block, 
  .text-block .section-title, 
  .text-block .section-paragraph { 
    text-align: center; 
  }

  /* Adjust grid for mobile for better spacing */
  .logo-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
  }
}
/* Standard Page Layout (Non-Slide) */
.page-container {
    padding: 120px 2rem 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    text-align: center;
}

.page-header {
    margin-bottom: 4rem;
}

.note-text {
    margin-top: 3rem;
    color: #666;
    font-size: 0.9rem;
}

/* Active Nav State */
.nav-links a.active {
    color: #fff;
    border-bottom: 2px solid #fff;
}

/* --- PRICING GRID --- */
.pricing-grid {
    display: grid;
    /* Use auto-fit to create responsive columns, min width 300px */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    /* CHANGE 1: Remove 'align-items: center' so cards stretch to equal height */
    align-items: stretch; 
    margin-bottom: 3rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: box-shadow 0.2s, border-color 0.2s;
    /* CHANGE 2: Ensure card takes full height of the grid cell */
    height: 100%; 
    box-sizing: border-box;
}

.pricing-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: #555;
    /* Removed transform Y to keep alignment perfect */
}

/* Featured Card (Full Suite) */
.pricing-card.featured {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #fff;
    /* CHANGE 3: Removed scale(1.05) to ensure identical physical size */
    z-index: 1; 
}

/* Make the title/price section rigid, but allow the list to grow */
.pricing-card h3,
.pricing-card .price,
.pricing-card .license-type {
    flex-shrink: 0;
}

/* Pushes the button to the bottom so they all align */
.pricing-card .cta-button {
    margin-top: auto; 
}

/* Ensure the middle list takes up space properly */
.specialized-list, .feature-list {
    margin-bottom: 2rem;
    flex-grow: 1; /* Allows this area to fill space if needed */
    width: 100%;
}

.badge {
    position: absolute;
    top: -12px;
    background: #fff;
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.pricing-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.license-type {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Specialized List (Details/Summary) */
.specialized-list {
    text-align: left;
}

.specialized-list details {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    cursor: pointer;
    color: #e0e0e0;
}

.specialized-list summary {
    outline: none;
    list-style: none;
    font-weight: 500;
}
.specialized-list summary::-webkit-details-marker { display: none; }

.specialized-list summary::after {
    content: '+'; 
    float: right; 
    font-weight: bold;
    color: #a0a0a0;
}
.specialized-list details[open] summary::after {
    content: '-';
    color: #fff;
}

.specialized-list p {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Small Feature List for Cards */
.small-list {
    font-size: 0.95rem;
    text-align: left;
}
.small-list li { padding: 0.5rem 0; border-bottom: 1px solid #333; }
.small-list li:last-child { border-bottom: none; }

.cta-button.outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}
.cta-button.outline:hover {
    background: #fff;
    color: #000;
}

/* --- DOWNLOADS GRID --- */
.download-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.download-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 3rem 2rem;
    width: 250px;
    text-align: center;
    transition: all 0.2s;
}

.download-card.active-os:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.os-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.download-card h3 {
    color: #fff;
    margin: 0.5rem 0;
}

.download-card p {
    color: #888;
    margin-bottom: 2rem;
}

.cta-button.disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none !important;
}

/* Mobile Adjustments for new pages */
@media (max-width: 768px) {
    .pricing-card.featured {
        transform: scale(1);
    }
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

/* --- BUTTON GROUP (Homepage) --- */
.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-group .cta-button {
    /* FORCE IDENTICAL WIDTH */
    width: 200px; 
    text-align: center;
    box-sizing: border-box;
    padding: 12px 0; /* Vertical padding only, horizontal handled by width */
    margin-top: 0;
}

.cta-button.primary {
    background-color: #fff;
    color: #000;
    border: 1px solid #fff;
}

.cta-button.secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}


/* --- FEATURES PAGE OVERHAUL --- */
.table-section {
    margin-bottom: 8rem;
    width: 100%;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid #333;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    min-width: 600px;
}

.comparison-table th, .comparison-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #222;
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}
.comparison-table td:nth-child(1) {
    color: #ffa500; /* Orange Accent for Category Labels */
}

.comparison-table td:nth-child(2) {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}


.comparison-table td:nth-child(3) {
    color: #888;
}

.feature-sub-block {
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid #333;
}

.feature-sub-block h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.ui-mockup .term-header {
    background: #333;
    padding: 8px 15px;
    font-size: 0.8rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot.white { background: #fff; width: 8px; height: 8px; }


/* Feature Blocks (Alternating Layout) */
.feature-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
    text-align: left;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.feature-text p {
    color: #a0a0a0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Terminal Visualization */
.code-terminal {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
}

.term-header {
    background: #252526;
    padding: 10px;
    display: flex;
    gap: 6px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; display: block; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.term-body {
    padding: 20px;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.term-body .cmd { color: #fff; }
.term-body .log { color: #888; }
.term-body .err { color: #ff5f56; }
.term-body .success { color: #27c93f; }


/* UI Mockup for Player */
.ui-mockup {
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.ui-content {
    padding: 20px;
    color: #444;
}

.ui-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 180px;
    height: 100px;
    background: #222;
    border: 1px solid #555;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    color: #fff;
}

.play-icon { font-size: 1.5rem; margin-bottom: 5px; }


/* Tech Grid for Engines */
.grid-section {
    margin-bottom: 6rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.2s;
}

.tech-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.06);
}

.tech-card h3 {
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    background: #333;
    color: #aaa;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.tech-card p {
    color: #888;
    margin: 0;
    font-size: 0.95rem;
}

.final-cta {
    margin: 4rem 0;
    padding-top: 4rem;
    border-top: 1px solid #333;
}
.final-cta h2 { color: #fff; margin-bottom: 2rem; }


/* Responsive Features */
@media (max-width: 768px) {
    .feature-block, .feature-block.reverse {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    
    .feature-text {
        text-align: center;
    }

    .cta-group {
        flex-direction: column;
        align-items: center; /* This centers the buttons horizontally in a column */
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        gap: 1rem; /* Slightly tighter gap for mobile */
    }

    .cta-group .cta-button {
        width: 100%; /* Ensures buttons are the same width */
        margin-top: 0;
    }
}

/* --- SIDE PAGINATION --- */
.side-pagination {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.nav-dot {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    group;
}

/* The actual dot */
.nav-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* The label (hidden by default) */
.nav-label {
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

/* Hover & Active States */
.nav-dot:hover .nav-label {
    opacity: 1;
    transform: translateX(0);
}

.nav-dot:hover::after {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.5);
}

.nav-dot.active::after {
    background-color: #fff;
    transform: scale(1.8);
}

/* Hide on small mobile screens to prevent clutter */
@media (max-width: 600px) {
    .side-pagination { display: none; }
}

/* ADD TO style.css */
.site-footer {
    padding: 60px 20px;
    border-top: 1px solid #222;
    margin-top: 80px;
    text-align: center;
    background: #0a0a0a;
}
.footer-legal {
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}