@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --gold:        #4A9FFF;
    --gold-light:  #93C5FD;
    --gold-dark:   #1D6BCC;
    --dark:        #0D0D0D;
    --darker:      #080808;
    --charcoal:    #1A1A1A;
    --gray:        #2A2A2A;
    --glass-bg:    rgba(13, 13, 13, 0.88);
    --glass-border:rgba(74, 159, 255, 0.18);
    --gold-shadow: 0 0 20px rgba(74,159,255,0.35), 0 0 40px rgba(74,159,255,0.15);
    --text-primary:  #EBF4FF;
    --text-secondary:#6A8FAA;
}

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

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background: var(--dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
}

/* Subtle vignette overlay replacing hex pattern */
.hex-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(8,8,8,0.6) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(74,159,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* Navigation */
nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo { display: flex; align-items: center; gap: 15px; }

.logo-icon {
    width: 55px; height: 55px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(74,159,255,0.5));
    transition: transform 0.4s;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-icon:hover { transform: scale(1.1); }

.logo-icon::before,
.logo-icon::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
    pointer-events: none;
}

.logo-icon::before {
    width: 75px; height: 75px;
    border-top-color: var(--gold);
    border-right-color: var(--gold);
    animation: orbitRotate 3s linear infinite;
    filter: drop-shadow(0 0 5px var(--gold));
}

.logo-icon::after {
    width: 85px; height: 85px;
    border-bottom-color: rgba(74, 159, 255, 0.35);
    border-left-color: rgba(74, 159, 255, 0.35);
    animation: orbitRotateReverse 4s linear infinite;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links { display: flex; gap: 35px; list-style: none; }

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(74,159,255,0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s;
    box-shadow: 0 0 8px var(--gold);
}

.nav-links a:hover::after { width: 100%; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 120px 20px 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(74,159,255,0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: pulse-glow 5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.5; }
    50%       { transform: translate(-50%, -50%) scale(1.2); opacity: 1;   }
}

.hero-logo-wrap {
    position: relative;
    width: 220px; height: 220px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatLogo 6s ease-in-out infinite;
}

.hero-logo {
    width: 180px; height: 180px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 25px rgba(74,159,255,0.45)) drop-shadow(0 0 50px rgba(29,107,204,0.2));
    position: relative;
    z-index: 2;
}

/* Orbit rings — gold */
.hero-orbit {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
    pointer-events: none;
    z-index: 1;
}

.hero-orbit-1 {
    width: 210px; height: 210px;
    border-top-color: var(--gold);
    border-right-color: var(--gold);
    animation: orbitRotate 4s linear infinite;
    filter: drop-shadow(0 0 6px rgba(74,159,255,0.6));
}

.hero-orbit-2 {
    width: 240px; height: 240px;
    border-bottom-color: rgba(74, 159, 255, 0.3);
    border-left-color:   rgba(74, 159, 255, 0.3);
    animation: orbitRotateReverse 5s linear infinite;
}

.hero-orbit-3 {
    width: 200px; height: 200px;
    border: 1px dashed rgba(74, 159, 255, 0.12);
    animation: orbitRotate 8s linear infinite;
}

.hero-orbit-4 {
    width: 260px; height: 260px;
    border: 1.5px solid rgba(74, 159, 255, 0.18);
    box-shadow: 0 0 12px rgba(74,159,255,0.08), inset 0 0 12px rgba(74,159,255,0.04);
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-15px); }
}

.hero-content { z-index: 2; animation: fadeInUp 1.5s ease-out; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 28px;
    border: 1px solid rgba(74,159,255,0.35);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(74,159,255,0.08), rgba(74,159,255,0.03));
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(74,159,255,0.12);
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 15px;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero h1 .welcome {
    display: block;
    font-size: 0.4em;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    letter-spacing: 10px;
    color: var(--gold);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(74,159,255,0.4);
    text-transform: uppercase;
}

.hero h1 .mansides {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold) 35%, var(--gold-light) 65%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(74,159,255,0.4));
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 8px;
    margin-bottom: 50px;
    font-weight: 300;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat { text-align: center; }

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 18px rgba(74,159,255,0.5);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    margin-top: 8px;
    text-transform: uppercase;
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 38px; height: 38px;
    stroke: var(--gold);
    filter: drop-shadow(0 0 8px rgba(74,159,255,0.5));
}

/* ── Tools Section ─────────────────────────────────────────────── */
.tools-section {
    padding: 100px 50px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

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

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gold);
    text-shadow: 0 0 18px rgba(74,159,255,0.25);
    letter-spacing: 1px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}

.section-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
    margin: 20px auto;
    box-shadow: 0 0 12px rgba(74,159,255,0.3);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 35px;
}

.tool-card {
    background: linear-gradient(145deg, var(--charcoal), rgba(26,26,26,0.92));
    border: 1px solid rgba(74,159,255,0.1);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.tool-card:hover::before { transform: scaleX(1); }

.tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74,159,255,0.28);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 35px rgba(74,159,255,0.1);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.8s ease-out;
}

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

.tool-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.tool-icon {
    width: 55px; height: 55px;
    background: linear-gradient(135deg, rgba(74,159,255,0.12), rgba(74,159,255,0.04));
    border: 1px solid rgba(74,159,255,0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 18px rgba(74,159,255,0.12);
    flex-shrink: 0;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.tool-icon i {
    color: var(--gold);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 6px rgba(74,159,255,0.4));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    background: linear-gradient(135deg, rgba(74,159,255,0.2), rgba(74,159,255,0.08));
    box-shadow: 0 0 25px rgba(74,159,255,0.22);
}

.tool-card:hover .tool-icon i {
    filter: drop-shadow(0 0 10px rgba(74,159,255,0.7));
    transform: scale(1.1);
}

.tool-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--gold);
    letter-spacing: 0.5px;
    font-weight: 700;
}

.tool-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 25px;
    line-height: 1.75;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.lang-btn {
    flex: 1;
    padding: 10px;
    background: rgba(74,159,255,0.04);
    border: 1px solid rgba(74,159,255,0.2);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s;
    font-size: 0.82rem;
    text-transform: uppercase;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.lang-btn:hover {
    background: rgba(29,107,204,0.15);
    border-color: var(--gold-dark);
    color: var(--gold-light);
    box-shadow: 0 0 14px rgba(74,159,255,0.15);
}

.lang-btn.active {
    background: rgba(74,159,255,0.18) !important;
    border-color: var(--gold) !important;
    color: var(--gold-light) !important;
    box-shadow: 0 0 18px rgba(74,159,255,0.2) !important;
}

/* Level Selector */
.level-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.level-btn {
    flex: 1;
    padding: 10px;
    background: rgba(74,159,255,0.04);
    border: 1px solid rgba(74,159,255,0.2);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s;
    font-size: 0.82rem;
    text-transform: uppercase;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.level-btn:hover {
    background: rgba(74,159,255,0.12);
    color: var(--gold);
    border-color: var(--gold);
}

.level-btn.active {
    background: rgba(74,159,255,0.18);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 18px rgba(74,159,255,0.18);
}

.tool-input-area { position: relative; z-index: 1; }

.tool-textarea {
    width: 100%;
    min-height: 130px;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(74,159,255,0.15);
    border-radius: 12px;
    padding: 18px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    resize: vertical;
    transition: all 0.3s;
    margin-bottom: 18px;
    line-height: 1.6;
}

.tool-textarea:focus {
    outline: none;
    border-color: rgba(74,159,255,0.4);
    box-shadow: 0 0 22px rgba(74,159,255,0.1);
}

.tool-textarea::placeholder { color: rgba(80,140,190,0.4); }

.btn-process {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, rgba(74,159,255,0.1), rgba(74,159,255,0.04));
    border: 1px solid rgba(74,159,255,0.4);
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 0.88rem;
}

.btn-process::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74,159,255,0.25), transparent);
    transition: left 0.5s;
}

.btn-process:hover::before { left: 100%; }

.btn-process:hover {
    background: linear-gradient(135deg, rgba(74,159,255,0.25), rgba(29,107,204,0.2));
    box-shadow: 0 0 30px rgba(74,159,255,0.3);
    transform: scale(1.02);
    color: var(--gold-light);
}

.btn-process.processing { pointer-events: none; opacity: 0.65; }

.result-area {
    margin-top: 25px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(74,159,255,0.2);
    border-radius: 12px;
    min-height: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    display: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.result-area.show { display: block; animation: fadeIn 0.5s; }

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(74,159,255,0.15);
    flex-wrap: wrap;
    gap: 10px;
}

.result-title {
    color: var(--gold);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-title i {
    color: var(--gold);
    font-size: 0.95rem;
    filter: drop-shadow(0 0 5px rgba(74,159,255,0.45));
}

.result-actions { display: flex; gap: 10px; }

.btn-copy, .btn-download {
    padding: 6px 16px;
    background: rgba(74,159,255,0.06);
    border: 1px solid rgba(74,159,255,0.25);
    color: var(--gold);
    cursor: pointer;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-copy:hover, .btn-download:hover {
    background: rgba(74,159,255,0.18);
    box-shadow: 0 0 12px rgba(74,159,255,0.18);
    color: var(--gold-light);
}

.result-content {
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.7;
    max-height: 350px;
    overflow-y: auto;
    color: #a8c8f0;
}

.result-content::-webkit-scrollbar { width: 6px; }
.result-content::-webkit-scrollbar-track { background: rgba(74,159,255,0.04); border-radius: 3px; }
.result-content::-webkit-scrollbar-thumb { background: rgba(74,159,255,0.25); border-radius: 3px; }

/* AI Status Bar */
.ai-status-bar {
    position: fixed;
    bottom: 100px; right: 30px;
    background: linear-gradient(145deg, var(--charcoal), rgba(26,26,26,0.95));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 22px;
    backdrop-filter: blur(14px);
    z-index: 999;
    max-width: 320px;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: none;
}

.ai-status-bar.active {
    display: block;
    border-color: rgba(74,159,255,0.4);
    box-shadow: 0 0 30px rgba(74,159,255,0.15), 0 10px 40px rgba(0,0,0,0.5);
}

.ai-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.ai-dot {
    width: 10px; height: 10px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
    animation: pulse 2s infinite;
}

.ai-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--gold);
    letter-spacing: 1px;
}

.ai-info {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Progress bar */
.ai-progress-wrap {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 3px;
    z-index: 9998;
}

.ai-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    width: 0%;
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--gold);
}

/* Toast */
.toast {
    position: fixed;
    top: 100px; right: 30px;
    background: linear-gradient(135deg, rgba(74,159,255,0.1), rgba(74,159,255,0.04));
    border: 1px solid rgba(74,159,255,0.35);
    color: var(--gold);
    padding: 18px 28px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--gold-shadow);
    transform: translateX(450px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    backdrop-filter: blur(12px);
}

.toast.show { transform: translateX(0); }

/* Footer */
footer {
    text-align: center;
    padding: 60px 30px;
    border-top: 1px solid rgba(74,159,255,0.08);
    background: var(--darker);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark), transparent);
}

.footer-logo-wrap {
    position: relative;
    width: 100px; height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatLogo 6s ease-in-out infinite;
}

.footer-logo {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 14px rgba(74,159,255,0.4)) drop-shadow(0 0 28px rgba(29,107,204,0.2));
    position: relative;
    z-index: 2;
}

.footer-orbit {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px solid transparent;
    pointer-events: none;
}

.footer-orbit-1 {
    width: 95px; height: 95px;
    border-top-color: var(--gold);
    animation: orbitRotate 3.5s linear infinite;
}

.footer-orbit-2 {
    width: 105px; height: 105px;
    border-bottom-color: rgba(74, 159, 255, 0.3);
    animation: orbitRotateReverse 4.5s linear infinite;
}

.footer-orbit-3 {
    width: 118px; height: 118px;
    border: 1px solid rgba(74, 159, 255, 0.18);
    box-shadow: 0 0 8px rgba(74,159,255,0.08), inset 0 0 8px rgba(74,159,255,0.04);
}

.footer-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.footer-desc { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 8px; }

.footer-meta {
    color: rgba(80,140,190,0.4);
    font-size: 0.8rem;
    margin-top: 15px;
    letter-spacing: 1px;
}

/* ── Saweria Support Button ──────────────────────────────────────── */
.saweria-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255, 120, 0, 0.12), rgba(255, 180, 0, 0.08));
    border: 1px solid rgba(255, 140, 0, 0.45);
    border-radius: 50px;
    text-decoration: none;
    color: #ffaa00;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(255,140,0,0.18), inset 0 0 12px rgba(255,140,0,0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease,
                background 0.3s ease, box-shadow 0.3s ease,
                border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.saweria-btn--visible {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.saweria-btn:hover {
    background: linear-gradient(135deg, rgba(255,120,0,0.28), rgba(255,180,0,0.18));
    box-shadow: 0 0 28px rgba(255,140,0,0.38), inset 0 0 18px rgba(255,140,0,0.08);
    border-color: rgba(255,160,0,0.8);
    color: #ffc800;
    transform: translateY(-3px);
}

.saweria-btn:active { transform: translateY(-1px); }
.saweria-icon { font-size: 1.05rem; line-height: 1; }
.saweria-label { letter-spacing: 2px; }

/* Animations */
@keyframes orbitRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitRotateReverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to   { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40%  { transform: translateX(-50%) translateY(-12px); }
    60%  { transform: translateX(-50%) translateY(-6px); }
}

@keyframes scan {
    0%   { top: -100%; }
    100% { top: 100%; }
}

.scan-line {
    position: absolute;
    left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
    box-shadow: 0 0 12px var(--gold);
    animation: scan 2.5s linear infinite;
    display: none;
}

.result-area.processing .scan-line { display: block; }

.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid rgba(74,159,255,0.25);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    .tools-grid    { grid-template-columns: 1fr; }
    .hero-stats    { flex-direction: column; gap: 25px; }
    nav            { padding: 12px 20px; }
    .nav-links     { display: none; }
    .tools-section { padding: 60px 16px; width: 100%; }
    .ai-status-bar { bottom: 10px; right: 10px; left: 10px; max-width: none; }
    .hero          { padding-top: 100px; padding-left: 16px; padding-right: 16px; }
    .hero-logo     { width: 140px; height: 140px; }
    .saweria-btn   { bottom: 18px; left: 18px; padding: 10px 14px; font-size: 0.65rem; }

    /* Kurangi letter-spacing yang menyebabkan overflow horizontal */
    .hero-subtitle  { letter-spacing: 3px; font-size: 0.9rem; }
    .hero h1 .welcome { letter-spacing: 5px; }
    .hero-badge     { letter-spacing: 1.5px; padding: 8px 16px; font-size: 0.7rem; }

    /* Tool card lebih compact di mobile */
    .tool-card      { padding: 22px; }
    .lang-selector,
    .level-selector { gap: 8px; }
    .lang-btn,
    .level-btn      { letter-spacing: 1px; font-size: 0.78rem; padding: 9px 6px; }

    /* Hero orbit lebih kecil */
    .hero-logo-wrap { width: 180px; height: 180px; }
    .hero-orbit-1   { width: 170px; height: 170px; }
    .hero-orbit-2   { width: 190px; height: 190px; }
    .hero-orbit-3   { width: 160px; height: 160px; }
    .hero-orbit-4   { width: 205px; height: 205px; }
}
}

/* ─── Theme Switcher ──────────────────────────────────────────────── */
.theme-switcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.theme-toggle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74,159,255,0.12), rgba(74,159,255,0.05));
    border: 1px solid rgba(74,159,255,0.4);
    color: var(--gold);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 16px rgba(74,159,255,0.2);
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(30deg);
    box-shadow: 0 0 26px rgba(74,159,255,0.4);
}

.theme-palette {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    background: rgba(13,13,13,0.92);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 40px;
    padding: 10px 8px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    /* hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-palette.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.theme-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.12);
    transition: all 0.25s ease;
    position: relative;
}

.theme-dot:hover {
    transform: scale(1.25);
    border-color: rgba(255,255,255,0.5);
}

.theme-dot.active {
    border-color: white;
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.theme-dot[data-theme="blue"]  { background: #4A9FFF; box-shadow: 0 0 8px rgba(74,159,255,0.5); }
.theme-dot[data-theme="gold"]  { background: #D4AF37; box-shadow: 0 0 8px rgba(212,175,55,0.5); }
.theme-dot[data-theme="red"]   { background: #FF4A4A; box-shadow: 0 0 8px rgba(255,74,74,0.5); }
.theme-dot[data-theme="green"] { background: #4AFF8A; box-shadow: 0 0 8px rgba(74,255,138,0.5); }
.theme-dot[data-theme="mono"]  { background: linear-gradient(135deg, #999, #444); }

/* Tooltip label */
.theme-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13,13,13,0.9);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

.theme-dot:hover::after { opacity: 1; }

@media (max-width: 768px) {
    .theme-switcher { bottom: 18px; right: 18px; }
    .theme-toggle-btn { width: 42px; height: 42px; font-size: 1rem; }
}

/* ─── Theme Overrides ─────────────────────────────────────────────── */
[data-theme="gold"] {
    --gold:          #D4AF37;
    --gold-light:    #F0D878;
    --gold-dark:     #B8860B;
    --text-primary:  #F5F0E8;
    --text-secondary:#9A8A6A;
}

[data-theme="red"] {
    --gold:          #FF4A4A;
    --gold-light:    #FF8A8A;
    --gold-dark:     #CC1D1D;
    --text-primary:  #FFF0F0;
    --text-secondary:#AA7070;
}

[data-theme="green"] {
    --gold:          #4AFF8A;
    --gold-light:    #93FDC5;
    --gold-dark:     #1DCC6B;
    --text-primary:  #F0FFF4;
    --text-secondary:#6AAA88;
}

[data-theme="mono"] {
    --gold:          #AAAAAA;
    --gold-light:    #CCCCCC;
    --gold-dark:     #666666;
    --text-primary:  #F0F0F0;
    --text-secondary:#808080;
}

[data-theme="blue"] {
    --gold:          #4A9FFF;
    --gold-light:    #93C5FD;
    --gold-dark:     #1D6BCC;
    --text-primary:  #EBF4FF;
    --text-secondary:#6A8FAA;
}
