/* ════════════════════════════════════════════════════════
   SURAPURA Offensive Security — Shared Stylesheet
   Single source of truth for all pages.
   ════════════════════════════════════════════════════════ */

/* ═══ VARIABLES ═══ */
:root {
    --orange: #F87312;
    --orange-hover: #E56A0E;
    --orange-glow: rgba(248, 115, 18, 0.25);
    --orange-subtle: rgba(248, 115, 18, 0.08);
    --orange-muted: rgba(248, 115, 18, 0.15);
    --bg-primary: #06070B;
    --bg-elevated: #0C0D14;
    --bg-card: #10111A;
    --bg-card-hover: #141520;
    --border: rgba(255, 255, 255, 0.06);
    --border-bright: rgba(255, 255, 255, 0.1);
    --text-white: #F0F0F5;
    --text-body: #A0A0B8;
    --text-muted: #606078;
    --green: #34D399;
    --red: #F87171;
    --yellow: #FBBF24;
    --blue: #60A5FA;
    --purple: #A78BFA;
}

/* ═══ RESET & BASE ═══ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-primary);
    color: var(--text-white);
    font-family: 'Sora', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ═══ ATMOSPHERE & NOISE ═══ */
.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.atmosphere::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    height: 70vh;
    background: radial-gradient(ellipse, rgba(248, 115, 18, 0.06) 0%, transparent 65%);
}

.atmosphere::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background: radial-gradient(ellipse at 20% 100%, rgba(248, 115, 18, 0.03) 0%, transparent 50%);
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.025;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* ═══ LAYOUT ═══ */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ═══ UTILITIES ═══ */
.mono { font-family: 'DM Mono', monospace; }

/* ═══ NAV ═══ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    backdrop-filter: blur(24px) saturate(1.2);
    background: rgba(6, 7, 11, 0.82);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--orange), #FF9D5C);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--bg-primary);
}

.brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    color: var(--text-white);
}

.brand-text span {
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin-left: auto;
}

.nav-menu a {
    font-size: 0.82rem;
    color: var(--text-body);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.25s;
}

.nav-menu a:hover { color: var(--text-white); }
.nav-menu a.active { color: var(--orange); }

.nav-cta-btn {
    background: var(--orange) !important;
    color: var(--bg-primary) !important;
    padding: 0.55rem 1.4rem;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: all 0.25s !important;
}

.nav-cta-btn:hover {
    background: var(--orange-hover) !important;
    box-shadow: 0 4px 20px var(--orange-glow);
}

/* ═══ NAV DROPDOWN ═══ */
.has-dropdown {
    position: relative;
}

.nav-arrow {
    font-size: 0.6rem;
    margin-left: 2px;
    opacity: 0.5;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 1rem;
    background: rgba(12, 13, 20, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding-bottom: 0.5rem;
    padding-left: 0;
    padding-right: 0;
    min-width: 160px;
    z-index: 1000;
}

.has-dropdown:hover .nav-dropdown {
    display: block;
}

.nav-dropdown a {
    display: block;
    padding: 0.55rem 1.2rem;
    font-size: 0.8rem;
    color: var(--text-body);
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.nav-dropdown a:hover {
    color: var(--orange);
    background: var(--orange-subtle);
}

.nav-dropdown a.active {
    color: var(--orange);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
}

/* ═══ PAGE HEADER (subpages) ═══ */
.page-header {
    position: relative;
    z-index: 2;
    padding: 10rem 0 4rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.2s;
}

.page-header h1 .accent {
    background: linear-gradient(135deg, var(--orange) 0%, #FFB06B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-body);
    max-width: 560px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.35s;
}

/* ═══ SECTION COMPONENTS ═══ */
.section-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--orange);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--orange);
}

.section-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin-bottom: 1.2rem;
}

.section-body {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.75;
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    border-radius: 8px;
    font-family: 'Sora', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-fill {
    background: var(--orange);
    color: var(--bg-primary);
}

.btn-fill:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--orange-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-bright);
}

.btn-ghost:hover {
    border-color: rgba(248, 115, 18, 0.4);
    background: var(--orange-subtle);
    transform: translateY(-2px);
}

/* ═══ SCROLL REVEAL ═══ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.09s ease, transform 0.09s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══ FOOTER ═══ */
footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-copy {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s;
}

.footer-links a:hover { color: var(--orange); }

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-email a {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.25s;
    display: inline-flex;
    align-items: center;
}

.footer-email a:hover { color: var(--orange); }

.social-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes softPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ═══ RESPONSIVE ═══ */

/* Tablet — hamburger kicks in here */
@media (max-width: 1024px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(6, 7, 11, 0.95);
        backdrop-filter: blur(24px);
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.show {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-arrow {
        display: none;
    }

    .nav-dropdown {
        position: static;
        transform: none;
        margin-top: 0;
        background: none;
        backdrop-filter: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 1rem;
        display: block;
        min-width: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-header {
        padding: 8rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .container { padding-left: 1.5rem; padding-right: 1.5rem; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-left { flex-direction: column; }
}

/* Small mobile */
@media (max-width: 480px) {
    .page-header h1 { letter-spacing: -0.8px; }
}