@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Material Symbols Rounded - loaded locally (subsetted, 27 icons) */
@font-face {
    font-family: "Material Symbols Rounded";
    font-style: normal;
    font-weight: 100 700;
    font-display: block;
    src: url("assets/fonts/material-symbols-rounded.woff2") format("woff2");
}
.material-symbols-rounded {
    font-family: "Material Symbols Rounded";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga";
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

:root {
    --bg-color: #f5f5f7;
    --text-color: #1d1d1f;
    --text-color-highlight: #74D1EA;
    --card-bg: #ffffff;
    --accent-color: #000000;
    --accent-text: #ffffff;
    --secondary-text: #86868b;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --border-radius: 20px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --success-color: #34c759;
    --error-color: #ff3b30;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --card-border: rgba(134, 134, 139, 0.1);
    --cube-color: rgba(29, 29, 31, 0.7);
}

[data-theme="dark"] {
    --bg-color: #0a0a0c;
    --text-color: #f0f0f5;
    --text-color-highlight: #7dd8f0;
    --card-bg: #161618;
    --accent-color: #f0f0f5;
    --accent-text: #0a0a0c;
    --secondary-text: #8e8e99;
    --nav-bg: rgba(14, 14, 16, 0.85);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.06);
    --cube-color: rgba(125, 216, 240, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }

body { background-color: var(--bg-color); color: var(--text-color); overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    position: fixed; top: 0; width: 100%; height: 70px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%;
    background: var(--nav-bg); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
}

.logo-container { z-index: 1002; }
.logo { height: 35px; width: auto; }

/* Language Toggle */
.lang-toggle-img { display: flex; align-items: center; }
#lang-toggle-img {
    width: 28px; height: auto; cursor: pointer; display: block;
    transition: transform 0.2s ease;
}
#lang-toggle-img:hover { transform: scale(1.1); }

/* Desktop Links */
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
    position: relative; text-decoration: none; color: var(--text-color);
    font-size: 0.85rem; font-weight: 500; opacity: 0.8;
}
.nav-links a:hover, .nav-links a.active {
    opacity: 1; color: var(--text-color-highlight); font-weight: 600;
}
.nav-links .btn-small {
    background: var(--accent-color); color: var(--accent-text) !important;
    padding: 8px 16px; border-radius: 99px; opacity: 1;
}

/* Right Controls */
.nav-right { display: flex; align-items: center; gap: 20px; height: 100%; z-index: 1002; }

#theme-toggle {
    background: none; border: none; cursor: pointer; color: var(--text-color);
    display: flex; align-items: center; justify-content: center;
    padding: 5px; border-radius: 50%; transition: background-color 0.3s;
}
#theme-toggle:hover { background-color: rgba(134, 134, 139, 0.1); }

.material-symbols-rounded { font-size: 30px; user-select: none; }

body[data-theme="light"] .light-icon { display: block; }
body[data-theme="light"] .dark-icon { display: none; }
body[data-theme="dark"] .light-icon { display: none; }
body[data-theme="dark"] .dark-icon { display: block; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span {
    width: 25px; height: 3px; background-color: var(--text-color);
    border-radius: 5px; transition: all 0.3s ease;
}

/* ==========================================
   MAIN CONTENT & LAYOUT
   ========================================== */

.main-content { flex: 1; width: 100%; }

/* Hero Sections */
.hero, .hero-small {
    padding: 120px 10% 60px; text-align: center;
    display: flex; flex-direction: column; align-items: center;
    min-height: auto; padding-bottom: 20px;
}
.hero-content {
    width: 100%; max-width: 800px; margin-left: auto; margin-right: auto;
}
.hero h1 { font-size: 4rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1rem; line-height: 1.1; }
.hero p {
    font-size: 1.5rem; color: var(--secondary-text);
    max-width: 700px; margin: 0 auto 2.5rem;
}
.hero-image img { width: 100%; max-width: 500px; margin-top: 3rem; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15)); }

.hero-small { min-height: 30vh; justify-content: center; }
.hero-small h1 { font-size: 3rem; }
.hero-small p { font-size: 1.25rem; color: var(--secondary-text); max-width: 600px; margin: 1rem auto 0; }

/* Sections */
.content-section { padding: 60px 10%; }
.bg-alt { background-color: var(--card-bg); }
.section-title {
    text-align: center; width: 100%; display: block;
    margin-left: auto; margin-right: auto; font-size: 2.5rem; font-weight: 700;
}
.section-subtitle {
    text-align: center; color: var(--secondary-text); font-size: 1.1rem;
    max-width: 600px; margin: 1rem auto 0;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; margin-top: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }

/* Cards */
.card {
    background: var(--card-bg); padding: 2.5rem; border-radius: var(--border-radius);
    box-shadow: var(--shadow); border: 1px solid var(--card-border);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    height: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
}
.card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.card p { color: var(--secondary-text); }

/* Clickable Cards */
.card-link {
    text-decoration: none; color: inherit; display: block; height: 100%;
}
.card-link .card {
    cursor: pointer;
}
.card-link:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] .card-link:hover .card {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(125, 216, 240, 0.15);
}
[data-theme="dark"] .card {
    border-color: rgba(255, 255, 255, 0.06);
}
.card .card-arrow {
    margin-top: auto; padding-top: 1.5rem;
    color: var(--text-color-highlight); font-weight: 600; font-size: 0.9rem;
}

/* Use Case Icons */
.uc-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(116, 209, 234, 0.1);
    color: var(--text-color-highlight);
}
[data-theme="dark"] .uc-icon {
    background: rgba(125, 216, 240, 0.08);
}
.uc-icon .material-symbols-rounded {
    font-size: 32px;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn-primary {
    background-color: var(--accent-color); color: var(--accent-text);
    padding: 14px 28px; border-radius: 99px; text-decoration: none;
    font-weight: 600; font-size: 1.1rem; border: none; cursor: pointer;
    display: inline-block; transition: transform 0.2s;
}
.btn-primary:hover { transform: scale(1.02); }

.btn-secondary {
    background: transparent; color: var(--text-color);
    padding: 14px 28px; border-radius: 99px; text-decoration: none;
    font-weight: 600; font-size: 1rem; border: 2px solid var(--text-color);
    cursor: pointer; display: inline-block; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--text-color); color: var(--bg-color); }

.btn-github {
    background: #24292e; color: #fff; padding: 16px 32px; border-radius: 99px;
    text-decoration: none; font-weight: 600; font-size: 1.1rem; border: none;
    cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
    transition: transform 0.2s, background 0.2s;
}
.btn-github:hover { transform: scale(1.02); background: #333; }
.btn-github svg { width: 24px; height: 24px; fill: currentColor; }

/* ==========================================
   HOME PAGE - Problem & Swiss Sections
   ========================================== */

.highlight-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; padding: 80px 10%;
}
.highlight-section .highlight-content h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.highlight-section .highlight-content p {
    color: var(--secondary-text); font-size: 1.1rem; line-height: 1.8; margin-bottom: 2rem;
}
.highlight-icon {
    display: flex; align-items: center; justify-content: center;
    opacity: 0.12;
}
.highlight-icon .material-symbols-rounded {
    font-size: 140px;
    color: var(--text-color);
}
[data-theme="dark"] .highlight-icon .material-symbols-rounded {
    color: var(--text-color-highlight);
    opacity: 0.5;
}

/* ==========================================
   PRODUCT PAGE
   ========================================== */

.product-hero {
    padding: 140px 10% 60px; text-align: center;
    background: var(--card-bg);
}
.product-hero h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 1rem; }
.product-hero p { font-size: 1.3rem; color: var(--secondary-text); max-width: 600px; margin: 0 auto; }

.how-it-works {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; padding: 80px 10%;
}
.how-it-works-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.how-it-works-text p { color: var(--secondary-text); font-size: 1.1rem; line-height: 1.8; }
.how-it-works-image { text-align: center; }
.how-it-works-image img {
    width: 100%; max-width: 400px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

/* Spec Table */
.spec-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem; margin-top: 3rem;
}
.spec-item {
    display: flex; align-items: center; gap: 12px; min-width: 160px;
    padding: 1.2rem; background: var(--card-bg); border-radius: 12px;
    border: 1px solid rgba(134,134,139,0.1);
}
.spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(116, 209, 234, 0.1);
    color: var(--text-color-highlight);
    flex-shrink: 0;
}
[data-theme="dark"] .spec-icon {
    background: rgba(125, 216, 240, 0.08);
}
.spec-icon .material-symbols-rounded {
    font-size: 22px;
}
.spec-text { font-size: 0.95rem; font-weight: 500; }

/* ==========================================
   SOFTWARE PAGE
   ========================================== */

.github-section {
    text-align: center; padding: 80px 10%;
    background: var(--card-bg);
}
.github-section h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.github-section p { color: var(--secondary-text); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }
.github-section .btn-github { margin-bottom: 0.5rem; }
.github-desc-text { font-size: 0.85rem; color: var(--secondary-text); margin-top: 0.5rem; }

.contribute-section {
    text-align: center; padding: 60px 10%;
}
.contribute-section h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.contribute-section p { color: var(--secondary-text); font-size: 1.05rem; max-width: 550px; margin: 0 auto; }

/* ==========================================
   ABOUT PAGE
   ========================================== */

.about-text { max-width: 700px; margin: 0 auto; text-align: center; }
.about-text .lead { font-size: 1.5rem; font-weight: 500; margin-bottom: 1rem; }

.team-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; margin-top: 4rem;
}
.team-member { text-align: center; width: 250px; }
.team-photo {
    width: 200px; height: 200px; border-radius: 50%; object-fit: cover;
    margin-bottom: 1.5rem; box-shadow: var(--shadow);
    border: 3px solid var(--card-bg);
}
.photo-placeholder {
    width: 200px; height: 200px; background-color: #e0e0e0; border-radius: 50%;
    margin: 0 auto 1.5rem; box-shadow: var(--shadow);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
}
[data-theme="dark"] .photo-placeholder { background-color: #333; }

.story-section {
    max-width: 700px; margin: 5rem auto 0; text-align: center;
    padding: 3rem; background: var(--card-bg); border-radius: var(--border-radius);
    border: 1px solid rgba(134,134,139,0.1);
}
.story-section h3 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.story-section p { color: var(--secondary-text); font-size: 1.05rem; line-height: 1.8; }

/* Social Icons */
.social-connect {
    margin-top: 6rem; text-align: center; padding-bottom: 2rem;
    border-top: 1px solid rgba(134, 134, 139, 0.1); padding-top: 3rem;
}
.social-icons { display: flex; justify-content: center; gap: 30px; align-items: center; }
.social-link {
    color: var(--text-color); opacity: 0.7; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    padding: 10px; border-radius: 12px;
}
.social-link:hover {
    opacity: 1; transform: translateY(-3px);
    background-color: rgba(134, 134, 139, 0.1); color: var(--accent-color);
}
.social-link svg { stroke-width: 1.5; }

/* ==========================================
   SHOP PAGE
   ========================================== */

.shop-wrapper {
    padding: 120px 10% 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: start; min-height: 80vh;
}
.product-gallery img { width: 100%; border-radius: var(--border-radius); }
.product-details h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 1rem; }
.price-tag { font-size: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.description { margin-bottom: 1.5rem; color: var(--secondary-text); line-height: 1.6; }
.shipping-info { color: var(--secondary-text); font-size: 0.9rem; margin-top: 1rem; }

.includes-list {
    list-style: none; margin: 1.5rem 0; padding: 0;
}
.includes-list li {
    padding: 8px 0; font-size: 0.95rem; display: flex; align-items: center; gap: 8px;
}
.includes-list li::before {
    content: "✓"; color: var(--success-color); font-weight: 700;
}

.guarantee-badge {
    margin-top: 2rem; padding: 1rem; text-align: center;
    font-size: 0.85rem; color: var(--secondary-text);
    border-top: 1px solid rgba(134,134,139,0.1);
}

/* ==========================================
   ORDER PAGE
   ========================================== */

.order-wrapper {
    padding: 120px 10% 60px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem;
    align-items: start;
}

.order-summary {
    background: var(--card-bg); padding: 2rem; border-radius: var(--border-radius);
    box-shadow: var(--shadow); border: 1px solid rgba(134,134,139,0.1);
    position: sticky; top: 100px;
}
.order-summary h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }

.order-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px solid rgba(134,134,139,0.1);
}
.order-item-name { font-weight: 500; }
.order-item-qty { color: var(--secondary-text); font-size: 0.9rem; }
.order-item-price { font-weight: 600; }

.order-total {
    display: flex; justify-content: space-between; padding: 20px 0 0;
    font-size: 1.3rem; font-weight: 700;
}

.order-form {
    background: var(--card-bg); padding: 2.5rem; border-radius: var(--border-radius);
    box-shadow: var(--shadow); border: 1px solid rgba(134,134,139,0.1);
}
.order-form h2 { font-size: 1.5rem; margin-bottom: 2rem; }

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

.payment-note {
    margin-top: 1.5rem; padding: 1rem; background: rgba(116, 209, 234, 0.1);
    border-radius: 12px; font-size: 0.9rem; color: var(--secondary-text); text-align: center;
}
.privacy-note {
    margin-top: 1rem; font-size: 0.8rem; color: var(--secondary-text); text-align: center;
}
.privacy-note a { color: var(--text-color-highlight); }

/* ==========================================
   ORDER SUCCESS PAGE
   ========================================== */

.success-wrapper {
    padding: 140px 10% 80px; text-align: center;
    min-height: 80vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}

.success-icon {
    width: 100px; height: 100px; border-radius: 50%;
    background: var(--success-color); display: flex;
    align-items: center; justify-content: center; margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease-out;
}
.success-icon svg { width: 50px; height: 50px; stroke: white; stroke-width: 3; }

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-wrapper h1 { font-size: 3rem; margin-bottom: 1rem; }
.success-wrapper .success-message {
    font-size: 1.2rem; color: var(--secondary-text); max-width: 550px; margin: 0 auto 3rem;
    line-height: 1.6;
}

.success-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    max-width: 800px; margin: 0 auto 3rem; text-align: center;
}
.success-step { padding: 1.5rem; }
.step-number {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--text-color-highlight); color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; font-weight: 700; font-size: 1.1rem;
}
.success-step p { color: var(--secondary-text); font-size: 0.95rem; line-height: 1.5; }

.success-contact {
    margin-top: 2rem; font-size: 0.9rem; color: var(--secondary-text);
}
.success-contact a { color: var(--text-color-highlight); text-decoration: none; }

/* ==========================================
   CONTACT PAGE
   ========================================== */

.contact-wrapper {
    padding: 120px 10% 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
}
.contact-info h1 { font-size: 3rem; margin-bottom: 1rem; }
.contact-info > p { color: var(--secondary-text); font-size: 1.05rem; line-height: 1.6; }

.address-box {
    padding: 2rem; background: var(--card-bg); border-radius: var(--border-radius);
    border: 1px solid rgba(134,134,139,0.1);
}
.address-box h3 { margin-bottom: 1rem; }
.address-box p { margin-bottom: 0.3rem; color: var(--secondary-text); }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 15px; border-radius: 12px;
    border: 1px solid rgba(134,134,139,0.3);
    background: var(--bg-color); color: var(--text-color); font-size: 1rem;
    font-family: 'Inter', sans-serif;
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* ==========================================
   LEGAL PAGES
   ========================================== */

.legal-content {
    max-width: 80%; margin: 0 auto; padding-bottom: 4rem; padding-top: 80px;
}
.legal-text { font-size: 1rem; line-height: 1.6; color: var(--text-color); }
.legal-text h3 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.3rem; font-weight: 600; }
.legal-text p { margin-bottom: 1rem; }

/* ==========================================
   ANIMATIONS
   ========================================== */

.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==========================================
   FOOTER
   ========================================== */

/* Old footer styles removed – see new footer grid section below */

/* ==========================================
   CART STYLES
   ========================================== */

.cart-icon { position: relative; cursor: pointer; display: flex; align-items: center; margin-right: 15px; color: var(--text-color); }
.cart-badge { background: #ff3b30; color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.7rem; font-weight: bold; position: absolute; top: -8px; right: -10px; min-width: 18px; text-align: center; }

.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-sidebar { position: fixed; top: 0; right: -450px; width: 400px; max-width: 100%; height: 100vh; background: var(--bg-color); z-index: 2001; transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
.cart-sidebar.active { right: 0; }

.cart-header { padding: 20px; border-bottom: 1px solid rgba(134,134,139,0.2); display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { font-size: 1.5rem; }
.close-cart { background: none; border: none; font-size: 2rem; color: var(--text-color); cursor: pointer; line-height: 1; }

.cart-items { flex-grow: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(134,134,139,0.1); }
.cart-item-info h4 { font-size: 1rem; margin-bottom: 5px; }
.cart-item-price { color: var(--secondary-text); font-weight: 500; }

.qty-controls { display: flex; align-items: center; gap: 10px; background: var(--card-bg); padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(134,134,139,0.2); }
.qty-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-color); }
.qty-btn:hover { color: var(--accent-color); }

.cart-footer { padding: 20px; border-top: 1px solid rgba(134,134,139,0.2); background: var(--card-bg); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; }
#checkout-btn { width: 100%; background-color: #000; color: #fff; padding: 15px; font-size: 1.1rem; border-radius: 99px; border: none; cursor: pointer; font-weight: 600; }
[data-theme="dark"] #checkout-btn { background-color: #fff; color: #000; }

.hidden { display: none; }

/* ==========================================
   SLIDESHOW
   ========================================== */
.slideshow-section {
    /* 1. GRÖSSERE DARSTELLUNG: Padding links/rechts reduziert */
    padding: 0 5% 60px; /* Von 10% auf 5% reduziert */
    max-width: 1200px;
    margin: 0 auto;
}

.slideshow-container {
    position: relative;
    margin: auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}

.mySlides {
    display: none;
    width: 100%;
}

.mySlides img {
    width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

/* 2. PFEILE ERST BEI HOVER ANZEIGEN (ÜBER DEM BILD-CONTAINER) */

/* Grundzustand der Pfeile: unsichtbar */
.prev, .next {
    opacity: 0; /* Versteckt */
    transition: opacity 0.3s ease; /* Sanfter Übergang */
    
    /* Behalte die restlichen Stile (Positionierung, Aussehen) bei */
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    border-radius: 0 8px 8px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

/* Pfeile sichtbar machen, wenn man über den CONTAINER hovert */
.slideshow-container:hover .prev,
.slideshow-container:hover .next {
    opacity: 1; /* Sichtbar */
}

/* Bestehender Hover-Effekt für die Pfeile selbst (Hintergrundfarbe) */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--text-color-highlight);
}

/* Dots (Indikatoren) */
.slideshow-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: var(--secondary-text);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0.5;
}

.dot.active, .dot:hover {
    background-color: var(--text-color-highlight);
    opacity: 1;
    transform: scale(1.2);
}

/* Fading Animation */
.slideshow-fade {
    animation-name: slideshowFade;
    animation-duration: 0.6s;
}

@keyframes slideshowFade {
    from { opacity: 0.4 }
    to { opacity: 1 }
}

/* ==========================================
   MOBILE & RESPONSIVE
   ========================================== */

@media (max-width: 600px) {
    .grid-4 { grid-template-columns: 1fr; }
    .success-steps { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .hero-small h1 { font-size: 1.6rem; }
    .section-title { font-size: 1.5rem; }
    .card { padding: 1.5rem; }
    .chatbot-window { width: 100% !important; right: 0 !important; bottom: 0 !important; border-radius: 16px 16px 0 0 !important; height: 70vh !important; }
}

@media (max-width: 900px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%; height: 100dvh;
        background-color: var(--bg-color);
        display: flex; flex-direction: column;
        justify-content: center; align-items: center;
        gap: 0;
        opacity: 0; visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        z-index: 9999;
        padding: 80px 2rem 2rem;
        overflow-y: auto;
    }
    .nav-links.active {
        opacity: 1; visibility: visible; pointer-events: auto;
    }
    .nav-links li {
        width: 100%; text-align: center;
        border-bottom: 1px solid var(--border-subtle);
        opacity: 0; transform: translateY(15px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .nav-links.active li {
        opacity: 1; transform: translateY(0);
    }
    .nav-links.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.3s; border-bottom: none; }
    .nav-links a {
        font-size: 1.2rem; font-weight: 500;
        display: block; padding: 1.1rem 0;
        opacity: 1 !important;
    }
    .nav-links .btn-small {
        display: inline-block; margin-top: 0.5rem;
        font-size: 1.1rem !important; padding: 14px 36px;
    }

    .hamburger.toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    .hero, .hero-small, .shop-wrapper, .contact-wrapper, .order-wrapper, .content-section, .navbar,
    .highlight-section, .how-it-works, .product-hero, .github-section, .contribute-section {
        padding-left: 5%; padding-right: 5%;
    }

    .hero h1 { font-size: 2.5rem; }
    .hero-small h1 { font-size: 2rem; }
    .hero { padding-top: 100px; }

    .shop-wrapper, .contact-wrapper, .order-wrapper {
        grid-template-columns: 1fr; gap: 2rem; padding-top: 100px;
    }

    .highlight-section, .how-it-works {
        grid-template-columns: 1fr; gap: 2rem;
    }
    .highlight-icon { display: none; }

    .product-details, .about-text { text-align: center; }
    .product-details .includes-list { text-align: left; display: inline-block; }

    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }

    .order-summary { position: static; }
    .spec-grid { grid-template-columns: repeat(2, 1fr); }

    /* Mobile touch targets */
    .btn-primary, .btn-secondary { min-height: 48px; font-size: 1rem; }
    .form-group input, .form-group textarea, .form-group select { min-height: 48px; font-size: 16px; }

    /* Sticky buy bar mobile */
    .sticky-buy-bar { padding: 0.75rem 5%; }
    .sticky-buy-bar .sticky-buy-name { display: none; }
}

@media (max-width: 400px) {
    .spec-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   SPLASH SCREEN
   ========================================== */

.splash-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Quick page transition (between pages) */
.page-transition {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99998;
    background: var(--bg-color);
    pointer-events: none;
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease 0.15s;
}
.page-transition.reveal {
    transform: scaleY(0);
    opacity: 0;
}
.splash-logo {
    width: 200px;
    max-width: 50vw;
    animation: splashPulse 1.5s ease-in-out infinite alternate;
}
.splash-subtitle {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: splashFadeIn 0.8s ease 0.3s forwards;
}
@keyframes splashPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}
@keyframes splashFadeIn {
    to { opacity: 1; }
}

/* ==========================================
   CHATBOT
   ========================================== */

.chatbot-fab {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--text-color-highlight);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 3000;
    box-shadow: 0 4px 20px rgba(116, 209, 234, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}
.chatbot-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(116, 209, 234, 0.5);
}
.chatbot-fab.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }

.chatbot-window {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 380px; height: 520px;
    background: var(--bg-color);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    display: flex; flex-direction: column;
    z-index: 3001;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    opacity: 0; visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}
[data-theme="dark"] .chatbot-window {
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.chatbot-window.active {
    opacity: 1; visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--card-bg);
}
.chatbot-header-info { display: flex; align-items: center; gap: 12px; }
.chatbot-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--text-color-highlight);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
}
.chatbot-header-title { font-weight: 600; font-size: 0.95rem; }
.chatbot-header-status { font-size: 0.75rem; color: var(--success-color); }
.chatbot-close {
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
    color: var(--secondary-text);
    padding: 4px 8px; border-radius: 8px;
    transition: background 0.2s;
}
.chatbot-close:hover { background: rgba(134,134,139,0.1); }

.chatbot-messages {
    flex: 1; overflow-y: auto;
    padding: 16px 20px;
    display: flex; flex-direction: column; gap: 12px;
}
.chatbot-msg { display: flex; }
.chatbot-msg.user { justify-content: flex-end; }
.chatbot-msg-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-wrap: break-word;
}
.chatbot-msg.bot .chatbot-msg-bubble {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-bottom-left-radius: 4px;
}
.chatbot-msg.user .chatbot-msg-bubble {
    background: var(--text-color-highlight);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.chatbot-typing { display: flex; gap: 4px; align-items: center; padding: 14px 18px; }
.chatbot-typing span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--secondary-text);
    animation: typingBounce 1.2s ease-in-out infinite;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.chatbot-input-area {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
    background: var(--card-bg);
}
.chatbot-input-area input {
    flex: 1;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.88rem;
    background: var(--bg-color);
    color: var(--text-color);
    outline: none;
    font-family: 'Inter', sans-serif;
    min-height: 42px;
}
.chatbot-input-area input:focus {
    border-color: var(--text-color-highlight);
    box-shadow: 0 0 0 3px rgba(116,209,234,0.12);
}
#chatbot-send {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: none;
    background: var(--text-color-highlight);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}
#chatbot-send:hover { transform: scale(1.06); }

/* ==========================================
   STICKY BUY BAR (product page)
   ========================================== */

.sticky-buy-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-subtle);
    padding: 0.75rem 10%;
    display: flex; align-items: center; justify-content: space-between;
    z-index: 2500;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
[data-theme="dark"] .sticky-buy-bar {
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.sticky-buy-bar.visible { transform: translateY(0); }
.sticky-buy-bar .sticky-buy-info { display: flex; align-items: center; gap: 1rem; }
.sticky-buy-bar .sticky-buy-name { font-weight: 600; font-size: 0.95rem; }
.sticky-buy-bar .sticky-buy-price { font-weight: 700; color: var(--text-color-highlight); font-size: 1.1rem; }
.sticky-buy-bar .btn-primary { padding: 10px 24px; font-size: 0.95rem; }

/* ==========================================
   BETTER FOOTER
   ========================================== */

footer {
    text-align: left; padding: 4rem 10% 2rem;
    color: var(--secondary-text);
    font-size: 0.85rem; border-top: 1px solid var(--border-subtle); margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col h4 {
    font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-color); margin-bottom: 0.3rem;
}
.footer-col a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.85rem;
}
.footer-col a:hover { color: var(--text-color-highlight); }
.footer-col .footer-brand-text {
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 280px;
}
.footer-brand-text a { color: var(--text-color-highlight); }
.footer-social { display: flex; gap: 12px; margin-top: 0.5rem; }
.footer-social a {
    color: var(--secondary-text);
    transition: color 0.2s;
}
.footer-social a:hover { color: var(--text-color-highlight); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.8rem;
}
.footer-bottom-links a:hover { color: var(--text-color-highlight); }

/* ==========================================
   FAQ SECTION
   ========================================== */

.faq-section { max-width: 700px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}
.faq-question {
    width: 100%;
    background: none; border: none;
    padding: 1.2rem 0;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer;
    font-size: 1rem; font-weight: 500;
    color: var(--text-color);
    text-align: left;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--text-color-highlight); }
.faq-chevron {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--secondary-text);
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 0;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 0 1.2rem;
}
.faq-answer p {
    color: var(--secondary-text);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ==========================================
   DARK MODE REFINEMENTS
   ========================================== */

[data-theme="dark"] .address-box {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
    border-color: var(--text-color-highlight);
    outline: none;
    box-shadow: 0 0 0 3px rgba(125, 216, 240, 0.1);
}

[data-theme="dark"] .spec-item {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .order-summary,
[data-theme="dark"] .order-form,
[data-theme="dark"] .story-section {
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .payment-note {
    background: rgba(125, 216, 240, 0.06);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .social-connect {
    border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] #checkout-btn { background-color: #f0f0f5; color: #0a0a0c; }

[data-theme="dark"] .guarantee-badge {
    border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .bg-alt {
    background-color: var(--card-bg);
}

/* Focus states for light mode too */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--text-color-highlight);
    box-shadow: 0 0 0 3px rgba(116, 209, 234, 0.15);
}

/* ==========================================
   3D BACKGROUND CUBE ANIMATION
   ========================================== */

.bg-cube-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-cube-scene {
    position: absolute;
    perspective: 800px;
}

.bg-cube-scene.cube-1 {
    width: 280px; height: 280px;
    top: 8%;
    right: 6%;
    animation: floatCube1 25s ease-in-out infinite;
}

.bg-cube-scene.cube-2 {
    width: 220px; height: 220px;
    bottom: 12%;
    left: 4%;
    animation: floatCube2 30s ease-in-out infinite;
}

.bg-cube-scene.cube-3 {
    width: 160px; height: 160px;
    top: 55%;
    right: 28%;
    animation: floatCube3 35s ease-in-out infinite;
}

.bg-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

/* Cube rotation handled by JS for mouse interactivity */

.bg-cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    backface-visibility: visible;
}

/* Light mode: subtle dark wireframe */
.bg-cube-face {
    border: 1.5px solid rgba(0, 0, 0, 0.045);
    background: transparent;
}

/* Dark mode: glowing wireframe */
[data-theme="dark"] .bg-cube-face {
    border: 1.5px solid rgba(125, 216, 240, 0.07);
    background: rgba(125, 216, 240, 0.008);
}

/* Cube 1 faces (140px half-size) */
.bg-cube-scene.cube-1 .bg-cube-face.front  { transform: translateZ(140px); }
.bg-cube-scene.cube-1 .bg-cube-face.back   { transform: rotateY(180deg) translateZ(140px); }
.bg-cube-scene.cube-1 .bg-cube-face.right  { transform: rotateY(90deg) translateZ(140px); }
.bg-cube-scene.cube-1 .bg-cube-face.left   { transform: rotateY(-90deg) translateZ(140px); }
.bg-cube-scene.cube-1 .bg-cube-face.top    { transform: rotateX(90deg) translateZ(140px); }
.bg-cube-scene.cube-1 .bg-cube-face.bottom { transform: rotateX(-90deg) translateZ(140px); }

/* Cube 2 faces (110px) */
.bg-cube-scene.cube-2 .bg-cube-face.front  { transform: translateZ(110px); }
.bg-cube-scene.cube-2 .bg-cube-face.back   { transform: rotateY(180deg) translateZ(110px); }
.bg-cube-scene.cube-2 .bg-cube-face.right  { transform: rotateY(90deg) translateZ(110px); }
.bg-cube-scene.cube-2 .bg-cube-face.left   { transform: rotateY(-90deg) translateZ(110px); }
.bg-cube-scene.cube-2 .bg-cube-face.top    { transform: rotateX(90deg) translateZ(110px); }
.bg-cube-scene.cube-2 .bg-cube-face.bottom { transform: rotateX(-90deg) translateZ(110px); }

/* Cube 3 faces (80px) */
.bg-cube-scene.cube-3 .bg-cube-face.front  { transform: translateZ(80px); }
.bg-cube-scene.cube-3 .bg-cube-face.back   { transform: rotateY(180deg) translateZ(80px); }
.bg-cube-scene.cube-3 .bg-cube-face.right  { transform: rotateY(90deg) translateZ(80px); }
.bg-cube-scene.cube-3 .bg-cube-face.left   { transform: rotateY(-90deg) translateZ(80px); }
.bg-cube-scene.cube-3 .bg-cube-face.top    { transform: rotateX(90deg) translateZ(80px); }
.bg-cube-scene.cube-3 .bg-cube-face.bottom { transform: rotateX(-90deg) translateZ(80px); }

/* Cube rotation keyframes removed – JS handles rotation with mouse interaction */

@keyframes floatCube1 {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-25px) translateX(12px); }
    50% { transform: translateY(8px) translateX(-8px); }
    75% { transform: translateY(-15px) translateX(5px); }
}
@keyframes floatCube2 {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(20px) translateX(18px); }
    66% { transform: translateY(-12px) translateX(-12px); }
}
@keyframes floatCube3 {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-18px) translateX(20px); }
}

/* Ensure main content is above bg cubes */
.main-content, footer { position: relative; z-index: 1; }

/* Footer responsive – must come after base .footer-grid rule */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; text-align: center; }
    .footer-grid .footer-col { align-items: center; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   SCROLL FRAME ANIMATIONS
   ========================================== */

.scroll-anim-container {
    position: relative;
    width: 100%;
}

.scroll-anim-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scroll-anim-canvas {
    width: min(600px, 80vw);
    height: min(465px, 62vw);
    opacity: 0;
    transition: opacity 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.scroll-anim-canvas.loaded {
    opacity: 1;
}

/* Loader ring */
.scroll-anim-loader {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--text-color-highlight);
    animation: scrollAnimSpin 0.8s linear infinite;
    transition: opacity 0.4s ease;
}
.scroll-anim-loader.done {
    opacity: 0;
    pointer-events: none;
}
@keyframes scrollAnimSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Overlay text panels that appear alongside animation */
.scroll-anim-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- ROTATION (index.html) auto-loop hero --- */
.rotation-hero-section {
    display: flex;
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    min-height: 100vh;
    padding: 120px 8% 60px;
}
.rotation-hero-section .rotation-hero-text {
    max-width: 500px;
}
.rotation-hero-section .rotation-hero-text h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.rotation-hero-section .rotation-hero-text p {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--secondary-text);
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: none;
}
.rotation-canvas-wrap {
    position: relative;
    flex-shrink: 0;
}
.rotation-canvas-wrap .scroll-anim-canvas {
    width: min(440px, 40vw);
    height: min(341px, 31vw);
    cursor: grab;
    transition: transform 0.3s ease;
}
.rotation-canvas-wrap:hover .scroll-anim-canvas {
    transform: scale(1.03);
}

@media (max-width: 900px) {
    .rotation-hero-section {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding-top: 110px;
    }
    .rotation-canvas-wrap .scroll-anim-canvas {
        width: min(320px, 70vw);
        height: min(248px, 54vw);
    }
}

/* --- INSIDE (product.html) reveal section --- */
.inside-reveal {
    height: 300vh;
}
.inside-reveal .scroll-anim-sticky {
    flex-direction: row;
    gap: 4rem;
    padding: 0 8%;
}
.inside-reveal .scroll-anim-canvas {
    width: min(480px, 45vw);
    height: min(372px, 35vw);
    flex-shrink: 0;
}
.inside-reveal-text {
    max-width: 440px;
}
.inside-reveal-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.inside-reveal-text p {
    font-size: 1rem;
    color: var(--secondary-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.inside-reveal-text .inside-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.inside-reveal-text .inside-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.inside-reveal-text .inside-detail-item .material-symbols-rounded {
    color: var(--text-color-highlight);
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}
.inside-reveal-text .inside-detail-item span:last-child {
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .inside-reveal .scroll-anim-sticky {
        flex-direction: column;
        gap: 2rem;
        padding: 0 5%;
        text-align: center;
    }
    .inside-reveal .scroll-anim-canvas {
        width: min(400px, 75vw);
        height: min(310px, 58vw);
    }
    .inside-reveal-text { max-width: 100%; }
    .inside-reveal-text .inside-detail-list { align-items: center; }
    .inside-reveal-text .inside-detail-item { text-align: left; }
}

@media (max-width: 600px) {
    .inside-reveal { height: 250vh; }
}

