/* ============================================
   JUPITER PLANET XXL - DARK GREEN INDUSTRIAL
   Design 5: base.css
   ============================================ */

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    color: var(--text-body);
    background-color: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Blueprint Grid Background ── */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
        radial-gradient(circle, var(--grid-dot-color) 1px, transparent 1px);
    background-size:
        var(--grid-size) var(--grid-size),
        var(--grid-size) var(--grid-size),
        calc(var(--grid-size) * 5) calc(var(--grid-size) * 5);
}

body > * {
    position: relative;
    z-index: 1;
}

/* ── Links ── */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-warning);
}

/* ── Images ── */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Lists ── */
ul, ol {
    list-style: none;
}

/* ── Buttons ── */
button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-heading);
    background: none;
}

/* ── Inputs ── */
input, textarea, select {
    font-family: var(--font-body);
    outline: none;
    border: none;
}

/* ── Industrial Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--fw-extrabold);
    letter-spacing: 0.12em;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: var(--fw-bold);
    letter-spacing: 0.1em;
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: var(--fw-semibold);
}

h4 {
    font-size: 1.15rem;
    font-weight: var(--fw-semibold);
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-body);
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-wide {
    max-width: var(--container-wide);
}

/* ── Section ── */
.section {
    padding: var(--space-4xl) 0;
}

/* ── Section Header ── */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    display: inline-block;
    position: relative;
    padding-bottom: var(--space-md);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
}

.section-header .section-subtitle {
    margin-top: var(--space-md);
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    clip-path: var(--clip-btn);
    position: relative;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #00e676;
    color: var(--text-dark);
    box-shadow: var(--shadow-glow-strong);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    padding: 12px 30px;
}

.btn-outline:hover {
    background: rgba(0, 200, 83, 0.1);
    color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.btn-warning {
    background: var(--accent-warning);
    color: var(--text-dark);
}

.btn-warning:hover {
    background: #ffc107;
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* ── Custom Scrollbar (Angular / Industrial) ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-left: 1px solid var(--border-card);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border: none;
}

::-webkit-scrollbar-thumb:hover {
    background: #00e676;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-primary);
}

/* ── Utility Classes ── */
.text-accent {
    color: var(--accent-primary);
}

.text-warning {
    color: var(--accent-warning);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.font-mono {
    font-family: var(--font-mono);
}

.fw-bold {
    font-weight: var(--fw-bold);
}

.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-3xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-3xl); }

/* ── Selection ── */
::selection {
    background: var(--accent-primary);
    color: var(--text-dark);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ── Progress Bar Decoration ── */
.progress-bar-deco {
    width: 100%;
    height: 3px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.progress-bar-deco::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 75%);
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 1.5s ease;
}

/* ── Monospace Numbers ── */
.mono-number {
    font-family: var(--font-mono);
    font-weight: var(--fw-bold);
    color: var(--accent-primary);
    letter-spacing: 0.05em;
}

/* ── Industrial Tag ── */
.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 16px;
    background: rgba(0, 200, 83, 0.08);
    border: 1px solid var(--border-card);
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    clip-path: var(--clip-tag);
    transition: all var(--transition-base);
}

.tag:hover {
    background: rgba(0, 200, 83, 0.15);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}
