/* ===== Reset & Variables ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-400: #a3a3a3;
    --gray-600: #525252;
    --gray-800: #1a1a1a;
    --primary: #184EB4;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 500;
    font-family: var(--font);
    border-radius: 980px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: #143d8f;
}

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

.btn-white:hover {
    background: var(--gray-100);
}

.btn-outline {
    background: transparent;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
}

.btn-outline:hover {
    background: var(--white);
    border-color: var(--gray-400);
}

.btn-xl {
    padding: 18px 36px;
    font-size: 19px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    color: var(--gray-800);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav .btn {
    padding: 8px 18px;
    font-size: 14px;
}

/* ===== Hero ===== */
.hero {
    padding: 180px 0 120px;
    text-align: center;
    background: var(--white);
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    color: var(--black);
}

.hero-subtitle {
    font-size: clamp(19px, 2.5vw, 24px);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.4;
}

.hero-cta {
    margin-bottom: 16px;
}

.hero-note {
    font-size: 14px;
    color: var(--gray-400);
}

/* ===== Features ===== */
.features {
    padding: 140px 0;
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--black);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    background: var(--gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--gray-800);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--black);
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 140px 0;
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 80px;
}

.step {
    text-align: center;
}

.step-num {
    display: inline-block;
    font-size: 48px;
    font-weight: 700;
    color: var(--gray-200);
    margin-bottom: 20px;
    line-height: 1;
}

.step h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--black);
}

.step p {
    font-size: 17px;
    color: var(--gray-600);
    max-width: 280px;
    margin: 0 auto;
}

/* ===== Code Showcase ===== */
.code-showcase {
    max-width: 680px;
    margin: 0 auto;
}

.code-window {
    background: var(--gray-800);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.code-dots {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.code-dots span:first-child { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }

.code-window pre {
    padding: 24px;
    margin: 0;
    overflow-x: auto;
}

.code-window code {
    font-family: 'SF Mono', Menlo, Monaco, monospace;
    font-size: 15px;
    line-height: 1.6;
    color: #e5e5e5;
}

.code-comment { color: #6a9955; }
.code-tag { color: #569cd6; }
.code-attr { color: #9cdcfe; }
.code-str { color: #ce9178; }
.code-fn { color: #dcdcaa; }

/* ===== Performance ===== */
.performance {
    padding: 140px 0;
    background: var(--gray-50);
}

.performance-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.performance-text h2 {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--black);
    margin-bottom: 24px;
}

.performance-text p {
    font-size: 18px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 32px;
}

.performance-stats {
    display: flex;
    gap: 48px;
}

.perf-stat {
    text-align: left;
}

.perf-stat-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.perf-stat-label {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 8px;
}

.performance-chart {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chart-bar-label {
    width: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    flex-shrink: 0;
}

.chart-bar-track {
    flex: 1;
    height: 32px;
    background: var(--gray-100);
    border-radius: 8px;
    position: relative;
}

.chart-bar-fill {
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    transition: width 1s ease-out;
    overflow: hidden;
}

.chart-bar-fill.competitor {
    background: var(--gray-400);
}

.chart-bar-fill.ullsa {
    background: linear-gradient(90deg, var(--primary), #2563eb);
}

.chart-bar.highlight .chart-bar-label {
    color: var(--primary);
    font-weight: 600;
}

.chart-bar-value-outside {
    position: absolute;
    left: calc(5% + 12px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.performance-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.perf-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--white);
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
}

.perf-feature svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary);
}

@media (max-width: 1024px) {
    .performance-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .performance-stats {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .performance {
        padding: 80px 0;
    }

    .performance-text h2 {
        font-size: 32px;
    }

    .performance-stats {
        gap: 32px;
    }

    .perf-stat-value {
        font-size: 36px;
    }

    .performance-chart {
        padding: 24px;
    }

    .chart-bar-label {
        width: 80px;
        font-size: 12px;
    }

    .chart-bar-fill {
        font-size: 11px;
        padding-right: 8px;
    }
}

/* ===== CTA ===== */
.cta {
    padding: 120px 0;
    background: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--gray-800);
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    padding: 48px 0;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 4px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--gray-600);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 14px;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-400);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-link {
        display: none;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .features,
    .how-it-works {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        margin-bottom: 48px;
    }

    .step-num {
        font-size: 40px;
    }

    .cta {
        padding: 80px 0;
    }

    .cta h2 {
        font-size: 32px;
    }

    .cta p {
        font-size: 17px;
    }

    .btn-xl {
        padding: 16px 28px;
        font-size: 17px;
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        padding: 0 24px;
    }

    .footer-main {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-links {
        justify-content: center;
    }
}
