/* ========================================
   HC CHIP PAGE - World Class Design
   ======================================== */

/* Universal Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Disable double-tap zoom on mobile */
html, body {
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Allow text selection for content and input fields */
input, textarea, select, p, h1, h2, h3, h4, h5, h6, span, a {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

html.theme-dark ::-webkit-scrollbar-track {
    background: #111;
}

html.theme-dark ::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 6px;
}

html.theme-dark ::-webkit-scrollbar-thumb:hover {
    background: #00b8e6;
}

html.theme-light ::-webkit-scrollbar-track {
    background: #f0f0f0;
}

html.theme-light ::-webkit-scrollbar-thumb {
    background: #1F75FE;
    border-radius: 6px;
}

html.theme-light ::-webkit-scrollbar-thumb:hover {
    background: #1565D8;
}

/* ========================================
   PARTICLES BACKGROUND
   ======================================== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

html.theme-dark #particles-js {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
}

html.theme-light #particles-js {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 50%, #f8f8f8 100%);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 120px;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

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

/* CPU Animation */
.hero-animation {
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
    animation: slideInFromTop 0.8s ease-out;
    animation-fill-mode: both;
}

html.theme-light .hero-animation {
    filter: drop-shadow(0 0 30px rgba(31, 117, 254, 0.3));
}

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

/* Animated Text Output */
.output {
    margin: 40px 0;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.output h1 {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0.5px;
    white-space: pre-wrap;
    word-break: keep-all;
    overflow-wrap: normal;
    word-wrap: normal;
    hyphens: none;
}

/* Prevent individual character spans from breaking across lines */
.output h1 .char-fade {
    white-space: nowrap;
}

html.theme-dark .output h1 {
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

html.theme-light .output h1 {
    color: #1F75FE;
    text-shadow: 0 0 20px rgba(31, 117, 254, 0.3);
}

/* Vision Button */
.vision-button-wrapper {
    margin-top: 50px;
    animation: slideInFromBottom 0.8s ease-out 0.3s;
    animation-fill-mode: both;
}

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

.vision-button {
    display: inline-block;
    padding: 16px 48px;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html.theme-dark .vision-button {
    background: linear-gradient(135deg, #00d4ff 0%, #0088cc 100%);
    color: #000000;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

html.theme-light .vision-button {
    background: linear-gradient(135deg, #1F75FE 0%, #1565D8 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(31, 117, 254, 0.4);
}

.vision-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.5s ease;
}

.vision-button:hover::before {
    left: 100%;
}

.vision-button:hover {
    transform: translateY(-3px);
}

html.theme-dark .vision-button:hover {
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
}

html.theme-light .vision-button:hover {
    box-shadow: 0 15px 40px rgba(31, 117, 254, 0.6);
}

.vision-button:active {
    transform: translateY(-1px);
}

/* ========================================
   ABOUT SECTION - REDESIGNED
   ======================================== */
.about-section {
    position: relative;
    padding: 100px 20px;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow-x: hidden;
    overflow-y: visible !important;
    max-height: none !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: auto;
}

.about-section::-webkit-scrollbar {
    width: 0;
    height: 0;
}

html.theme-dark .about-section {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

html.theme-light .about-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

/* About Header with Icon */
.about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    position: relative;
}

.about-icon-animation {
    width: 200px;
    height: 200px;
    position: relative;
    margin-bottom: 30px;
}

/* Theme-specific animation colors */
html.theme-light .about-icon-animation {
    filter: invert(1) grayscale(1) brightness(2) contrast(2);
}

html.theme-dark .about-icon-animation {
    filter: grayscale(1) brightness(0.7) contrast(4);
}

.about-header h2 {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
}

html.theme-dark .about-header h2 {
    color: #00d4ff;
}

html.theme-light .about-header h2 {
    color: #1F75FE;
}

/* About Main Content */
.about-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    overflow-wrap: break-word;
}

.about-lead {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 20px;
    line-height: 1.8;
    margin: 0;
    font-weight: 500;
}

html.theme-dark .about-lead {
    color: #f0f0f0;
}

html.theme-light .about-lead {
    color: #222222;
}

.about-text p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
}

html.theme-dark .about-text p {
    color: #e0e0e0;
}

html.theme-light .about-text p {
    color: #333333;
}

/* About Footnote - Subtle Development Timeline */
.about-footnote {
    font-size: 11px !important;
    font-style: italic;
    opacity: 0.4;
    margin-top: 20px !important;
    letter-spacing: 0.3px;
}

html.theme-dark .about-footnote {
    color: #808080 !important;
}

html.theme-light .about-footnote {
    color: #999999 !important;
}

/* About Visual - Large Plane Animation */
.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
    max-width: 100%;
    position: relative;
}

.about-large-animation {
    width: 100%;
    max-width: 500px;
    height: 400px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

/* Dark theme - match section background */
html.theme-dark .about-large-animation {
    background: rgba(10, 10, 10, 0.8);
}

/* Light theme - keep white background */
html.theme-light .about-large-animation {
    background: #ffffff;
}

/* ========================================
   UNIVERSAL ARCHITECTURE SECTION
   ======================================== */
.architecture-section {
    position: relative;
    padding: 100px 20px;
    z-index: 1;
}

html.theme-dark .architecture-section {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.9) 0%, rgba(5, 5, 5, 0.95) 100%);
}

html.theme-light .architecture-section {
    background: linear-gradient(180deg, rgba(248, 248, 248, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.architecture-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Architecture Grid */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-bottom: 80px;
}

.architecture-card {
    position: relative;
    padding: 40px 30px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.architecture-card:nth-child(1) {
    animation-delay: 0.2s;
}

.architecture-card:nth-child(2) {
    animation-delay: 0.4s;
}

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

html.theme-dark .architecture-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 2px solid rgba(0, 212, 255, 0.25);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.15);
}

html.theme-light .architecture-card {
    background: linear-gradient(135deg, rgba(31, 117, 254, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 2px solid rgba(31, 117, 254, 0.25);
    box-shadow: 0 15px 50px rgba(31, 117, 254, 0.15);
}

.architecture-card:hover {
    transform: translateY(-8px);
}

html.theme-dark .architecture-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 20px 70px rgba(0, 212, 255, 0.25);
}

html.theme-light .architecture-card:hover {
    border-color: rgba(31, 117, 254, 0.5);
    box-shadow: 0 20px 70px rgba(31, 117, 254, 0.25);
}

/* Animation Wrapper */
.architecture-animation-wrapper {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
}

html.theme-dark .architecture-animation-wrapper {
    background: rgba(0, 0, 0, 0.4);
}

html.theme-light .architecture-animation-wrapper {
    background: rgba(0, 0, 0, 0.03);
}

.architecture-animation {
    width: 200px;
    height: 200px;
}

/* Card Title */
.architecture-card-title {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

html.theme-dark .architecture-card-title {
    color: #00d4ff;
}

html.theme-light .architecture-card-title {
    color: #1F75FE;
}

/* Card Text */
.architecture-card-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
}

html.theme-dark .architecture-card-text {
    color: #d0d0d0;
}

html.theme-light .architecture-card-text {
    color: #444444;
}

/* Video Section */
.architecture-video-section {
    margin-top: 60px;
    animation: fadeInUp 0.8s ease-out 0.6s;
    animation-fill-mode: both;
}

.architecture-video-title {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    text-align: center;
    margin: 0 0 40px 0;
    letter-spacing: 0.5px;
}

html.theme-dark .architecture-video-title {
    color: #00d4ff;
}

html.theme-light .architecture-video-title {
    color: #1F75FE;
}

.row {
    width: 100%;
}

/* Video Wrapper */
.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.rnu-video {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    display: block;
    border: none;
}

html.theme-dark .rnu-video {
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.2);
}

html.theme-light .rnu-video {
    box-shadow: 0 20px 60px rgba(31, 117, 254, 0.3);
    border: 2px solid rgba(31, 117, 254, 0.2);
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-it-works-section {
    position: relative;
    padding: 100px 20px;
    z-index: 1;
    overflow: hidden;
}

html.theme-dark .how-it-works-section {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
}

html.theme-light .how-it-works-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 248, 0.98) 100%);
}

.how-it-works-header {
    text-align: center;
    margin-bottom: 80px;
}

/* Workflow Container - Horizontal Layout */
.workflow-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Individual Workflow Step */
.workflow-step {
    position: relative;
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInScale 0.8s ease-out;
    animation-fill-mode: both;
    min-height: 380px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.workflow-step[data-step="1"] {
    animation-delay: 0.2s;
}

.workflow-step[data-step="2"] {
    animation-delay: 0.4s;
}

.workflow-step[data-step="3"] {
    animation-delay: 0.6s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

html.theme-dark .workflow-step {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 2px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

html.theme-light .workflow-step {
    background: linear-gradient(135deg, rgba(31, 117, 254, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 2px solid rgba(31, 117, 254, 0.2);
    box-shadow: 0 10px 40px rgba(31, 117, 254, 0.1);
}

.workflow-step:hover {
    transform: translateY(-8px);
}

html.theme-dark .workflow-step:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.25);
}

html.theme-light .workflow-step:hover {
    border-color: rgba(31, 117, 254, 0.5);
    box-shadow: 0 20px 60px rgba(31, 117, 254, 0.25);
}

/* Step Number Circle */
.step-number {
    margin-bottom: 24px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.number-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    transition: all 0.4s ease;
}

html.theme-dark .number-circle {
    background: linear-gradient(135deg, #00d4ff 0%, #0088cc 100%);
    color: #000000;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6),
                inset 0 2px 8px rgba(255, 255, 255, 0.3);
}

html.theme-light .number-circle {
    background: linear-gradient(135deg, #1F75FE 0%, #1565D8 100%);
    color: #ffffff;
    box-shadow: 0 0 30px rgba(31, 117, 254, 0.6),
                inset 0 2px 8px rgba(255, 255, 255, 0.4);
}

.workflow-step:hover .number-circle {
    transform: rotate(360deg) scale(1.1);
}

html.theme-dark .workflow-step:hover .number-circle {
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.9),
                inset 0 2px 8px rgba(255, 255, 255, 0.4);
}

html.theme-light .workflow-step:hover .number-circle {
    box-shadow: 0 0 50px rgba(31, 117, 254, 0.9),
                inset 0 2px 8px rgba(255, 255, 255, 0.5);
}

/* Step Content */
.step-content {
    width: 100%;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.step-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

/* Framework Logos */
.framework-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.framework-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.pytorch-logo {
    height: 24px;
}

html.theme-light .framework-logo {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.workflow-step:hover .framework-logo {
    transform: scale(1.1) translateY(-4px);
}

html.theme-dark .workflow-step:hover .framework-logo {
    filter: drop-shadow(0 8px 20px rgba(0, 212, 255, 0.4));
}

html.theme-light .workflow-step:hover .framework-logo {
    filter: drop-shadow(0 8px 20px rgba(31, 117, 254, 0.4));
}

/* Step Icon */
.step-icon {
    font-size: 48px;
    line-height: 1;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.workflow-step:hover .step-icon {
    transform: scale(1.15) rotate(10deg);
}

/* Step Title */
.step-title {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

html.theme-dark .step-title {
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

html.theme-light .step-title {
    color: #1F75FE;
    text-shadow: 0 0 15px rgba(31, 117, 254, 0.2);
}

/* Step Description */
.step-description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

html.theme-dark .step-description {
    color: #d0d0d0;
}

html.theme-light .step-description {
    color: #444444;
}

/* Workflow Arrows */
.workflow-arrow {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeInArrow 0.8s ease-out forwards;
}

.workflow-arrow[data-arrow="1"] {
    animation-delay: 0.5s;
}

.workflow-arrow[data-arrow="2"] {
    animation-delay: 0.7s;
}

@keyframes fadeInArrow {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.workflow-arrow svg {
    width: 100%;
    height: 100%;
}

html.theme-dark .arrow-line {
    stroke: #00d4ff;
    stroke-dasharray: 5, 5;
    animation: dashFlow 1.5s linear infinite;
}

html.theme-light .arrow-line {
    stroke: #1F75FE;
    stroke-dasharray: 5, 5;
    animation: dashFlow 1.5s linear infinite;
    marker-end: url(#arrowhead-light) !important;
}

@keyframes dashFlow {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: 20;
    }
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-section {
    position: relative;
    padding: 100px 20px 120px;
    z-index: 1;
}

.section-title {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

html.theme-dark .section-title {
    color: #00d4ff;
}

html.theme-light .section-title {
    color: #1F75FE;
}

.section-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 20px;
    text-align: center;
    margin: 0 0 60px 0;
}

html.theme-dark .section-subtitle {
    color: #b0b0b0;
}

html.theme-light .section-subtitle {
    color: #666666;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Product Cards */
.product-card {
    position: relative;
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

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

html.theme-dark .product-card {
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

html.theme-light .product-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(31, 117, 254, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
}

html.theme-dark .product-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

html.theme-light .product-card:hover {
    border-color: rgba(31, 117, 254, 0.5);
    box-shadow: 0 20px 60px rgba(31, 117, 254, 0.3);
}

/* Featured Product */
.product-card.featured {
    transform: scale(1.05);
}

html.theme-dark .product-card.featured {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(20, 20, 20, 0.9) 100%);
    border-color: rgba(0, 212, 255, 0.4);
}

html.theme-light .product-card.featured {
    background: linear-gradient(135deg, rgba(31, 117, 254, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-color: rgba(31, 117, 254, 0.4);
}

.product-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
}

html.theme-dark .product-badge {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.4);
}

html.theme-light .product-badge {
    background: rgba(31, 117, 254, 0.2);
    color: #1F75FE;
    border: 1px solid rgba(31, 117, 254, 0.4);
}

/* Product Price Badge */
.product-price-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
}

html.theme-dark .product-price-badge {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

html.theme-light .product-price-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Product Images */
.product-images {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

html.theme-dark .product-images {
    background: rgba(0, 0, 0, 0.5);
}

html.theme-light .product-images {
    background: rgba(0, 0, 0, 0.05);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.5s ease-in-out, transform 0.4s ease;
}

/* Crossfade images for Core-0 product */
.core-0-crossfade-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.core-0-crossfade-img.active {
    opacity: 1;
}

#core-0-img {
    opacity: 1;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-card:hover .core-0-crossfade-img {
    transform: scale(1.1);
}

.product-img-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .product-img-secondary {
    opacity: 1;
}

/* Image Dots for Color Variations */
.image-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    margin: -16px 0 0 0;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

html.theme-dark .dot {
    background: rgba(255, 255, 255, 0.3);
}

html.theme-light .dot {
    background: rgba(0, 0, 0, 0.3);
}

html.theme-dark .dot.active {
    background: #00d4ff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

html.theme-light .dot.active {
    background: #1F75FE;
    box-shadow: 0 0 8px rgba(31, 117, 254, 0.5);
}

.dot:hover {
    transform: scale(1.3);
}

/* Custom HC Chips Image Sizing */
.custom-chip-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-chip-image .product-img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-card:hover .custom-chip-image .product-img {
    transform: scale(1.05);
}

/* Product Animation */
.product-animation {
    width: 100%;
    height: 250px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

html.theme-dark .product-animation {
    background: rgba(0, 0, 0, 0.5);
}

html.theme-light .product-animation {
    background: rgba(0, 0, 0, 0.05);
}

#custom-chip-animation {
    width: 150px;
    height: 150px;
}

/* Product Title */
.product-title {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
}

html.theme-dark .product-title {
    color: #00d4ff;
}

html.theme-light .product-title {
    color: #1F75FE;
}

/* Product Description */
.product-description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

html.theme-dark .product-description {
    color: #d0d0d0;
}

html.theme-light .product-description {
    color: #444444;
}

/* Product Features */
.product-features {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.feature-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

html.theme-dark .feature-item {
    color: #b0b0b0;
}

html.theme-light .feature-item {
    color: #555555;
}

/* Product Actions Container */
.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

/* Details Button */
.details-button {
    padding: 14px;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

html.theme-dark .details-button {
    background: rgba(255, 255, 255, 0.05);
    color: #00d4ff;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

html.theme-light .details-button {
    background: rgba(0, 0, 0, 0.03);
    color: #1F75FE;
    border: 2px solid rgba(31, 117, 254, 0.3);
}

.details-button:hover {
    transform: translateY(-2px);
}

html.theme-dark .details-button:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

html.theme-light .details-button:hover {
    background: rgba(31, 117, 254, 0.1);
    border-color: rgba(31, 117, 254, 0.5);
    box-shadow: 0 8px 20px rgba(31, 117, 254, 0.3);
}

/* Pre-order Button */
.preorder-button {
    padding: 14px;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

html.theme-dark .preorder-button {
    background: linear-gradient(135deg, #00d4ff 0%, #0088cc 100%);
    color: #000000;
    border: 2px solid rgba(0, 212, 255, 0.5);
}

html.theme-light .preorder-button {
    background: linear-gradient(135deg, #1F75FE 0%, #1565D8 100%);
    color: #ffffff;
    border: 2px solid rgba(31, 117, 254, 0.5);
}

.preorder-button:hover {
    transform: translateY(-2px);
}

html.theme-dark .preorder-button:hover {
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

html.theme-light .preorder-button:hover {
    box-shadow: 0 8px 25px rgba(31, 117, 254, 0.5);
}

/* Demo Button (Full Width for Custom HC Chips) */
.demo-button {
    width: 100%;
}

.demo-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

html.theme-dark .demo-button {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

html.theme-light .demo-button {
    background: rgba(31, 117, 254, 0.1);
    color: #1F75FE;
    border: 2px solid rgba(31, 117, 254, 0.3);
}

/* ========================================
   MODAL SYSTEM
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent backdrop from scrolling */
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    animation: slideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    scroll-behavior: smooth; /* Smooth desktop scroll */
    will-change: scroll-position; /* Optimize scroll performance */
    overscroll-behavior: none; /* Prevent scroll chaining */
    padding-bottom: 40px; /* Ensure bottom content is reachable */
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 85vh; /* Slightly reduce height to ensure it fits */
        margin: 10% auto; /* More top margin */
        padding-bottom: 80px; /* Extra padding for mobile browsers with bottom bars */
    }
}

html.theme-dark .modal-content {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 80px rgba(0, 212, 255, 0.3);
}

html.theme-light .modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 248, 0.98) 100%);
    border: 2px solid rgba(31, 117, 254, 0.3);
    box-shadow: 0 20px 80px rgba(31, 117, 254, 0.3);
}

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

/* Modal Close Button */
.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

html.theme-dark .modal-close {
    color: #00d4ff;
}

html.theme-light .modal-close {
    color: #1F75FE;
}

.modal-close:hover {
    transform: rotate(90deg);
}

html.theme-dark .modal-close:hover {
    background: rgba(0, 212, 255, 0.15);
}

html.theme-light .modal-close:hover {
    background: rgba(31, 117, 254, 0.15);
}

/* Modal Title */
.modal-title {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 28px;
    font-weight: 700;
    padding: 30px 30px 20px;
    margin: 0;
    border-bottom: 2px solid;
}

html.theme-dark .modal-title {
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.2);
}

html.theme-light .modal-title {
    color: #1F75FE;
    border-color: rgba(31, 117, 254, 0.2);
}

/* Modal Body */
.modal-body {
    padding: 30px;
}

/* Config Section */
.config-section {
    margin-bottom: 30px;
}

.config-title {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

html.theme-dark .config-title {
    color: #00d4ff;
}

html.theme-light .config-title {
    color: #1F75FE;
}

/* Color Options */
.color-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

html.theme-dark .color-option {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

html.theme-light .color-option {
    background: rgba(0, 0, 0, 0.02);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.color-option:hover {
    transform: translateY(-3px);
}

html.theme-dark .color-option:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

html.theme-light .color-option:hover {
    background: rgba(31, 117, 254, 0.05);
    border-color: rgba(31, 117, 254, 0.3);
}

html.theme-dark .color-option.selected {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

html.theme-light .color-option.selected {
    background: rgba(31, 117, 254, 0.1);
    border-color: #1F75FE;
    box-shadow: 0 0 20px rgba(31, 117, 254, 0.4);
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.beige-swatch {
    background: linear-gradient(135deg, #E8D4B0 0%, #C9B18A 100%);
}

.black-swatch {
    background: linear-gradient(135deg, #2a2a2a 0%, #000000 100%);
}

.teal-swatch {
    background: linear-gradient(135deg, #4DD9CB 0%, #2BA89F 100%);
}

.color-option span {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

html.theme-dark .color-option span {
    color: #d0d0d0;
}

html.theme-light .color-option span {
    color: #444444;
}

/* Memory Options */
.memory-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.memory-option {
    padding: 18px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

html.theme-dark .memory-option {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

html.theme-light .memory-option {
    background: rgba(0, 0, 0, 0.02);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.memory-option:hover {
    transform: translateX(5px);
}

html.theme-dark .memory-option:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

html.theme-light .memory-option:hover {
    background: rgba(31, 117, 254, 0.05);
    border-color: rgba(31, 117, 254, 0.3);
}

html.theme-dark .memory-option.selected {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

html.theme-light .memory-option.selected {
    background: rgba(31, 117, 254, 0.1);
    border-color: #1F75FE;
    box-shadow: 0 0 20px rgba(31, 117, 254, 0.4);
}

.memory-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.memory-size {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 600;
}

html.theme-dark .memory-size {
    color: #00d4ff;
}

html.theme-light .memory-size {
    color: #1F75FE;
}

.memory-price {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 20px;
    font-weight: 700;
}

html.theme-dark .memory-price {
    color: #ffffff;
}

html.theme-light .memory-price {
    color: #000000;
}

.memory-deposit {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

html.theme-dark .memory-deposit {
    color: #b0b0b0;
}

html.theme-light .memory-deposit {
    color: #666666;
}

/* Order Summary */
.order-summary {
    margin: 30px 0;
    padding: 25px;
    border-radius: 12px;
}

html.theme-dark .order-summary {
    background: rgba(0, 212, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.2);
}

html.theme-light .order-summary {
    background: rgba(31, 117, 254, 0.05);
    border: 2px solid rgba(31, 117, 254, 0.2);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
}

html.theme-dark .summary-row {
    color: #d0d0d0;
}

html.theme-light .summary-row {
    color: #444444;
}

.summary-row span:last-child {
    font-weight: 600;
}

html.theme-dark .summary-row span:last-child {
    color: #ffffff;
}

html.theme-light .summary-row span:last-child {
    color: #000000;
}

.summary-divider {
    height: 2px;
    margin: 15px 0;
}

html.theme-dark .summary-divider {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.3) 50%, transparent 100%);
}

html.theme-light .summary-divider {
    background: linear-gradient(90deg, transparent 0%, rgba(31, 117, 254, 0.3) 50%, transparent 100%);
}

.summary-total {
    font-size: 16px;
}

.summary-deposit {
    font-size: 18px;
    padding-top: 5px;
}

html.theme-dark .summary-deposit span:last-child {
    color: #00d4ff;
}

html.theme-light .summary-deposit span:last-child {
    color: #1F75FE;
}

/* Terms Section */
.terms-section {
    margin: 25px 0;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

html.theme-dark .terms-checkbox {
    background: rgba(255, 255, 255, 0.03);
}

html.theme-light .terms-checkbox {
    background: rgba(0, 0, 0, 0.02);
}

.terms-checkbox:hover {
    transform: translateX(3px);
}

html.theme-dark .terms-checkbox:hover {
    background: rgba(0, 212, 255, 0.08);
}

html.theme-light .terms-checkbox:hover {
    background: rgba(31, 117, 254, 0.05);
}

.terms-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #00d4ff;
}

html.theme-light .terms-checkbox input[type="checkbox"] {
    accent-color: #1F75FE;
}

.terms-checkbox span {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 500;
}

html.theme-dark .terms-checkbox span {
    color: #d0d0d0;
}

html.theme-light .terms-checkbox span {
    color: #444444;
}

.terms-text {
    margin-top: 15px;
    padding: 20px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

html.theme-dark .terms-text {
    background: rgba(0, 0, 0, 0.3);
    color: #b0b0b0;
}

html.theme-light .terms-text {
    background: rgba(0, 0, 0, 0.04);
    color: #666666;
}

.terms-text p {
    margin: 0 0 10px 0;
    font-weight: 600;
}

html.theme-dark .terms-text p {
    color: #00d4ff;
}

html.theme-light .terms-text p {
    color: #1F75FE;
}

.terms-text ul {
    margin: 10px 0;
    padding-left: 25px;
}

.terms-text li {
    margin: 8px 0;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modal-button {
    flex: 1;
    padding: 16px;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button.secondary {
    background: transparent;
}

html.theme-dark .modal-button.secondary {
    color: #00d4ff;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

html.theme-light .modal-button.secondary {
    color: #1F75FE;
    border: 2px solid rgba(31, 117, 254, 0.3);
}

.modal-button.secondary:hover {
    transform: translateY(-2px);
}

html.theme-dark .modal-button.secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.5);
}

html.theme-light .modal-button.secondary:hover {
    background: rgba(31, 117, 254, 0.1);
    border-color: rgba(31, 117, 254, 0.5);
}

.modal-button.primary {
    border: 2px solid transparent;
}

html.theme-dark .modal-button.primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0088cc 100%);
    color: #000000;
}

html.theme-light .modal-button.primary {
    background: linear-gradient(135deg, #1F75FE 0%, #1565D8 100%);
    color: #ffffff;
}

.modal-button.primary:hover {
    transform: translateY(-2px);
}

html.theme-dark .modal-button.primary:hover {
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

html.theme-light .modal-button.primary:hover {
    box-shadow: 0 8px 25px rgba(31, 117, 254, 0.5);
}

.modal-button.primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.modal-button.primary:disabled:hover {
    box-shadow: none;
}

/* Tech Details Modal Specific */
.specs-notice {
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

html.theme-dark .specs-notice {
    background: rgba(255, 165, 0, 0.1);
    border: 2px solid rgba(255, 165, 0, 0.3);
    color: #ffa500;
}

html.theme-light .specs-notice {
    background: rgba(255, 140, 0, 0.08);
    border: 2px solid rgba(255, 140, 0, 0.3);
    color: #ff8c00;
}

.specs-notice p {
    margin: 0;
}

.specs-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spec-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 15px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

html.theme-dark .spec-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html.theme-light .spec-row {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.spec-label {
    font-weight: 600;
}

html.theme-dark .spec-label {
    color: #00d4ff;
}

html.theme-light .spec-label {
    color: #1F75FE;
}

.spec-value {
    line-height: 1.6;
}

html.theme-dark .spec-value {
    color: #d0d0d0;
}

html.theme-light .spec-value {
    color: #444444;
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .about-main {
        gap: 40px;
    }
    
    .architecture-grid {
        gap: 40px;
    }
    
    /* How It Works - Tablet */
    .workflow-container {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 600px;
    }
    
    .workflow-arrow {
        width: 60px;
        height: 80px;
        margin: 0 auto;
        transform: rotate(90deg);
    }
    
    .workflow-arrow[data-arrow="1"],
    .workflow-arrow[data-arrow="2"] {
        animation: fadeInArrowVertical 0.8s ease-out forwards;
    }
    
    @keyframes fadeInArrowVertical {
        from {
            opacity: 0;
            transform: rotate(90deg) translateX(-20px);
        }
        to {
            opacity: 1;
            transform: rotate(90deg) translateX(0);
        }
    }
    
    .workflow-step {
        min-height: auto;
        padding: 35px 25px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px 100px;
    }
    
    .hero-animation {
        width: 150px;
        height: 150px;
        margin-bottom: 30px;
    }
    
    .output {
        min-height: 150px;
    }
    
    .output h1 {
        font-size: clamp(22px, 6vw, 32px);
    }
    
    .vision-button {
        padding: 14px 40px;
        font-size: 16px;
    }
    
    /* How It Works - Mobile */
    .how-it-works-section {
        padding: 60px 20px;
    }
    
    .how-it-works-header {
        margin-bottom: 60px;
    }
    
    .workflow-container {
        gap: 30px;
        max-width: 500px;
    }
    
    .workflow-arrow {
        height: 60px;
    }
    
    .workflow-step {
        padding: 30px 20px;
    }
    
    .number-circle {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .framework-logo {
        height: 28px;
    }
    
    .pytorch-logo {
        height: 20px;
    }
    
    .framework-logos {
        gap: 10px;
    }
    
    .step-icon {
        height: 64px;
        font-size: 40px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 15px;
    }
    
    /* About Section Mobile */
    .about-section {
        padding: 60px 20px;
    }
    
    .about-header {
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .about-icon-animation {
        width: 160px;
        height: 160px;
    }
    
    .about-header h2 {
        font-size: clamp(28px, 6vw, 36px);
    }
    
    .about-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-lead {
        font-size: 18px;
    }
    
    .about-text p {
        font-size: 16px;
    }
    
    .about-visual {
        min-height: 300px;
    }
    
    .about-large-animation {
        height: 300px;
        max-width: 400px;
    }
    
    /* Architecture Section Mobile */
    .architecture-section {
        padding: 60px 20px;
    }
    
    .architecture-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .architecture-card {
        padding: 30px 20px;
    }
    
    .architecture-animation-wrapper {
        height: 200px;
    }
    
    .architecture-animation {
        width: 150px;
        height: 150px;
    }
    
    .architecture-card-title {
        font-size: 22px;
    }
    
    .architecture-card-text {
        font-size: 16px;
    }
    
    .architecture-video-title {
        font-size: clamp(22px, 5vw, 28px);
        margin-bottom: 30px;
    }
    
    .video-wrapper {
        margin: 0 15px;
    }
    
    .rnu-video {
        height: 350px;
    }
    
    /* Products Section Mobile */
    .products-section {
        padding: 60px 20px 100px;
    }
    
    .section-title {
        font-size: clamp(28px, 7vw, 42px);
    }
    
    .section-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-card {
        padding: 30px 20px;
    }
    
    .product-card.featured {
        transform: scale(1);
    }
    
    .product-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .product-images {
        height: 200px;
    }
    
    .image-dots {
        gap: 5px;
    }
    
    .dot {
        width: 7px;
        height: 7px;
    }
    
    .custom-chip-image {
        padding: 15px;
    }
    
    .custom-chip-image .product-img {
        max-width: 90%;
        max-height: 90%;
    }
    
    .product-animation {
        height: 200px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-description {
        font-size: 15px;
    }
    
    .feature-item {
        font-size: 13px;
    }
    
    /* Modal Mobile Styles */
    .modal-content {
        width: 95%;
        margin: 3% auto;
        max-height: 94vh;
    }
    
    .modal-title {
        font-size: 24px;
        padding: 25px 20px 18px;
        padding-right: 60px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .color-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .color-option {
        padding: 12px 8px;
    }
    
    .color-swatch {
        width: 50px;
        height: 50px;
    }
    
    .color-option span {
        font-size: 12px;
    }
    
    .memory-option {
        padding: 15px;
    }
    
    .memory-size {
        font-size: 14px;
    }
    
    .memory-price {
        font-size: 18px;
    }
    
    .memory-deposit {
        font-size: 13px;
    }
    
    .order-summary {
        padding: 20px;
    }
    
    .summary-row {
        font-size: 14px;
    }
    
    .spec-row {
        grid-template-columns: 140px 1fr;
        gap: 15px;
        font-size: 13px;
    }
    
    .product-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .details-button,
    .preorder-button {
        font-size: 13px;
        padding: 12px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ======================================== */
@media (max-width: 480px) {
    .hero-section {
        padding: 50px 15px 90px;
    }
    
    .hero-animation {
        width: 120px;
        height: 120px;
    }
    
    .output {
        min-height: 120px;
    }
    
    .vision-button {
        padding: 12px 32px;
        font-size: 14px;
        letter-spacing: 1.5px;
    }
    
    /* How It Works - Small Mobile */
    .how-it-works-section {
        padding: 50px 15px;
    }
    
    .how-it-works-header {
        margin-bottom: 50px;
    }
    
    .workflow-container {
        gap: 25px;
        max-width: 400px;
    }
    
    .workflow-arrow {
        height: 50px;
    }
    
    .workflow-step {
        padding: 25px 15px;
    }
    
    .number-circle {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .framework-logo {
        height: 24px;
    }
    
    .pytorch-logo {
        height: 18px;
    }
    
    .framework-logos {
        gap: 8px;
    }
    
    .step-icon {
        height: 56px;
        font-size: 32px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* About Section Small Mobile */
    .about-section {
        padding: 50px 15px;
    }
    
    .about-icon-animation {
        width: 140px;
        height: 140px;
    }
    
    .about-header h2 {
        font-size: clamp(24px, 7vw, 32px);
    }
    
    .about-lead {
        font-size: 16px;
    }
    
    .about-text p {
        font-size: 15px;
    }
    
    .about-visual {
        min-height: 250px;
    }
    
    .about-large-animation {
        height: 250px;
        max-width: 300px;
    }
    
    /* Architecture Section Small Mobile */
    .architecture-section {
        padding: 50px 15px;
    }
    
    .architecture-card {
        padding: 25px 15px;
    }
    
    .architecture-animation-wrapper {
        height: 180px;
    }
    
    .architecture-animation {
        width: 130px;
        height: 130px;
    }
    
    .architecture-card-title {
        font-size: 20px;
    }
    
    .architecture-card-text {
        font-size: 15px;
    }
    
    .architecture-video-title {
        font-size: clamp(20px, 6vw, 24px);
    }
    
    .video-wrapper {
        margin: 0 10px;
    }
    
    .rnu-video {
        height: 280px;
    }
    
    /* Products Section Small Mobile */
    .products-section {
        padding: 50px 15px 90px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 25px 15px;
    }
    
    .product-badge {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .product-price-badge {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    /* Modal Small Mobile Styles */
    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 98vh;
    }
    
    .modal-title {
        font-size: 20px;
        padding: 20px 15px 15px;
        padding-right: 55px;
    }
    
    .modal-body {
        padding: 18px 15px;
    }
    
    .config-title {
        font-size: 16px;
    }
    
    .color-options {
        gap: 8px;
    }
    
    .color-option {
        padding: 10px 6px;
    }
    
    .color-swatch {
        width: 45px;
        height: 45px;
    }
    
    .color-option span {
        font-size: 11px;
    }
    
    .memory-option {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .memory-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .memory-size {
        font-size: 13px;
    }
    
    .memory-price {
        font-size: 16px;
    }
    
    .memory-deposit {
        font-size: 12px;
    }
    
    .order-summary {
        padding: 15px;
    }
    
    .summary-row {
        font-size: 13px;
    }
    
    .spec-row {
        grid-template-columns: 1fr;
        gap: 8px;
        font-size: 12px;
    }
    
    .spec-label {
        font-weight: 700;
    }
    
    .terms-text {
        font-size: 12px;
        padding: 15px;
    }
    
    .modal-button {
        font-size: 13px;
        padding: 14px;
    }
    
    .product-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .details-button,
    .preorder-button {
        font-size: 14px;
        padding: 14px;
    }
}

/* ========================================
   PWA OPTIMIZATIONS
   ======================================== */
@media (display-mode: standalone) {
    .hero-section {
        padding-top: max(80px, env(safe-area-inset-top, 80px));
    }
    
    .about-section,
    .how-it-works-section,
    .products-section {
        padding-bottom: max(100px, env(safe-area-inset-bottom, 100px));
    }
    
    /* Modal PWA-specific: Add padding to avoid status bar on mobile */
    .modal-content {
        margin-top: max(5%, calc(env(safe-area-inset-top, 20px) + 5%));
    }
    
    .modal-title {
        padding-top: max(30px, calc(env(safe-area-inset-top, 20px) + 10px));
    }
}

/* Additional PWA Mobile adjustments (for phones specifically) */
@media (display-mode: standalone) and (max-width: 768px) {
    .modal-content {
        margin-top: max(8%, calc(env(safe-area-inset-top, 20px) + 8%));
    }
    
    .modal-title {
        padding-top: max(35px, calc(env(safe-area-inset-top, 20px) + 15px));
    }
    
    .modal-close {
        top: max(20px, calc(env(safe-area-inset-top, 20px) + 5px));
    }
}

.back-button-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
    pointer-events: none;
    z-index: 100;
}

.back-button {
    /* Reset button styles */
    background: none;
    border: none;
    outline: none;
    
    /* Text styling */
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 600;
    letter-spacing: 2px;
    color: #000000;
    
    /* Layout */
    padding: 12px 32px;
    cursor: pointer;
    pointer-events: auto;
    
    /* Professional subtle effects */
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Subtle shadow for depth */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    
    /* Invisible background that appears on hover */
    border-radius: 8px;
}

/* Pseudo-element for the hover/active background */
.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: -1;
    transform: scale(0.9);
}

/* Hover state - elegant elevation */
.back-button:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.back-button:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Active/Click state - subtle press */
.back-button:active {
    transform: translateY(1px);
    text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.2);
}

.back-button:active::before {
    opacity: 1;
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.08);
}

/* Unique ripple effect on click */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.back-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}

.back-button:active::after {
    animation: ripple 0.6s ease-out;
}

/* Dark theme styles */
html.theme-dark .back-button {
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

html.theme-dark .back-button::before {
    background: rgba(255, 255, 255, 0.08);
}

html.theme-dark .back-button:hover {
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.15);
}

html.theme-dark .back-button:active {
    text-shadow: 0 0.5px 1px rgba(255, 255, 255, 0.2);
}

html.theme-dark .back-button:active::before {
    background: rgba(255, 255, 255, 0.12);
}

html.theme-dark .back-button::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

/* Light theme enhanced styles */
html.theme-light .back-button {
    color: #000000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

html.theme-light .back-button::before {
    background: rgba(0, 0, 0, 0.04);
}

html.theme-light .back-button:hover {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

html.theme-light .back-button:active::before {
    background: rgba(0, 0, 0, 0.06);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .back-button-container {
        padding: 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
    }
    
    .back-button {
        font-size: clamp(13px, 3.5vw, 16px);
        padding: 10px 28px;
        letter-spacing: 1.5px;
    }
}

/* Tiny screens */
@media (max-width: 480px) {
    .back-button-container {
        padding: 14px;
        padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
    }
    
    .back-button {
        font-size: clamp(12px, 3.2vw, 14px);
        padding: 9px 24px;
        letter-spacing: 1.2px;
    }
}

/* Scroll-activated hover state - applies hover styles when user scrolls (all screens including mobile) */
.back-button.scrolled {
    transform: translateY(-2px) !important;
}

html.theme-dark .back-button.scrolled {
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.15) !important;
}

html.theme-light .back-button.scrolled {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12) !important;
}

.back-button.scrolled::before {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* PWA optimizations */
@media (display-mode: standalone) {
    .back-button-container {
        padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
    }
    
    .back-button {
        font-size: clamp(15px, 3vw, 19px);
        padding: 13px 36px;
    }
}

/* === Benchmarks & Roadmap Section === */
.benchmarks-section {
    position: relative;
    padding: 80px 0 180px; /* extra bottom gap for fixed back button */
    overflow: hidden;
}
html.theme-light .benchmarks-section {
    background-color: #f8f8f8; /* match light theme base */
}
html.theme-dark .benchmarks-section {
    background-color: #000; /* cover particles for dark theme */
}
html.theme-dark .benchmarks-content {
    color: #d0d0d0;
}
html.theme-light .benchmarks-content {
    color: #444444;
}
.benchmarks-content {
    max-width: 920px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}
.benchmarks-subheading {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 600;
}
html.theme-dark .benchmarks-subheading {
    color: #e0e0e0;
}
html.theme-light .benchmarks-subheading {
    color: #333333;
}
.benchmarks-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}
.benchmarks-table th,
.benchmarks-table td {
    padding: 0.75rem 0.95rem;
    text-align: left;
}
html.theme-dark .benchmarks-table th,
html.theme-dark .benchmarks-table td {
    color: #d0d0d0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
html.theme-light .benchmarks-table th,
html.theme-light .benchmarks-table td {
    color: #444444;
    border-bottom: 1px solid #ccc;
}
html.theme-dark .benchmarks-footnote {
    color: #b0b0b0;
}
html.theme-light .benchmarks-footnote {
    color: #666666;
}
@media (max-width: 768px) {
    .benchmarks-content {
        padding: 0 1rem;
    }
    .benchmarks-table {
        font-size: 0.85rem;
    }
}

.benchmarks-list {
    list-style: none;
    padding-left: 0;
}
.benchmarks-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}
.benchmarks-list li::before {
    content: "•";
    position: absolute;
    left: 0;
}
html.theme-dark .benchmarks-list li {
    color: #d0d0d0;
}
html.theme-light .benchmarks-list li {
    color: #444444;
}
.benchmarks-list .roadmap-future::before { content: "⏩ "; }

/* ========================================
   SHARE BUTTON
   ======================================== */
.share-hc-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.share-icon-svg {
    width: 14px;
    height: 14px;
}

html.theme-dark .share-hc-btn {
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.3);
}

html.theme-light .share-hc-btn {
    color: #1F75FE;
    border-color: rgba(31, 117, 254, 0.3);
}

.share-hc-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

html.theme-dark .share-hc-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

html.theme-light .share-hc-btn:hover {
    background: rgba(31, 117, 254, 0.1);
    box-shadow: 0 0 15px rgba(31, 117, 254, 0.2);
}

/* Table Scroll Wrapper for Mobile */
.table-scroll-wrapper {
    position: relative;
    width: 100%;
    margin: 2rem 0;
}

.table-scroll-wrapper::before,
.table-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 44px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.table-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}

.table-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

html.theme-light .table-scroll-wrapper::after {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

html.theme-light .table-scroll-wrapper::before {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
}

.table-scroll-wrapper .benchmarks-table {
    margin: 0; /* Remove default margin as wrapper handles it */
}

/* Scroll Hint */
.scroll-hint {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to left, rgba(0,0,0,0.8), transparent);
    padding: 10px 20px 10px 40px;
    color: #fff;
    font-size: 12px;
    pointer-events: none;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 8px 0 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
}

html.theme-light .scroll-hint {
    background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
    color: #000;
    border-color: rgba(0, 0, 0, 0.08);
}

.scroll-hint span {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-hint svg {
    animation: swipeHint 1.5s ease-in-out infinite;
}

.scroll-hint.active {
    opacity: 0.95;
}

.scroll-hint.hidden {
    opacity: 0;
}

@keyframes swipeHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@media (max-width: 768px) {
    .table-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar but keep functionality */
        scrollbar-width: none; 
        -ms-overflow-style: none;
        padding-right: 20px; /* Peeking effect */
    }
    
    .table-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    .benchmarks-table {
        min-width: 600px; /* Force scroll on small screens */
    }

    .scroll-hint {
        display: flex;
    }

    .table-scroll-wrapper.can-scroll-right::after,
    .table-scroll-wrapper.can-scroll-left::before {
        opacity: 1;
    }
}

/* Contact Link Button */
.contact-text-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: inherit;
    opacity: 0.7;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: -10px; /* Pull bottom padding up slightly to center in available space */
}

html.theme-dark .contact-text-link {
    color: #e0e0e0; /* Off-white for dark theme */
}

.contact-text-link:hover {
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 0 10px currentColor;
}

/* Dark Theme Overlay for Plane Animation */
.dark-theme-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: #0a0a0a; /* Matches dark theme lottie background */
    z-index: 10;
    display: none;
}

html.theme-dark .dark-theme-overlay {
    display: block !important;
}

html.theme-light .dark-theme-overlay {
    display: none !important;
}

