/* Alita — public landing page. Requires app.css (tokens, fonts, buttons). */

html { scroll-behavior: smooth; }
body { line-height: 1.55; }
a:hover { text-decoration: none; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.nav-logo { display: flex; align-items: center; line-height: 0; }
.nav-logo img { height: 34px; width: auto; }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-actions .btn { min-height: 38px; padding: 0.45rem 0.9rem; font-size: 0.875rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: 1.5px solid var(--border); border-radius: var(--radius-sm); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--slate); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero: drafting-paper grid, title block ─────────────────── */
.hero {
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
    background-image:
        linear-gradient(var(--border-2) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-2) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: -1px -1px;
    border-bottom: 1px solid var(--border);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.7rem;
    border: 1.5px solid var(--slate); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem; background: var(--paper);
}
.hero-badge::before { content: ''; width: 8px; height: 8px; background: var(--accent); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--brass); }
.hero-sub { font-size: 1.125rem; color: var(--muted); line-height: 1.6; max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-note { margin-top: 1.25rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: flex; gap: 1.25rem; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-note span::before { content: ''; width: 6px; height: 6px; background: var(--slate); }

/* Mock dashboard card */
.hero-visual { position: relative; }
.mock-card { background: var(--surface); border: 1.5px solid var(--slate); padding: 1.25rem; box-shadow: var(--shadow); }
.mock-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }
.mock-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; }
.mock-badge-new { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.5rem; background: var(--slate); color: var(--paper); }
.mock-project { padding: 0.75rem 0.85rem; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 0.5rem; }
.mock-project-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; gap: 0.5rem; }
.mock-dot { width: 7px; height: 7px; display: inline-block; margin-right: 0.45rem; flex-shrink: 0; background: var(--slate); }
.mock-dot.amber { background: var(--accent); }
.mock-dot.green { background: var(--success); }
.mock-project-name { font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; }
.mock-status { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mock-status.green { color: var(--success); }
.mock-bar-track { height: 4px; background: var(--border); overflow: hidden; }
.mock-bar-fill { height: 100%; background: var(--slate); }
.mock-bar-fill.green { background: var(--success); }
.mock-bar-fill.yellow { background: var(--warning); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.9rem; }
.mock-stat { border: 1px solid var(--border); padding: 0.6rem; text-align: center; }
.mock-stat-val { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 500; }
.mock-stat-lbl { font-size: 0.7rem; color: var(--muted); margin-top: 0.1rem; }
.w-40 { width: 40%; } .w-75 { width: 75%; } .w-100 { width: 100%; }

/* ── Stats bar ──────────────────────────────────────────────── */
.stats-bar { padding: 2rem 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.stats-inner { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-value { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 500; color: var(--slate); }
.stat-value span { color: var(--brass); }
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-header { max-width: 60ch; margin-bottom: 2.5rem; }
.section-tag {
    display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem;
}
.section-tag::before { content: ''; width: 24px; height: 1.5px; background: var(--slate); }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.section-header p { color: var(--muted); font-size: 1.05rem; }

/* ── Features ───────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--slate); border-left: 1px solid var(--border); }
.feature-card { padding: 1.5rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.feature-icon { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.9rem; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.925rem; color: var(--muted); line-height: 1.6; }

/* ── Why (dark band) ────────────────────────────────────────── */
.why { background: var(--slate); color: var(--paper); }
.why .section-header h2 { color: var(--paper); }
.why .section-header p, .why .section-tag, .why .why-item p { color: var(--fog); }
.why .section-tag::before { background: var(--accent); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid var(--slate-2); padding-top: 2rem; }
.why-num { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--fog); margin-bottom: 0.75rem; }
.why-item h3 { font-size: 1.1rem; color: var(--paper); margin-bottom: 0.5rem; }
.why-item p { font-size: 0.95rem; line-height: 1.6; }

/* ── CTA ────────────────────────────────────────────────────── */
.cta-banner { padding: clamp(3rem, 6vw, 5rem) 0; text-align: center; border-bottom: 1px solid var(--border); }
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.cta-banner p { color: var(--muted); margin-bottom: 1.75rem; font-size: 1.05rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { padding: 2rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { display: flex; align-items: center; line-height: 0; }
.footer-logo img { height: 28px; width: auto; }
.footer-copy { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); }

/* ── Fade-in ────────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    .nav-actions {
        display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        padding: 1rem 1.5rem 1.25rem; background: var(--paper); border-bottom: 1px solid var(--border);
    }
    .nav-actions.open { display: flex; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .stats-inner { gap: 1.5rem 2rem; }
}
