/* relaygent.ai — clean, dark, modern */
:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-code: #0d0d14;
    --border: #1e1e2e;
    --text: #e0e0e8;
    --text-dim: #8888a0;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --green: #22c55e;
    --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    --sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    --max-w: 960px;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre {
    font-family: var(--mono);
    font-size: 0.9rem;
}

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

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--text-dim); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn-nav {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}
.btn-nav:hover { opacity: 0.9; text-decoration: none !important; }

/* Hero */
.hero {
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }

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

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 0.7rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.9; text-decoration: none; }

.btn-secondary {
    color: var(--text-dim);
    padding: 0.7rem 1.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid var(--border);
    transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--text-dim); text-decoration: none; color: var(--text); }

.hero-title {
    background: linear-gradient(135deg, #e0e0e8 0%, #a0a0c8 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-note {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.hero-code {
    max-width: 520px;
    margin: 0 auto;
}

/* Terminal frame */
.terminal-frame {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    background: #16161f;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28c940; }

.terminal-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-left: auto;
    margin-right: auto;
    padding-right: 1.5rem;
    opacity: 0.6;
}

.terminal-frame pre {
    padding: 1.25rem 1.5rem;
    text-align: left;
    overflow-x: auto;
    color: var(--green);
    line-height: 1.8;
    margin: 0;
}

/* Sections */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-sub {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 560px;
    margin-bottom: 2rem;
}

/* Features */
.features { padding: 5rem 0; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}
.feature:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Hub demo */
.hub-demo { padding: 5rem 0; border-top: 1px solid var(--border); }

.hub-demo video {
    margin-top: 2rem;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: block;
}

/* How it works */
.how-it-works { padding: 5rem 0; }

.steps {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}
.step:hover { border-color: rgba(99, 102, 241, 0.4); }

.step-num {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--accent);
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.step-content p {
    color: var(--text-dim);
    font-size: 0.92rem;
}

/* Requirements */
.requirements { padding: 5rem 0; }

.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.req {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}
.req:hover { border-color: rgba(99, 102, 241, 0.4); }

.req h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.req p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.req code {
    background: var(--bg-code);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--green);
}

/* FAQ */
.faq { padding: 5rem 0; }

.faq-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
    padding: 0 1.5rem 1.1rem;
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Built by AI */
.built-by {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
}

.built-by .section-sub { max-width: 640px; margin-bottom: 1rem; }

/* CTA */
.cta {
    padding: 5rem 0;
    text-align: center;
}

.cta-code {
    max-width: 520px;
    margin: 1.5rem auto 2rem;
}


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

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-logo {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

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

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

.footer-sub {
    max-width: var(--max-w);
    margin: 1rem auto 0;
    padding: 0.75rem 1.5rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-sub span {
    font-size: 0.78rem;
    color: var(--text-dim);
    opacity: 0.6;
}

/* Scroll fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Mobile */
@media (max-width: 600px) {
    .hero { padding: 6rem 1rem 3rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
    }
    .nav-inner.open .nav-links { display: flex; }
    .nav-links a { font-size: 1rem; }
    .feature-grid, .req-grid {
        grid-template-columns: 1fr;
    }
}
