/* almostanything.app — v4 with Demo */

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

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-hover: #1c1c1c;
    --border: #262626;
    --text: #fafafa;
    --text-dim: #707070;
    --accent: #00d4aa;
    --font: 'Outfit', -apple-system, sans-serif;
}

html {
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
}

.logo {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent);
}

.contact-link {
    font-size: 0.875rem;
    color: var(--text-dim);
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--text);
}

/* Hero */
.hero {
    padding: 5rem 3rem 4rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero-sub {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--accent);
    margin-top: 0.75rem;
    letter-spacing: -0.02em;
}

/* Marquee */
.marquee-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    gap: 3rem;
    padding-right: 3rem;
}

.marquee-item {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Demo Section */
.demo-section {
    padding: 3rem 3rem 4rem;
}

.demo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.demo-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: block;
    margin-bottom: 0.75rem;
}

.demo-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.demo-header p {
    color: var(--text-dim);
    font-size: 1rem;
}

.demo-frame {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    position: relative;
}

.demo-browser {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.browser-dots span:first-child {
    background: #ff5f57;
}

.browser-dots span:nth-child(2) {
    background: #ffbd2e;
}

.browser-dots span:last-child {
    background: #28c840;
}

.browser-url {
    font-size: 0.75rem;
    color: var(--text-dim);
    background: var(--bg);
    padding: 0.35rem 1rem;
    border-radius: 6px;
    flex: 1;
    max-width: 300px;
}

.demo-frame iframe {
    width: 100%;
    height: 550px;
    border: none;
    display: block;
    position: relative;
    z-index: 1;
}

/* Loading skeleton */
.demo-loading {
    position: absolute;
    inset: 50px 0 0 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--surface);
}

.skeleton-header {
    width: 40%;
    height: 24px;
    background: linear-gradient(90deg, var(--border) 25%, var(--surface-hover) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-body {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, var(--border) 25%, var(--surface-hover) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-row {
    width: 80%;
    height: 16px;
    background: linear-gradient(90deg, var(--border) 25%, var(--surface-hover) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-row.short {
    width: 50%;
}

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

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

/* Capabilities */
.capabilities {
    padding: 4rem 3rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.capabilities h3 {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.cap-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.cap-list span {
    padding: 0.6rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
}

.cap-list span:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
}

/* CTA */
.cta {
    padding: 5rem 3rem;
    text-align: center;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.cta h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.25);
}

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

footer span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 768px) {

    header,
    .hero,
    .demo-section,
    .capabilities,
    .cta,
    footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .demo-frame iframe {
        height: 400px;
    }

    .cap-list span {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}