/* ==========================================================================
   RaketMate Public — Shared Styles (Navbar, Footer, Dark Theme, Utilities)
   ========================================================================== */

:root {
    --rm-bg: #06060f;
    --rm-bg-surface: #0c0c18;
    --rm-bg-elevated: #121222;
    --rm-border: rgba(255, 255, 255, 0.06);
    --rm-border-hover: rgba(255, 255, 255, 0.12);
    --rm-text: #9ca3b8;
    --rm-text-dim: #636a7e;
    --rm-heading: #eef0f6;
    --rm-white: #ffffff;
    --rm-primary: #7c3aed;
    --rm-primary-hover: #6d28d9;
    --rm-primary-light: #a78bfa;
    --rm-accent: #e879a8;
    --rm-gradient: linear-gradient(135deg, #7c3aed, #a855f7, #e879a8);
    --rm-gradient-h: linear-gradient(90deg, #7c3aed, #a855f7, #e879a8);
    --rm-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --rm-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --rm-radius: 12px;
    --rm-radius-lg: 20px;
    --rm-radius-pill: 100px;
    --rm-nav-height: 72px;
    --rm-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --rm-duration: 0.3s;
    --rm-font-heading: 'Sora', sans-serif;
    --rm-font-body: 'DM Sans', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--rm-nav-height); }

body {
    font-family: var(--rm-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--rm-text);
    background: var(--rm-bg);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rm-font-heading);
    color: var(--rm-heading);
    font-weight: 700;
    line-height: 1.3;
}

a { color: inherit; text-decoration: none; transition: color var(--rm-duration) var(--rm-ease); }
img { max-width: 100%; height: auto; }

/* ---------- Utilities ---------- */
.rm-gradient-text {
    background: var(--rm-gradient-h);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rm-glass {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.rm-section { padding: 96px 0; position: relative; }

.rm-section-header { text-align: center; margin-bottom: 56px; }

.rm-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.rm-section-subtitle {
    font-size: 1.05rem;
    color: var(--rm-text);
    max-width: 540px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.rm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--rm-radius-pill);
    font-family: var(--rm-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--rm-duration) var(--rm-ease);
    white-space: nowrap;
    text-decoration: none;
}

.rm-btn-primary {
    background: var(--rm-gradient);
    color: var(--rm-white);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}
.rm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
    color: var(--rm-white);
}

.rm-btn-ghost {
    background: transparent;
    border: 1px solid var(--rm-border);
    color: var(--rm-text);
}
.rm-btn-ghost:hover {
    border-color: var(--rm-primary);
    color: var(--rm-heading);
    background: rgba(124, 58, 237, 0.08);
}

.rm-btn-white {
    background: var(--rm-white);
    color: var(--rm-primary-hover);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.rm-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    color: var(--rm-primary-hover);
}

.rm-btn-lg { padding: 14px 36px; font-size: 1rem; }

/* ---------- Navbar ---------- */
.rm-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    height: var(--rm-nav-height);
    display: flex;
    align-items: center;
    transition: background var(--rm-duration) var(--rm-ease),
                border-color var(--rm-duration) var(--rm-ease);
    border-bottom: 1px solid transparent;
}

.rm-nav.scrolled {
    background: rgba(6, 6, 15, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--rm-border);
}

.rm-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--rm-font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rm-heading) !important;
}
.rm-nav-brand img { height: 34px; width: auto; }

.rm-nav-link {
    font-family: var(--rm-font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--rm-heading) !important;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all var(--rm-duration) var(--rm-ease);
    text-decoration: none;
}
.rm-nav-link:hover {
    color: var(--rm-white) !important;
    background: rgba(255, 255, 255, 0.08);
}

.rm-nav-toggle {
    background: none;
    border: none;
    color: var(--rm-heading);
    font-size: 1.5rem;
    padding: 4px;
    cursor: pointer;
    line-height: 1;
}
.rm-nav-toggle:focus { box-shadow: none; outline: none; }

/* Offcanvas mobile menu */
.rm-offcanvas {
    background: var(--rm-bg-surface) !important;
    border-left: 1px solid var(--rm-border) !important;
    max-width: 300px;
}
.rm-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--rm-border);
    padding: 20px 24px;
}
.rm-offcanvas .offcanvas-title {
    font-family: var(--rm-font-heading);
    font-weight: 700;
    color: var(--rm-heading);
    display: flex;
    align-items: center;
}
.rm-offcanvas .btn-close { filter: invert(1); opacity: 0.5; }

.rm-mobile-link {
    display: block;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--rm-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all var(--rm-duration) var(--rm-ease);
    text-decoration: none;
}
.rm-mobile-link:hover {
    color: var(--rm-heading);
    background: rgba(255, 255, 255, 0.03);
}

/* ---------- Footer ---------- */
.rm-footer {
    background: var(--rm-bg-surface);
    border-top: 1px solid var(--rm-border);
    padding: 64px 0 32px;
}

.rm-footer-brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--rm-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rm-heading);
}
.rm-footer-brand img { height: 32px; width: auto; }
.rm-footer-brand p {
    color: var(--rm-text-dim);
    font-size: 0.9rem;
    margin-top: 14px;
    max-width: 300px;
    line-height: 1.7;
}

.rm-footer h6 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--rm-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.rm-footer-links { list-style: none; padding: 0; margin: 0; }
.rm-footer-links li { margin-bottom: 8px; }
.rm-footer-links a {
    font-size: 0.9rem;
    color: var(--rm-text);
    transition: color var(--rm-duration) var(--rm-ease);
}
.rm-footer-links a:hover { color: var(--rm-heading); }

.rm-footer-bottom {
    border-top: 1px solid var(--rm-border);
    padding-top: 24px;
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--rm-text-dim);
}

.rm-footer-socials { display: flex; gap: 10px; }
.rm-footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: var(--rm-text);
    font-size: 1.1rem;
    transition: all var(--rm-duration) var(--rm-ease);
}
.rm-footer-socials a:hover {
    background: var(--rm-primary);
    color: var(--rm-white);
    transform: translateY(-2px);
}

/* ---------- Scroll Reveal ---------- */
.rm-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--rm-ease), transform 0.6s var(--rm-ease);
}
.rm-reveal.revealed { opacity: 1; transform: translateY(0); }

/* ---------- Blog: hide old standalone nav/footer (layout provides these) ---------- */
.blog-footer { display: none !important; }
.blog-navbar { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .rm-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .rm-section { padding: 72px 0; }
    .rm-section-title { font-size: 1.75rem; }
}
