/* ===== RESET & VARIABLES (dari tema asli cryptara) ===== */
:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --accent-orange: #FF5E00;
    --accent-orange-light: #FF8A00;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-glow: 0 0 15px rgba(255, 94, 0, 0.5);
    --shadow-glow-strong: 0 0 25px rgba(255, 94, 0, 0.6);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Poppins', sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Prevent common mobile layout breakage */
img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

table {
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

pre,
code {
    max-width: 100%;
}

pre {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* Avoid long strings/URLs blowing up layouts */
p,
h1, h2, h3, h4,
li,
a,
span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Background gradient bergerak */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255,94,0,0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,138,0,0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
    animation: moveGradient 20s ease infinite alternate;
}

@keyframes moveGradient {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* Particle canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.3rem; }

.gradient-title {
    font-family: var(--font-display);
    background: linear-gradient(135deg, #FFFFFF, var(--accent-orange), var(--accent-orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-glow);
}

/* Loading */
.loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Utility */
@media (prefers-reduced-motion: reduce) {
    body::before, #particleCanvas {
        animation: none !important;
    }
    #particleCanvas {
        display: none !important;
    }
}

:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,94,0,0.3);
    border-radius: 8px;
}

@media (max-width: 480px) {
    body {
        line-height: 1.55;
    }
}

@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
