:root {
    --sb-primary: #1a73e8;
    --sb-primary-hover: #1557b0;
    --sb-bg-dark: #0f172a;
    --sb-bg-card: #1e293b;
    --sb-text-main: #f8fafc;
    --sb-text-alt: #94a3b8;
    --sb-success: #22c55e;
    --sb-danger: #ef4444;
    --sb-warning: #f59e0b;
    --sb-border: #334155;
    --sb-glass: rgba(255, 255, 255, 0.03);
    --sb-accent: #3b82f6;
    --sb-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--sb-bg-dark);
    color: var(--sb-text-main);
    line-height: 1.6;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--sb-text-main);
}

.brand img {
    width: 44px;
    height: 44px;
}

.brand h1 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.brand .subtitle {
    font-size: 0.8rem;
    color: var(--sb-text-alt);
    margin: 0;
    font-weight: 400;
}

header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sb-border);
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--sb-text-alt);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--sb-primary);
}

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

/* Hero Section */
.hero {
    padding: 8rem 2rem;
    text-align: left;
    background: radial-gradient(circle at top right, rgba(26, 115, 232, 0.1) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(26, 115, 232, 0.05) 0%, transparent 50%);
}

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

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--sb-text-alt);
    margin-bottom: 2.5rem;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.hero-img-main {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--sb-border);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-visual:hover .hero-img-main {
    transform: rotateY(0deg) rotateX(0deg);
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-img-main {
        transform: none;
    }
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--sb-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--sb-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--sb-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(26, 115, 232, 0.3);
}

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

.feature-card {
    background-color: var(--sb-bg-card);
    border: 1px solid var(--sb-border);
    padding: 2rem;
    border-radius: var(--sb-radius);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--sb-primary);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--sb-primary);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    background: var(--sb-bg-card);
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--sb-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    height: 500px;
    /* Adjust based on image aspect ratio */
}

@media (max-width: 768px) {
    .carousel-wrapper {
        height: 300px;
    }
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    display: block;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--sb-border);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--sb-primary);
}

/* Manual Styles */
.manual-img {
    width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid var(--sb-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.execution-demo {
    background: rgba(26, 115, 232, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(26, 115, 232, 0.2);
    margin: 2rem 0;
}

.demo-label {
    font-weight: 700;
    color: var(--sb-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-label::before {
    content: '▶';
    font-size: 0.7rem;
}

.execution-img {
    margin: 0;
    border-color: var(--sb-primary);
}

.manual-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.manual-sidebar {
    position: sticky;
    top: 100px;
    background: var(--sb-bg-card);
    padding: 1.5rem;
    border-radius: var(--sb-radius);
    border: 1px solid var(--sb-border);
}

.manual-sidebar ul {
    list-style: none;
}

.manual-sidebar a {
    display: block;
    padding: 0.5rem 0;
    color: var(--sb-text-alt);
    text-decoration: none;
    font-size: 0.95rem;
}

.manual-sidebar a:hover {
    color: var(--sb-text-main);
}

.manual-sidebar .sub-menu {
    margin-left: 1rem;
    margin-top: 0.5rem;
    border-left: 1px solid var(--sb-border);
    padding-left: 0.5rem;
    list-style: none;
}

.manual-sidebar .sub-menu li {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.manual-sidebar .sub-menu a {
    color: var(--sb-text-alt);
    opacity: 0.8;
    padding: 0.25rem 0;
}

.manual-sidebar .sub-menu a:hover {
    opacity: 1;
    color: var(--sb-primary);
}

.manual-content section {
    margin-bottom: 4rem;
}

.manual-content h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--sb-border);
}

.manual-content p {
    margin-bottom: 1rem;
    color: var(--sb-text-alt);
}

.manual-content ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}

.manual-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--sb-radius);
    overflow: hidden;
    border: 1px solid var(--sb-border);
}

.manual-table th,
.manual-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--sb-border);
}

.manual-table th {
    background: rgba(26, 115, 232, 0.1);
    color: var(--sb-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.manual-table td {
    color: var(--sb-text-alt);
    font-size: 0.95rem;
}

.manual-table tr:last-child td {
    border-bottom: none;
}

.manual-table strong {
    color: var(--sb-text-main);
}

.manual-content strong {
    color: var(--sb-text-main);
}

/* Footer */
footer {
    border-top: 1px solid var(--sb-border);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--sb-text-alt);
    font-size: 0.9rem;
    margin-top: 6rem;
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
        gap: 1.5rem;
        height: auto;
        min-height: auto;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .manual-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .manual-sidebar {
        position: sticky;
        top: 80px;
        z-index: 900;
        margin-bottom: 2rem;
        padding: 0.8rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        background: var(--sb-bg-dark);
        /* Match background for sticky effect */
        border-radius: 0;
        border-left: none;
        border-right: none;
        scrollbar-width: none;
    }

    .manual-sidebar::-webkit-scrollbar {
        display: none;
    }

    .manual-sidebar h3 {
        display: none;
    }

    .manual-sidebar ul {
        display: flex;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .manual-sidebar .sub-menu {
        display: none;
        /* Keep it clean on mobile */
    }

    .manual-sidebar a {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .manual-content section {
        margin-bottom: 3rem;
    }

    .manual-content h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 1.5rem;
    }

    /* Table Responsiveness */
    .manual-table {
        display: block;
        overflow-x: auto;
    }

    footer {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .brand h1 {
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    nav ul {
        gap: 0.8rem;
        font-size: 0.9rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}