:root {
    /* Apple-like Clean Palette */
    --bg-page: #f5f5f7; /* Soft light gray for depth */
    --bg-card: #ffffff;
    --text-primary: #1d1d1f; /* Almost black */
    --text-secondary: #86868b;
    --accent: #0071e3; /* Apple Blue for calls to action */
    --accent-hover: #0077ED;
    --border-color: rgba(0, 0, 0, 0.05);
    
    /* Structure */
    --content-max-width: 1040px;
    --radius-bento: 28px;
    --radius-btn: 980px; /* Pill shape */
    
    /* Surfaces */
    --surface-color: rgba(255, 255, 255, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-card);
    color: var(--text-primary);
    line-height: 1.47059;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

p {
    font-size: 1.1875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 400;
}

/* Navigation */
.clean-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 850px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.nav-content {
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.logo img {
    height: 32px;
    width: auto;
    border-radius: 7px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-actions-group {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-button {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-btn);
    background: rgba(0, 113, 227, 0.08);
    transition: background 0.2s;
}

.nav-button:hover {
    background: rgba(0, 113, 227, 0.15);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    font-family: inherit;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropbtn .arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.dropdown:hover .dropbtn {
    opacity: 1;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--surface-color);
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--bg-color);
    color: var(--accent);
    opacity: 1;
}

/* Buttons */
.primary-button {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-btn);
    font-size: 1.0625rem;
    font-weight: 400;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.primary-button:hover {
    background-color: var(--accent-hover);
}

/* -------------------------------------
   Device Mockups (Skins) 
   ------------------------------------- */
.device-mockup {
    position: relative;
    background-color: #000;
}

.device-mockup .screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background-color: #000;
    z-index: 1;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    transform: translateZ(0);
    isolation: isolate;
}

.device-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.device-mockup .carousel img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.device-mockup .carousel img.active {
    opacity: 1;
}

/* iPhone Skin */
.iphone-mockup {
    --scale: 1;
    border-radius: calc(50px * var(--scale));
    border: calc(14px * var(--scale)) solid #111;
    box-shadow: 0 0 0 2px #d1d1d6, 0 30px 60px rgba(0,0,0,0.15);
}

.iphone-mockup .screen {
    border-radius: calc(36px * var(--scale));
}

.iphone-mockup .dynamic-island {
    position: absolute;
    top: calc(8px * var(--scale));
    left: 50%;
    transform: translateX(-50%);
    width: calc(85px * var(--scale));
    height: calc(24px * var(--scale));
    background-color: #000;
    border-radius: calc(12px * var(--scale));
    z-index: 10;
}

/* Apple Watch Skin */
.watch-mockup {
    --scale: 1;
    border-radius: calc(46px * var(--scale));
    border: calc(12px * var(--scale)) solid #1a1a1a;
    box-shadow: 0 0 0 2px #a8a8b0, 0 20px 40px rgba(0,0,0,0.15);
}

.watch-mockup .screen {
    border-radius: calc(34px * var(--scale));
}

.watch-mockup .crown {
    position: absolute;
    right: calc(-16px * var(--scale));
    top: 25%;
    width: calc(6px * var(--scale));
    height: calc(40px * var(--scale));
    background: linear-gradient(to bottom, #d1d1d6, #7a7a7e, #d1d1d6);
    border-top-right-radius: calc(4px * var(--scale));
    border-bottom-right-radius: calc(4px * var(--scale));
    border: 1px solid #666;
    border-left: none;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    z-index: -1;
}

.watch-mockup .side-button {
    position: absolute;
    right: calc(-14px * var(--scale));
    top: 55%;
    width: calc(4px * var(--scale));
    height: calc(60px * var(--scale));
    background: #7a7a7e;
    border-top-right-radius: calc(3px * var(--scale));
    border-bottom-right-radius: calc(3px * var(--scale));
    border: 1px solid #555;
    border-left: none;
    z-index: -1;
}

/* Hero Section */
.hero {
    padding-top: 12rem;
    text-align: center;
    width: 100%;
    background-image: url('assets/bg-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-text {
    max-width: 700px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-image {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    padding: 0 2rem;
    z-index: 2;
}

.main-mockup.iphone {
    --scale: 1.066;
    position: absolute;
    bottom: -100px;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 320 / 650;
    height: auto;
    z-index: 2;
}

.main-mockup.watch {
    --scale: 0.714;
    position: absolute;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 200 / 250;
    height: auto;
    z-index: 3;
    left: 50%;
    transform: translateX(-190%);
    bottom: 50px;
}

/* -------------------------------------
   Macro Sections (The Long Page UI) 
   ------------------------------------- */
.macro-section {
    padding: 8rem 2rem;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.macro-section.alt-bg {
    background-color: var(--bg-page);
}

.content-wrapper {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.macro-section .subtitle {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.icon-large {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* Grid within Macro Sections */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    text-align: left;
}

.feature-grid.two-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.feature-item {
    flex: 1 1 280px;
    max-width: 100%;
    background: rgba(0,0,0,0.03);
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s, background 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(0,0,0,0.05);
}

.feature-item p {
    font-size: 1.0625rem;
}

/* Split Layout (Text + Mockup) */
.split-layout .content-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-layout.reverse .content-wrapper {
    flex-direction: row-reverse;
}

.split-layout .text-block {
    flex: 1;
}

.split-layout .image-block {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Lists within Text Blocks */
.text-list {
    list-style: none;
    padding: 0;
}

.text-list li {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
}

.text-list li::before {
    content: "•";
    color: var(--accent);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
}

.text-list strong {
    color: var(--text-primary);
}

/* Specific Mockups for Sections */
.showcase-mockup {
    --scale: 1;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 621 / 1349;
    height: auto;
}

.showcase-watch {
    --scale: 1;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 280 / 340;
    height: auto;
}

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.clean-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
}

.clean-form input {
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: #fff;
    font-family: inherit;
    font-size: 1.0625rem;
    outline: none;
    transition: border-color 0.2s;
}

.clean-form input:focus {
    border-color: var(--accent);
}

/* Footer */
.clean-footer {
    background: var(--bg-card);
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-links-simple {
    display: flex;
    gap: 1.5rem;
}

.footer-links-simple a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-links-simple a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 1.5rem;
    font-size: 0.8125rem;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-up-delayed {
    opacity: 0;
    animation: slideUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

/* Responsive */
@media (max-width: 960px) {
    .split-layout .content-wrapper,
    .split-layout.reverse .content-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 3rem;
        text-align: center;
    }
    
    .text-list {
        display: inline-block;
        text-align: left;
    }

    .macro-section .subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .feature-grid {
        text-align: center;
    }
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }
    
    .feature-grid.two-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-links-simple {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .main-mockup.iphone {
        max-width: 220px;
        --scale: 0.733;
    }
    
    .main-mockup.watch {
        max-width: 140px;
        --scale: 0.5;
        transform: translateX(-80%);
    }
    
    .showcase-mockup {
        max-width: 250px;
        --scale: 0.833;
    }

    .showcase-watch {
        max-width: 240px;
        --scale: 0.857;
    }
}

/* -------------------------------------
   Wellness Aesthetics (Parallax & Glassmorphism) 
   ------------------------------------- */

.parallax-bg-1, .parallax-bg-2, .parallax-bg-3 {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-bg-1 { background-image: url('assets/bg-1.png'); }
.parallax-bg-2 { background-image: url('assets/bg-2.png'); }
.parallax-bg-3 { background-image: url('assets/bg-3.png'); }

.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px);
    border-radius: var(--radius-bento);
    padding: 4rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
    .glass-panel {
        padding: 2rem;
    }
}

/* Hard fix for iOS Safari Parallax Bug */
@media (max-width: 1024px), (pointer: coarse) {
    .hero,
    .parallax-bg-1, 
    .parallax-bg-2, 
    .parallax-bg-3 {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center top !important;
    }
}

.macro-section {
    background-color: transparent !important;
    border-top: none;
    padding: 8rem 2rem;
}

.alt-bg {
    background-color: transparent !important;
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* App Store Button Styling */
.app-store-button {
    display: inline-flex;
    align-items: center;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.75rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
    text-align: left;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 0.5rem;
}

.app-store-button:hover {
    background-color: #1a1a1c;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.app-store-button svg {
    flex-shrink: 0;
}

.app-store-button .btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-store-button .btn-subtext {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.app-store-button .btn-maintext {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* FAQ Section Styling */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 113, 227, 0.2);
}

.faq-question {
    padding: 1.5rem 2rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    gap: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 2rem;
}

.faq-answer p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-bottom: 0px;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

/* -------------------------------------
   Premium Ambient Glow & Micro-Animations 
   ------------------------------------- */

/* Contain glow elements within sections */
.macro-section {
    background-color: transparent !important;
    border-top: none;
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Radial Gradient Ambient Circles */
.ambient-glow-circle {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.16;
    z-index: 0;
    pointer-events: none;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ambient-glow-circle.circle-cyan {
    background: radial-gradient(circle, #00d2ff 0%, rgba(0, 113, 227, 0) 70%);
}

.ambient-glow-circle.circle-orange {
    background: radial-gradient(circle, #ff5e3a 0%, rgba(255, 45, 85, 0) 70%);
}

.ambient-glow-circle.circle-purple {
    background: radial-gradient(circle, #b833ff 0%, rgba(120, 0, 255, 0) 70%);
}

/* Subtle shift of background colors on section hover */
.macro-section:hover .ambient-glow-circle {
    transform: scale(1.15) translate(15px, -15px);
}

/* Glass panel enhancements */
.glass-panel {
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: saturate(180%) blur(32px);
    -webkit-backdrop-filter: saturate(180%) blur(32px);
    border-radius: var(--radius-bento);
    padding: 4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.45);
    position: relative;
    z-index: 1; /* Sit above the blurred backgrounds */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* App Store Download Button Micro-Animations */
.app-store-button {
    transition: background-color 0.25s, border-color 0.25s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease !important;
}

.app-store-button:hover {
    background-color: #0b0b0c !important;
    border-color: rgba(0, 113, 227, 0.4) !important;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.35) !important;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 113, 227, 0.4);
    border: 2px solid transparent;
    background-clip: padding-box;
}


.showcase-mockup .dynamic-island { display: none; }

/* Menu Toggle and Mobile Drawer */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: 15px;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

@media (max-width: 1100px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: var(--surface-color);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 20px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        display: flex !important;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .menu-toggle.active span:first-child {
        transform: rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }
}

/* Fix for Dropdowns inside Mobile Drawer */
@media (max-width: 1100px) {
    .dropdown {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .dropbtn {
        font-size: 1.1rem;
        padding: 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-content {
        position: static;
        visibility: visible;
        opacity: 1;
        box-shadow: none;
        border: none;
        background: transparent;
        transform: none;
        padding: 10px 0 0 10px;
        min-width: 100%;
        display: block;
    }
    
    .dropdown:hover .dropdown-content {
        transform: none;
    }
    
    .dropbtn .arrow {
        display: none;
    }
}

/* Fix horizontal scroll caused by Mermaid diagrams or long text */
.mermaid {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 15px;
}
.mermaid svg {
    max-width: none !important;
}
.manual-content {
    overflow-x: hidden;
    max-width: 100vw;
}
@media (max-width: 768px) {
    .manual-content h1 {
        font-size: 1.8rem;
    }
}
