/* SIGNAL.DAT Stylesheet — Nothing OS × Teenage Engineering brutalist design */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-base:      #070708;
    --bg-panel:     #0F0F12;
    --bg-alt:       #151518;
    --bg-input:     #0C0C0D;
    
    --border:       #202022;
    --border-hi:    #303033;
    
    --txt-primary:  #F0F0EE;
    --txt-muted:    #7D7D82;
    --txt-dim:      #45454B;
    
    --accent:       #FF3526;
    --accent-dim:   rgba(255, 53, 38, 0.12);
    --success:      #30D158;
    
    --font-sans:    'Space Grotesk', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
    
    --r:            4px;
    --r-sm:         2px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--txt-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 80px;
    background-image: radial-gradient(var(--border) 1px, transparent 0);
    background-size: 24px 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--txt-primary);
}

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

button {
    outline: none;
}
button:focus {
    outline: none;
}

/* ─── LAYOUT ─────────────────────────────────────── */
.app-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
}

/* ─── HEADER ─────────────────────────────────────── */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 64px;
    background: var(--bg-panel);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-led 2s infinite;
}

.logo-text h1 {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.system-status {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--txt-muted);
}

.status-active {
    color: var(--success);
    font-weight: 700;
}

/* ─── HERO SECTION ────────────────────────────────── */
.hero-section {
    background: var(--bg-panel);
    padding: 64px 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.hero-subtitle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.05;
    max-width: 800px;
    text-transform: uppercase;
}

.hero-desc {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.5;
    color: var(--txt-muted);
    max-width: 700px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--r);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.12s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: #FF5248;
    border-color: #FF5248;
}

.btn-secondary {
    background: transparent;
    color: var(--txt-primary);
    border-color: var(--border-hi);
}

.btn-secondary:hover {
    border-color: var(--txt-muted);
    background: var(--bg-alt);
}

/* ─── PIPELINE GRID ───────────────────────────────── */
.section-header {
    background: var(--bg-alt);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--txt-muted);
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--border);
    gap: 1px;
}

@media (max-width: 800px) {
    .pipeline-grid {
        grid-template-columns: 1fr;
    }
}

.pipeline-card {
    background: var(--bg-panel);
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--txt-dim);
    font-family: var(--font-mono);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.card-desc {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.6;
    color: var(--txt-muted);
}

/* ─── DATA PREVIEW CONTAINER ─────────────────────── */
.preview-section {
    background: var(--bg-panel);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (max-width: 800px) {
    .preview-section {
        padding: 24px;
    }
}

.preview-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .preview-layout {
        grid-template-columns: 1fr;
    }
}

.preview-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.track-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--txt-primary);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    width: 100%;
}

.track-btn:hover {
    border-color: var(--border-hi);
    background: var(--bg-alt);
}

.track-btn.active {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.track-btn .track-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.track-btn .track-artist {
    font-size: 10px;
    color: var(--txt-muted);
    text-transform: uppercase;
}

.terminal-view {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 420px;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-alt);
    height: 36px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
}

.terminal-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--txt-muted);
    text-transform: uppercase;
}

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

.dot-indicator {
    width: 6px;
    height: 6px;
    background: var(--txt-dim);
    border-radius: 50%;
}

.dot-indicator.red { background: var(--accent); }

.terminal-body {
    padding: 20px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #30D158; /* retro terminal green */
    line-height: 1.6;
}

.terminal-body pre {
    white-space: pre-wrap;
    word-break: break-all;
}

/* ─── DATA ANATOMY GRID ──────────────────────────── */
.anatomy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: var(--border);
    gap: 1px;
}

@media (max-width: 800px) {
    .anatomy-grid {
        grid-template-columns: 1fr;
    }
}

.anatomy-card {
    background: var(--bg-panel);
    padding: 32px;
    display: flex;
    gap: 20px;
}

.anatomy-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

.anatomy-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.anatomy-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.anatomy-desc {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--txt-muted);
    line-height: 1.6;
}

/* ─── PRICING GRID ────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--border);
    gap: 1px;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--bg-panel);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pricing-card.featured {
    border: 1px solid var(--accent);
}

.plan-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--txt-muted);
}

.pricing-card.featured .plan-name {
    color: var(--accent);
}

.plan-price {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-sans);
    line-height: 1;
}

.plan-price span {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--txt-muted);
    font-weight: 400;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--txt-muted);
}

.plan-features li i {
    width: 14px;
    height: 14px;
    color: var(--success);
}

/* ─── FOOTER ─────────────────────────────────────── */
.app-footer {
    background: var(--bg-panel);
    padding: 32px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11px;
    color: var(--txt-dim);
}

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

.footer-links a {
    color: var(--txt-dim);
}
.footer-links a:hover {
    color: var(--txt-muted);
}

/* ─── ANIMATIONS ─────────────────────────────────── */
@keyframes pulse-led {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent); }
    50% { opacity: 0.4; box-shadow: 0 0 1px var(--accent); }
}
