/* ============================================================
   RED DWARF MARKETING — Shared Styles
   Typography: Outfit (display), Inter (body), JetBrains Mono (code)
   Palette: Black → gray-950, Amber/Orange accent gradient
   ============================================================ */

:root {
    --mkt-font-display: 'Outfit', system-ui, sans-serif;
    --mkt-font-body: 'Inter', system-ui, sans-serif;
    --mkt-font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --mkt-black: #010102;
    --mkt-gray-950: #0a0a0b;
    --mkt-gray-900: #111113;
    --mkt-gray-800: #1a1a1e;
    --mkt-gray-700: #28282e;
    --mkt-gray-600: #3f3f46;
    --mkt-gray-500: #71717a;
    --mkt-gray-400: #a1a1aa;
    --mkt-gray-300: #d4d4d8;
    --mkt-gray-200: #e4e4e7;
    --mkt-gray-100: #f4f4f5;
    --mkt-white: #fafafa;

    --mkt-amber-50: #fffbeb;
    --mkt-amber-100: #fef3c7;
    --mkt-amber-200: #fde68a;
    --mkt-amber-300: #fcd34d;
    --mkt-amber-400: #fbbf24;
    --mkt-amber-500: #f59e0b;
    --mkt-amber-600: #d97706;
    --mkt-orange-500: #f97316;
    --mkt-orange-600: #ea580c;
    --mkt-red-500: #ef4444;

    --mkt-gradient: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #ea580c 100%);
    --mkt-gradient-subtle: linear-gradient(135deg, rgba(251,191,36,0.15) 0%, rgba(249,115,22,0.08) 100%);

    --mkt-container: 1200px;
    --mkt-container-wide: 1400px;
    --mkt-radius: 16px;
    --mkt-radius-sm: 10px;
    --mkt-radius-xs: 6px;
}

/* Reset within marketing pages — override Tailwind preflight + app.css */
.marketing-shell {
    background: var(--mkt-black);
    color: var(--mkt-gray-300);
    font-family: var(--mkt-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

.marketing-shell *, .marketing-shell *::before, .marketing-shell *::after {
    box-sizing: border-box;
}

/* Tailwind preflight sets svg { display: block } — fix inline icons */
.marketing-shell svg {
    display: inline-block;
    vertical-align: middle;
}

/* app.css sets a { color: var(--color-primary) } — reset for marketing */
.marketing-shell a {
    color: inherit;
    text-decoration: none;
}

/* app.css sets global h1-h6 font sizes — reset for marketing */
.marketing-shell h1,
.marketing-shell h2,
.marketing-shell h3,
.marketing-shell h4,
.marketing-shell h5,
.marketing-shell h6 {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
}

/* app.css sets p { color: var(--color-text-secondary) } */
.marketing-shell p {
    color: inherit;
    margin: 0;
}

/* Tailwind preflight sets border-width:0 on * — restore for tables */
.marketing-shell table {
    border-collapse: collapse;
}

/* Tailwind preflight resets list styles */
.marketing-shell ul, .marketing-shell ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Tailwind preflight sets button backgrounds/borders */
.marketing-shell button {
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

/* ── Container ─────────────────────────────────── */
.mkt-container {
    max-width: var(--mkt-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .mkt-container { padding: 0 2rem; }
}

.mkt-container-wide {
    max-width: var(--mkt-container-wide);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navigation ────────────────────────────────── */
.mkt-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mkt-nav.scrolled {
    background: rgba(1, 1, 2, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(251, 191, 36, 0.08);
    padding: 0.65rem 0;
}

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

@media (min-width: 1024px) {
    .mkt-nav-inner { padding: 0 2rem; }
}

.mkt-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #fff;
    font-family: var(--mkt-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.mkt-nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .mkt-nav-links { display: flex; }
}

.mkt-nav-link {
    color: var(--mkt-gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.mkt-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

.mkt-nav-link.active {
    color: #fff;
}

.mkt-nav-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .mkt-nav-actions { display: flex; }
}

.mkt-btn-sm {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mkt-gray-950);
    background: var(--mkt-gradient);
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
}

.mkt-btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.mkt-hamburger {
    display: flex;
    background: none;
    border: none;
    color: var(--mkt-gray-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.mkt-hamburger:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

@media (min-width: 768px) {
    .mkt-hamburger { display: none; }
}

/* Mobile Menu */
.mkt-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(1,1,2,0.97);
    backdrop-filter: blur(20px);
    display: none;
    padding-top: 5rem;
}

.mkt-mobile-menu.open {
    display: block;
}

.mkt-mobile-inner {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mkt-mobile-inner a {
    color: var(--mkt-gray-300);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    transition: background 0.2s;
}

.mkt-mobile-inner a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.mkt-mobile-inner hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 0.5rem 0;
}

/* ── Buttons ───────────────────────────────────── */
.mkt-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    font-family: var(--mkt-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mkt-gray-950);
    background: var(--mkt-gradient);
    border: none;
    border-radius: var(--mkt-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.25s;
    box-shadow: 0 2px 12px rgba(249, 115, 22, 0.25);
}

.mkt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.35);
}

.mkt-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    font-family: var(--mkt-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mkt-gray-200);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--mkt-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.mkt-btn-secondary:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.04);
    color: #fff;
}

.mkt-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-family: var(--mkt-font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mkt-gray-400);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--mkt-radius-xs);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.mkt-btn-outline:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

/* ── Typography ────────────────────────────────── */
.mkt-heading {
    font-family: var(--mkt-font-display);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
}

.mkt-heading-xl {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
}

.mkt-heading-lg {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.mkt-heading-md {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.mkt-subheading {
    display: inline-block;
    font-family: var(--mkt-font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mkt-amber-400);
}

.mkt-lead {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 400;
    color: var(--mkt-gray-400);
    line-height: 1.65;
    text-wrap: pretty;
}

.mkt-text-sm {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--mkt-gray-400);
}

/* ── Section Spacing ───────────────────────────── */
.mkt-section {
    padding: 5rem 0;
    position: relative;
}

@media (min-width: 768px) {
    .mkt-section { padding: 6.5rem 0; }
}

@media (min-width: 1024px) {
    .mkt-section { padding: 8rem 0; }
}

.mkt-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.mkt-section-header .mkt-subheading {
    margin-bottom: 0.75rem;
}

.mkt-section-header .mkt-heading {
    margin: 0 0 1rem;
}

.mkt-section-header .mkt-lead {
    max-width: 640px;
    margin: 0 auto;
}

/* ── Gradient Background Blob ──────────────────── */
.mkt-gradient-bg {
    position: absolute;
    top: 0;
    right: -20%;
    width: 60%;
    height: 50%;
    background: radial-gradient(ellipse at center, rgba(249,115,22,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Divider ───────────────────────────────────── */
.mkt-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 0;
}

/* ── Cards ─────────────────────────────────────── */
.mkt-card {
    background: var(--mkt-gray-900);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--mkt-radius);
    padding: 2rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.mkt-card:hover {
    border-color: rgba(251,191,36,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.mkt-card-highlight {
    border-color: rgba(249,115,22,0.25);
    box-shadow: 0 0 0 1px rgba(249,115,22,0.1), 0 8px 32px rgba(249,115,22,0.08);
}

/* ── Bento Grid ────────────────────────────────── */
.mkt-bento {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .mkt-bento { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .mkt-bento { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.mkt-bento-wide {
    grid-column: span 1;
}

@media (min-width: 640px) {
    .mkt-bento-wide { grid-column: span 2; }
}

/* ── Tags / Pills ──────────────────────────────── */
.mkt-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--mkt-font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    color: var(--mkt-amber-400);
    background: rgba(251,191,36,0.08);
    border: 1px solid rgba(251,191,36,0.15);
}

/* ── Footer ────────────────────────────────────── */
.mkt-footer {
    position: relative;
    z-index: 1;
}

.mkt-footer-cta {
    background: linear-gradient(180deg, var(--mkt-black) 0%, var(--mkt-gray-950) 100%);
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 5rem 0;
    text-align: center;
}

.mkt-footer-cta-sub {
    font-family: var(--mkt-font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mkt-amber-400);
    margin: 0 0 0.75rem;
}

.mkt-footer-cta-title {
    font-family: var(--mkt-font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

.mkt-footer-cta-desc {
    font-size: 1rem;
    color: var(--mkt-gray-500);
    margin: 0 0 2rem;
}

.mkt-footer-body {
    background: var(--mkt-gray-950);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 3.5rem 0 2rem;
}

.mkt-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .mkt-footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.mkt-footer-col h4 {
    font-family: var(--mkt-font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mkt-gray-200);
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

.mkt-footer-col a {
    display: block;
    font-size: 0.8125rem;
    color: var(--mkt-gray-500);
    text-decoration: none;
    padding: 0.3rem 0;
    transition: color 0.15s;
}

.mkt-footer-col a:hover {
    color: var(--mkt-gray-200);
}

.mkt-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

@media (min-width: 640px) {
    .mkt-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.mkt-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8125rem;
    color: var(--mkt-gray-500);
}

.mkt-footer-social {
    display: flex;
    gap: 0.75rem;
}

.mkt-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--mkt-gray-600);
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}

.mkt-footer-social a:hover {
    color: var(--mkt-gray-200);
    background: rgba(255,255,255,0.04);
}

/* ── Scroll Animations ─────────────────────────── */
.mkt-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.mkt-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.mkt-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mkt-stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.mkt-stagger.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.mkt-stagger.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.mkt-stagger.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.mkt-stagger.visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.mkt-stagger.visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.mkt-stagger.visible > *:nth-child(7) { transition-delay: 480ms; opacity: 1; transform: translateY(0); }
.mkt-stagger.visible > *:nth-child(8) { transition-delay: 560ms; opacity: 1; transform: translateY(0); }
.mkt-stagger.visible > *:nth-child(9) { transition-delay: 640ms; opacity: 1; transform: translateY(0); }

/* ── Plus Grid Decorators (Radiant-inspired) ───── */
.mkt-plus-grid {
    position: relative;
}

.mkt-plus-grid::before,
.mkt-plus-grid::after {
    content: '+';
    position: absolute;
    font-family: var(--mkt-font-mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.1);
    line-height: 1;
}

.mkt-plus-grid::before {
    top: -0.375rem;
    left: -0.375rem;
}

.mkt-plus-grid::after {
    bottom: -0.375rem;
    right: -0.375rem;
}

/* ── Utility ───────────────────────────────────── */
.mkt-gradient-text {
    background: var(--mkt-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mkt-ring {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

.mkt-glow {
    box-shadow: 0 0 60px rgba(249,115,22,0.08);
}
