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

:root {
    --bg: #ffffff;
    --bg-subtle: #fafafa;
    --bg-muted: #f4f4f5;
    --text: #09090b;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;
    --border: #e4e4e7;
    --border-dark: #d4d4d8;
    --accent: #111111;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -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: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

h3 {
    font-size: 1.125rem;
}

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
}

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

.btn-dark:hover {
    background: #2a2a2a;
}

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

.btn-ghost:hover {
    background: var(--bg-muted);
    border-color: var(--border-dark);
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.btn-full {
    width: 100%;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--text);
    text-decoration: none;
}

.logo-mark {
    flex-shrink: 0;
}

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

.nav-links a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

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

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

/* Hero */
.hero {
    padding: 140px 0 80px;
}

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

@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.hero-content h1 {
    margin-bottom: 1.25rem;
}

.hero-sub {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 360px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.visual-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

.visual-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

.visual-body {
    padding: 1.25rem;
}

.visual-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--bg-muted);
}

.visual-row:last-child {
    border-bottom: none;
}

.visual-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.visual-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.visual-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
}

.visual-badge-blocked {
    background: #fef2f2;
    color: #dc2626;
}

/* Logos */
.logos-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.logos-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.logo-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Sections */
.section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section-intro h2 {
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Problem */
.problem-section {
    padding: 6rem 0;
}

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

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

.problem-card {
    padding: 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.problem-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-muted);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.problem-card h3 {
    margin-bottom: 0.75rem;
}

.problem-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Solution */
.solution-section {
    padding: 6rem 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 120px;
}

.flow-step-highlight {
    border-color: var(--accent);
    border-width: 2px;
}

.flow-icon {
    color: var(--text);
}

.flow-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.flow-step-highlight .flow-label {
    color: var(--text);
    font-weight: 600;
}

.flow-line {
    width: 40px;
    height: 2px;
    background: var(--border-dark);
}

@media (max-width: 600px) {
    .flow-line {
        width: 2px;
        height: 24px;
    }
    
    .flow-diagram {
        flex-direction: column;
    }
}

/* API Section */
.api-section {
    padding: 6rem 0;
}

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

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

.api-content h2 {
    margin-bottom: 1rem;
}

.api-content > p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.feature-list svg {
    color: var(--text);
    flex-shrink: 0;
}

/* Code */
.code-window {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #333;
}

.code-dots {
    display: flex;
    gap: 0.375rem;
}

.code-dots span {
    width: 10px;
    height: 10px;
    background: #444;
    border-radius: 50%;
}

.code-body {
    padding: 1.25rem;
    overflow-x: auto;
    font-size: 0.8125rem;
    line-height: 1.7;
}

.code-body code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: #a1a1aa;
}

.code-kw { color: #c792ea; }
.code-str { color: #c3e88d; }
.code-bool { color: #89ddff; }
.code-cm { color: #546e7a; }

/* SHAFT */
.shaft-section {
    padding: 6rem 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

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

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

.shaft-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.shaft-card-alt {
    background: var(--bg-muted);
}

.shaft-letter {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    width: 40px;
    flex-shrink: 0;
}

.shaft-content h3 {
    margin-bottom: 0.375rem;
}

.shaft-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Pricing */
.pricing-section {
    padding: 6rem 0;
}

.pricing-card-single {
    max-width: 400px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 16px;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

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

.pricing-price {
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.price-note {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* CTA */
.cta-section {
    padding: 6rem 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
}

.cta-box {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.cta-box h2 {
    margin-bottom: 1rem;
}

.cta-box > p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-form {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 500px) {
    .cta-form {
        flex-direction: column;
    }
}

.cta-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
}

.cta-input:focus {
    border-color: var(--accent);
}

.cta-input::placeholder {
    color: var(--text-muted);
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

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

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

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

.footer-brand .logo {
    font-size: 1rem;
}

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

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

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

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}
