:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fbfbfb;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-primary: #d32f2f;
    /* Mechanical Red from Gear/Eyes */
    --accent-secondary: #df8f3e;
    /* Aged Bronze from Robot Body */
    --accent-triple: #707070;
    /* Stone Grey from Title Text */
    --border-color: #efefef;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
    --radius-lg: 12px;
    --radius-md: 6px;
    --max-width: 1100px;
}

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

.rounded {
    border-radius: var(--radius-lg);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #09090b;
        --bg-secondary: #18181b;
        --text-primary: #fafafa;
        --text-secondary: #a1a1aa;
        --border-color: #27272a;
        --glass-bg: rgba(9, 9, 11, 0.7);
        --glass-border: rgba(255, 255, 255, 0.1);
    }
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.flex-row {
    display: flex;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.space-between {
    justify-content: space-between;
}

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

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

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Top Branding */
.top-branding {
    padding: 3rem 0;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
}

.main-brand-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
}

/* Navbar */
.navbar {
    height: 70px;
    position: sticky;
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-mini {
    font-weight: 800;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 4rem;
    /* Specific spacing to separate from brand title */
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

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

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: #e5e7eb33;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

/* Hero */
.hero {
    padding: 6rem 0;
    position: relative;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-triple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--border-color);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.badge.primary {
    background: var(--accent-secondary);
    color: var(--border-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

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

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-visual img {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Features */
.features {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.center {
    text-align: center;
}

.h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.max-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card.lg {
    grid-column: span 2;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card.lg {
        grid-column: span 1;
    }
}

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

.feature-card {
    padding: 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

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

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

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

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

/* Architecture Section */
.bg-soft {
    background-color: var(--bg-secondary);
}

.architecture {
    padding: 8rem 0;
}

.notion-block {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.notion-header {
    padding: 0.75rem 1rem;
    background: var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.notion-title {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.notion-content {
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 800;
}

/* Dashboard Section */
.dashboard {
    padding: 8rem 0;
}

.dashboard-preview {
    margin-top: 4rem;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
    background: var(--bg-secondary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-preview img {
    width: 100%;
    display: block;
    border-radius: inherit;
}

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

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 5rem;
    text-align: center;
    border-radius: 2rem;
}

@media screen and (max-width: 768px) {
    .glass-card {
        padding: 2rem;
    }
}

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

.code-block {
    background: #000;
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem auto;
    max-width: 600px;
    text-align: left;
    font-family: 'monospace';
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Footer */
.footer {
    padding: 6rem 0 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-note {
    margin-top: 0.5rem;
    font-weight: 500;
}

.footer-link {
    color: var(--accent-primary);
}

.footer-link:hover {
    text-decoration: underline;
}

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

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.link-group a {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.link-group a:hover {
    color: var(--accent-primary);
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        margin-left: 0;
        overflow: hidden;
        transition: height 0.3s ease-in-out;
        border-bottom: 1px solid var(--border-color);
        gap: 1.5rem;
    }

    .nav-links.active {
        height: calc(100vh - 70px);
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 2rem;
    }

    .navbar .container {
        justify-content: space-between;
    }

    .logo-mini {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}