:root {
    --bg-color: #050505;
    --bg-secondary: #0a0a0a;
    --text-color: #ffffff;
    --text-light: #a1a1aa;
    --primary: #ff9000;
    /* Factory.ai orange accent */
    --accent: #3b82f6;
    /* Secondary blue for subtle depth */
    --border: #27272a;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;

    --spacing-container: 1400px;
    --spacing-section: 10rem;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-color);
}

h1 {
    font-size: 6rem;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom right, #ffffff 30%, #71717a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header p {
    margin: 0 auto;
}

p {
    color: var(--text-light);
    font-size: 1.25rem;
    max-width: 65ch;
    line-height: 1.7;
}

.text-gradient {
    background: linear-gradient(to right, #ef4444, #3b82f6, #ef4444);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* Layout */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
}

.section {
    padding: var(--spacing-section) 0;
    position: relative;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo span {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to right, #ef4444, #3b82f6, #ef4444);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s linear infinite;
}

.logo:hover {
    transform: translateY(-1px);
}

@keyframes gradientMoveVertical {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

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

.btn-primary:hover {
    background-color: #e2e2e2;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Hero */
.hero {
    padding-top: 15rem;
    padding-bottom: 10rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 50%, rgba(255, 144, 0, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.05), transparent 25%);
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-subtext {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    color: var(--text-light);
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Split Section Layout (Factory Style) */
.split-section {
    display: flex;
    min-height: 80vh;
}

.vertical-title {
    position: absolute;
    left: 0;
    top: 10rem;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: left top;
    font-size: 8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.vertical-title.right {
    left: auto;
    right: 0;
    transform: rotate(90deg) translateX(50%);
    transform-origin: right top;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    padding-left: 4rem;
    /* Space for vertical title */
}

.intro-text {
    margin-bottom: 6rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Tabs */
.feature-tabs {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.tab-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 1px solid var(--border);
}

.tab-btn {
    background: none;
    border: none;
    text-align: left;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tab-btn::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    color: var(--text-color);
    font-weight: 600;
}

.tab-btn.active::before {
    opacity: 1;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.tab-visual {
    margin-top: 2rem;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Visual Placeholders (Abstract Graphics) */
.visual-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

.line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary);
    opacity: 0.5;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--text-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px var(--primary);
}

.d1 {
    left: 20%;
}

.d2 {
    left: 50%;
}

.d3 {
    left: 80%;
}

.code-style {
    padding: 2rem;
    font-family: var(--font-mono);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.highlight {
    color: var(--primary);
}

.text-green {
    color: #10b981;
}

.text-red {
    color: #ef4444;
}

.graph-style {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
    padding-bottom: 4rem;
    position: relative;
}

.bar {
    width: 60px;
    background: var(--border);
    transition: height 1s ease;
}

.b1 {
    height: 40%;
    background: var(--primary);
}

.b2 {
    height: 70%;
    background: var(--accent);
}

.b3 {
    height: 50%;
    background: var(--text-light);
}

.bar-label {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-color);
    letter-spacing: 0.05em;
}


/* Feature Block (Platform Section) */
.feature-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    border-top: 1px solid var(--border);
    padding-top: 4rem;
}

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

.feature-item h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* List Grid (Enterprise Section) */
.list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
}

.list-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.item-number {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 1.25rem;
}

/* Footer */
.footer {
    padding: 8rem 0 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 6rem;
    text-align: center;
}

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

.footer-bottom {
    text-align: center;
    color: #52525b;
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid #18181b;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .feature-tabs {
        grid-template-columns: 1fr;
    }

    .tab-list {
        flex-direction: row;
        border-left: none;
        border-bottom: 1px solid var(--border);
        overflow-x: auto;
        padding-bottom: 1rem;
        /* Hide scrollbar */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .tab-list::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        white-space: nowrap;
    }

    .tab-btn::before {
        left: 0;
        right: 0;
        top: auto;
        bottom: -17px;
        width: 100%;
        height: 2px;
    }

    .feature-block {
        grid-template-columns: 1fr;
    }

    .vertical-title {
        display: none;
    }

    .content-wrapper {
        padding-left: 0;
    }

    h1 {
        font-size: 4rem;
    }
}

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

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

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

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: none;
        /* Hide nav links on mobile for simplicity, or stack them */
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

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

    .list-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .item-number {
        margin-bottom: 0.5rem;
    }
}

/* Video Styles */
.feature-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    background-color: #000;
    /* Optional: adds black background for letterboxing */
}