/* ===================================================================
   Waaseyaa Marketing Site
   Dark theme, amber accent (#F59E0B)
   =================================================================== */

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

:root {
    --color-bg: #0f1117;
    --color-surface: #1a1d27;
    --color-surface-hover: #222632;
    --color-border: #2a2e3a;
    --color-text: #e4e4e7;
    --color-text-muted: #9ca3af;
    --color-accent: #f59e0b;
    --color-accent-hover: #d97706;
    --color-accent-subtle: rgba(245, 158, 11, 0.1);
    --color-code-bg: #161822;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", Consolas, monospace;
    --max-width: 1100px;
    --radius: 8px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent-hover);
}

main {
    flex: 1;
}

/* --- Nav --- */
.site-nav {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: -0.02em;
}

.nav-brand:hover {
    color: var(--color-accent-hover);
}

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

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

.nav-discord {
    color: #5865F2 !important;
    font-weight: 600;
}

.nav-discord:hover {
    color: #4752c4 !important;
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.5;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: #0f1117;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: #0f1117;
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent-subtle);
    color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

/* --- Feature Cards Grid --- */
.features-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* --- Cards --- */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color 0.2s, background 0.2s;
}

.card:hover {
    border-color: var(--color-accent);
    background: var(--color-surface-hover);
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

.card p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- "See it in action" --- */
.see-it {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
    text-align: center;
}

.see-it h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.see-it p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Page Header --- */
.page-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.page-header p {
    color: var(--color-text-muted);
    font-size: 1.15rem;
    max-width: 700px;
}

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

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.content-section p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    max-width: 750px;
}

.content-section ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-section li strong {
    color: var(--color-text);
}

/* --- Architecture Layers --- */
.architecture {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2rem;
}

.architecture h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.layer-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.layer {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: border-color 0.2s;
}

.layer:hover {
    border-color: var(--color-accent);
}

.layer-num {
    display: inline-block;
    width: 1.75rem;
    height: 1.75rem;
    line-height: 1.75rem;
    text-align: center;
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 0.75rem;
}

/* --- Capability Sections (features page) --- */
.capability {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2rem;
}

.capability h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.capability p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    max-width: 750px;
}

.capability ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.capability li {
    padding: 0.5rem 0;
    color: var(--color-text-muted);
    line-height: 1.6;
    border-bottom: 1px solid var(--color-border);
}

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

.capability li strong {
    color: var(--color-accent);
}

/* --- Code Blocks --- */
pre {
    background: var(--color-code-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
}

p code {
    background: var(--color-code-bg);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.88em;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-inner a {
    color: var(--color-accent);
}

.footer-copy {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

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

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

    .hero {
        padding: 8rem 1.5rem 5rem;
    }
}

/* --- Responsive: Mobile nav stacking --- */
@media (max-width: 600px) {
    .nav-inner {
        flex-direction: column;
        height: auto;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}
