:root {
    --primary: #00e5ff;
    --primary-dark: #00b8cc;
    --bg-dark: #0a0c10;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #00e5ff 0%, #007bff 100%);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-text .accent {
    color: var(--primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-white {
    background: #fff;
    color: var(--bg-dark);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

/* Hero Visual Mockup */
.app-mockup {
    width: 100%;
    aspect-ratio: 16/10;
    background: #111;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 229, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: var(--transition);
}

.app-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    height: 40px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.mockup-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.m-btn {
    font-size: 0.65rem;
    padding: 3px 10px;
    background: #2a2a2a;
    border-radius: 4px;
    color: #e0e0e0;
}

.m-active {
    background: var(--primary);
    color: #000;
    font-weight: 700;
}

.m-segment {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 5px 15px;
}

.m-dropdown {
    background: #2a2a2a;
    border: 1px solid #444;
    font-size: 0.65rem;
    padding: 3px 25px 3px 10px;
    border-radius: 4px;
    color: #bbb;
    position: relative;
}

.m-dropdown::after {
    content: "▼";
    position: absolute;
    right: 8px;
    font-size: 0.5rem;
    opacity: 0.5;
}

.mockup-body {
    flex-grow: 1;
    display: flex;
}

.mockup-sidebar {
    width: 160px;
    background: #151515;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.tool-group {
    display: flex;
    gap: 0.5rem;
    padding: 0 0.75rem 1rem;
    border-bottom: 1px solid #222;
}

.tool-icon {
    font-size: 0.9rem;
    opacity: 0.8;
}

.structure-list {
    padding: 1rem 0.75rem;
}

.struct-title {
    font-size: 0.6rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.struct-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    color: #aaa;
    margin-bottom: 0.4rem;
}

.check {
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check::after {
    content: "L";
    color: #fff;
    transform: rotate(45deg) scaleX(-1);
    font-size: 0.5rem;
    margin-bottom: 2px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.yellow {
    background: #ffcc00;
}

.dot.green {
    background: #22c55e;
}

.dot.red {
    background: #ef4444;
}

.dot.cyan {
    background: #00e5ff;
}

.dot.blue {
    background: #3b82f6;
}

.user-info {
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name {
    font-size: 0.65rem;
    color: #999;
}

.mockup-main {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    background: #222;
    padding: 2px;
}

.view-pane {
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.view-pane:not(.prominent) {
    filter: blur(2px) grayscale(0.5);
    opacity: 0.6;
}

.view-pane.prominent {
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
    border: 2px solid var(--primary) !important;
    transform: scale(1.02);
}

.pane-header {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.pane-label {
    font-size: 0.6rem;
    font-weight: 700;
}

.pane-icons {
    font-size: 0.5rem;
    opacity: 0.5;
    display: flex;
    gap: 0.4rem;
}

.axial {
    border-top: 2px solid #ef4444;
}

.coronal {
    border-top: 2px solid #22c55e;
}

.sagittal {
    border-top: 2px solid #3b82f6;
}

.physics {
    border-top: 2px solid #666;
}

.dicom-graphic {
    width: 100%;
    height: 100%;
    background-color: #050505;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Photographic Noise Filter */
    filter: contrast(1.2) brightness(0.9);
}

.dicom-graphic::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Synthetic & Real CT Look (Refined based on user screenshot) */
.axial .dicom-graphic {
    background:
        url("assets/axial.png"),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 80%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25,60 Q15,40 25,25 Q35,15 50,15 Q65,15 75,25 Q85,40 75,60 Q65,85 50,85 Q35,85 25,60' fill='white' opacity='0.08'/%3E%3Cpath d='M20,40 Q10,35 15,60 L20,65 Q15,45 20,40 Z' fill='white' opacity='0.15'/%3E%3Cpath d='M80,40 Q90,35 85,60 L80,65 Q85,45 80,40 Z' fill='white' opacity='0.15'/%3E%3Crect x='42' y='20' width='16' height='10' rx='2' fill='white' opacity='0.12'/%3E%3C/svg%3E");
    background-size: contain, cover, 75% 75%;
    background-position: center;
    background-repeat: no-repeat;
}

.coronal .dicom-graphic {
    background:
        url("assets/coronal.png"),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 80%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20,30 Q15,50 30,75 L70,75 Q85,50 80,30' fill='none' stroke='white' stroke-width='1.5' opacity='0.15'/%3E%3Cpath d='M45,5 L55,5 L55,40 Q50,45 45,40 Z' fill='white' opacity='0.1'/%3E%3Cpath d='M30,30 Q50,25 70,30' stroke='white' stroke-width='1' fill='none' opacity='0.1'/%3E%3C/svg%3E");
    background-size: contain, cover, 85% 85%;
    background-position: center;
    background-repeat: no-repeat;
}

.sagittal .dicom-graphic {
    background:
        url("assets/sagittal.png"),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 80%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M65,10 Q50,40 55,90' stroke='white' stroke-width='3' fill='none' opacity='0.1'/%3E%3Cpath d='M35,25 Q65,20 75,55 L65,80 Q35,70 35,25' fill='white' opacity='0.08'/%3E%3Cpath d='M40,40 Q55,45 50,70' stroke='white' stroke-width='1' fill='none' opacity='0.1'/%3E%3C/svg%3E");
    background-size: contain, cover, 65% 90%;
    background-position: center;
    background-repeat: no-repeat;
}

.contour {
    position: absolute;
    border-radius: 45%;
    border: 1.5px solid currentColor;
    filter: drop-shadow(0 0 5px currentColor);
    animation: pulse 4s infinite alternate;
    opacity: 0.8;
}

.organ-1 {
    color: #ffcc00;
    width: 25%;
    height: 20%;
    top: 40%;
    left: 37.5%;
    border-radius: 40% 60% 70% 30% / 50%;
}

.organ-2 {
    color: #22c55e;
    width: 15%;
    height: 15%;
    top: 60%;
    left: 42.5%;
    border-radius: 50%;
}

.organ-3 {
    color: #ef4444;
    width: 20%;
    height: 15%;
    top: 50%;
    left: 40%;
    border-radius: 30% 70% 40% 60% / 50%;
}

.organ-4 {
    color: #00e5ff;
    width: 30%;
    height: 10%;
    top: 30%;
    left: 35%;
    border-radius: 10% 90% 20% 80% / 50%;
}

.pane-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.5);
}

.slider-track {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    position: relative;
}

.slider-thumb {
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
}

.physics-graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.physics-icon {
    font-size: 2rem;
    opacity: 0.3;
}

.physics-msg {
    font-size: 0.65rem;
    color: #555;
    text-align: center;
}

.physics-graphic {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mesh-grid {
    width: 60%;
    height: 60%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 10px 10px;
    transform: rotateX(45deg);
}

@keyframes pulse {
    from {
        opacity: 0.4;
        transform: scale(0.95) rotate(0deg);
    }

    to {
        opacity: 0.8;
        transform: scale(1.05) rotate(2deg);
    }
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* Rest of visuals */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.floating-stats {
    position: absolute;
    background: rgba(10, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.stats-1 {
    top: -20px;
    right: -20px;
}

.stats-2 {
    bottom: -20px;
    left: -20px;
}

.stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Blobs */
.hero-bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #007bff;
    bottom: -150px;
    left: -150px;
}

/* Features */
.features {
    padding: 8rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.feature-card {
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.feat-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Workflow */
.workflow {
    padding: 8rem 0;
}

.workflow-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.workflow-text h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step {
    display: flex;
    gap: 2rem;
}

.step-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(0, 229, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    flex-shrink: 0;
}

.step h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
}

.workflow-viz {
    width: 100%;
    aspect-ratio: 16/10;
    padding: 1.5rem;
}

.process-viz {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 2rem;
}

.ai-core-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-core {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: drop-shadow(0 0 15px var(--primary));
    animation: coreMorph 4s infinite alternate ease-in-out;
}

.ai-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 50%;
    animation: rotateOrbit 10s infinite linear;
}

.ai-orbit::after {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.orbit-2 {
    width: 70%;
    height: 70%;
    animation-duration: 6s;
    animation-direction: reverse;
}

.status-progress {
    width: 250px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    width: 60%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary);
    animation: progressFlow 3s infinite ease-in-out;
}

.status-meta {
    display: flex;
    gap: 2rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--primary);
    opacity: 0.7;
}

@keyframes coreMorph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: scale(1);
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 50% 40% 50%;
        transform: scale(1.1);
    }
}

@keyframes rotateOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes progressFlow {
    0% {
        width: 30%;
    }

    50% {
        width: 85%;
    }

    100% {
        width: 30%;
    }
}

.scanning-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
    animation: scanLineMove 4s infinite linear;
}

.scan-line:nth-child(2) {
    animation-delay: 1.5s;
    opacity: 0.1;
}

.scan-line:nth-child(3) {
    animation-delay: 3s;
    opacity: 0.2;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: statusPulse 2s infinite ease-in-out;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@keyframes scanLineMove {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(400%);
    }
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
    }

    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(0, 229, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

/* CTA */
.cta-section {
    padding: 6rem 0 10rem;
}

.cta-card {
    background: var(--accent-gradient);
    padding: 5rem;
    border-radius: 30px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-left: 5%;
    margin-right: 5%;
}

.cta-card h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.cta-card p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {

    .hero-grid,
    .workflow-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta,
    .cta-actions {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Mobile Navigation Button (Hamburger) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Mobile Menu Styles */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a {
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mobile-nav.active a {
    transform: translateY(0);
    opacity: 1;
}

/* Stagger animation for menu items */
.mobile-nav.active a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav.active a:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-nav.active a:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav.active a:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-nav .btn {
    margin-top: 1rem;
    width: 80%;
    text-align: center;
}

/* Hamburger Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Adjustments */
/* Responsive Adjustments */
/* Responsive Adjustments */
@media (max-width: 1024px) {

    .hero-grid,
    .workflow-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta,
    .cta-actions {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .app-mockup {
        margin-top: 3rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        transform: none !important;
        /* Reset 3D transform on tablet/mobile to prevent overflow */
    }

    .app-mockup:hover {
        transform: none !important;
    }

    /* Bring stats inside to prevent clipping */
    .floating-stats {
        z-index: 20;
        /* Ensure above mockup */
    }

    .stats-1 {
        top: -15px;
        right: 0;
        /* Align to edge, don't hang out */
    }

    .stats-2 {
        bottom: -15px;
        left: 0;
        /* Align to edge, don't hang out */
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 10px;
        /* Add slight internal padding to ensure text doesn't touch edges */
        overflow: visible;
        /* Allow content to show if it was being aggressively clipped */
        width: 100%;
        /* Ensure it tries to fill the container */
        box-sizing: border-box;
        /* Ensure padding doesn't add to width */
    }

    .hero-content h1 {
        font-size: 2.2rem;
        /* Slight reduction from 2.5rem */
        overflow-wrap: break-word;
        /* Better than word-wrap for long words */
        word-break: break-word;
        /* Fallback/Ensure aggressive breaking if needed */
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        line-height: 1.2;
    }

    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
        min-height: auto;
        overflow: hidden;
        /* Prevent hero content from overflowing */
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        padding: 0;
        /* Remove horizontal padding to maximize width */
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
        display: block;
        /* Ensure it takes full width */
    }

    .cta-section {
        padding: 4rem 0;
    }

    .cta-card {
        padding: 3rem 1.5rem;
        margin: 0 1rem;
    }

    .cta-card h2 {
        font-size: 2rem;
    }

    .cta-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-info p {
        margin: 1rem auto;
    }

    .workflow-text h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .badge {
        font-size: 0.75rem;
        white-space: normal;
        text-align: center;
    }

    .mockup-controls {
        gap: 0.25rem;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .m-btn,
    .m-dropdown {
        font-size: 0.6rem;
        padding: 3px 6px;
        white-space: nowrap;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    /* Stats adjustments for small screens */
    .floating-stats {
        transform: scale(0.85);
        padding: 0.6rem 0.8rem;
    }

    .stats-1 {
        top: -10px;
        right: 0;
    }

    .stats-2 {
        bottom: -10px;
        left: 0;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        /* Ensure grid itself doesn't cause overflow */
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
}

/* Galaxy Z Fold / Ultra-Narrow Screen Adjustments */
@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
        /* Minimal padding */
        width: 100%;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        /* Further reduce font for < 360px */
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .mobile-menu-btn {
        transform: scale(0.9);
    }

    .cta-card h2 {
        font-size: 1.75rem;
    }

    /* Ensure nothing forces width > 100% */
    .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}