/* TARS - AI Server Landing Page */

:root {
    --bg: #0a0a0f;
    --bg-elevated: #12121a;
    --fg: #f5f5f7;
    --fg-muted: #8888a0;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --success: #22c55e;
    --warning: #f59e0b;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

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

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

.btn-primary:hover {
    background: #5558e3;
    box-shadow: 0 8px 30px var(--accent-glow);
}

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-nav {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent);
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--fg-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

/* Trust */
.trust {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.trust p {
    color: var(--fg-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.trust-placeholder {
    color: var(--fg-muted);
    font-size: 1.5rem;
    letter-spacing: 8px;
}

/* Sections */
section {
    padding: 100px 0;
}

section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

.section-intro {
    text-align: center;
    color: var(--fg-muted);
    max-width: 680px;
    margin: -34px auto 38px;
}

/* Workstations */
.workstations {
    background: var(--bg);
}

.workstations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.workstation-card {
    margin: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.workstation-card img {
    display: block;
    width: 100%;
    height: auto;
}

.workstation-card figcaption {
    padding: 14px 18px;
    color: var(--fg-muted);
    font-size: 0.92rem;
}

/* Features */
.features {
    background: var(--bg-elevated);
}

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

.feature-card {
    padding: 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--fg-muted);
    font-size: 0.95rem;
}

/* Use Cases */
.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.usecase {
    padding: 24px;
    border-left: 3px solid var(--accent);
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.usecase h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.usecase ul {
    list-style: none;
}

.usecase li {
    color: var(--fg-muted);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.usecase li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* How it works */
.how-it-works {
    background: var(--bg-elevated);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.step {
    text-align: center;
    padding: 24px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.step p {
    color: var(--fg-muted);
    font-size: 0.95rem;
}

/* Pricing */
.pricing {
    text-align: center;
}

.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.pricing-header {
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

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

.price .period {
    color: var(--fg-muted);
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

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

.pricing-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--fg-muted);
}

/* Comparison */
.comparison {
    background: var(--bg-elevated);
}

.comparison-figure {
    max-width: 960px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.comparison-figure figcaption {
    padding: 14px 18px;
    color: var(--fg-muted);
    font-size: 0.92rem;
    text-align: center;
}

/* Contact */
.contact {
    text-align: center;
}

.contact-intro {
    color: var(--fg-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 40px;
}

.contact-options {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--fg-muted);
    margin-bottom: 4px;
}

.contact-value {
    color: var(--fg);
    font-weight: 500;
}

.contact-note {
    color: var(--fg-muted);
    font-size: 0.9rem;
}

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

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

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

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

.footer-links,
.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-links a,
.footer-legal a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--fg);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

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

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

    .hero {
        padding: 120px 0 60px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    section {
        padding: 60px 0;
    }

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

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links,
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}
