/* Palette: Cyber Black, Neon Violet, Neon Pink */
:root {
    --bg: #050505;
    --card-bg: #0f0f13;
    --violet: #8A2BE2;
    --pink: #FF00FF;
    --text: #E0E0E0;
    --grid-line: rgba(138, 43, 226, 0.1);
    
    --font-mono: 'Share Tech Mono', monospace;
    --font-sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Cyber Grid Background */
.cyber-grid-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    perspective: 500px;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Header */
.header { padding: 20px 0; background: rgba(5, 5, 5, 0.95); border-bottom: 1px solid var(--violet); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(5px); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-mono); font-size: 1.5rem; color: var(--text); letter-spacing: 2px; }
.flash { color: var(--pink); animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.nav a { margin-left: 20px; font-family: var(--font-mono); font-size: 0.9rem; color: #888; }
.nav a:hover, .nav a.active { color: var(--violet); text-shadow: 0 0 5px var(--violet); }

.mobile-toggle { display: none; background: transparent; border: 1px solid var(--violet); color: var(--violet); padding: 5px 10px; cursor: pointer; font-family: var(--font-mono); }

/* Ticker */
.ticker-tape { font-family: var(--font-mono); font-size: 0.8rem; border: 1px solid #333; padding: 5px 10px; background: #000; display: flex; gap: 15px; }
.up { color: #00FF00; } .down { color: #FF0000; }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background: var(--bg); z-index: 2000; padding: 50px; transition: 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 2px solid var(--pink); }
.mobile-menu.active { right: 0; }
.close-btn { background: none; border: 1px solid var(--text); color: var(--text); font-family: var(--font-mono); padding: 10px 20px; margin-bottom: 30px; cursor: pointer; }
.mobile-menu a { display: block; font-family: var(--font-mono); font-size: 2rem; margin-bottom: 20px; color: var(--text); }
.mobile-menu a:hover { color: var(--pink); }

@media (max-width: 900px) {
    .nav, .ticker-tape { display: none; }
    .mobile-toggle { display: block; }
}

/* Hero */
.hero { padding: 100px 0; min-height: 80vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 2; max-width: 700px; }

.glitch-wrapper { margin-bottom: 20px; }
.glitch { font-family: var(--font-mono); font-size: 4rem; line-height: 1; color: var(--text); position: relative; }
.subtitle { font-size: 1.2rem; margin-bottom: 40px; color: #ccc; border-left: 3px solid var(--violet); padding-left: 20px; }

.hero-actions { display: flex; gap: 20px; }
.btn-cyber { background: linear-gradient(45deg, var(--violet), var(--pink)); color: var(--white); padding: 15px 35px; font-family: var(--font-mono); font-weight: 700; border: none; cursor: pointer; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: 0.3s; }
.btn-cyber:hover { box-shadow: 0 0 20px var(--violet); }
.btn-hollow { background: transparent; border: 1px solid var(--violet); color: var(--violet); padding: 15px 35px; font-family: var(--font-mono); transition: 0.3s; }
.btn-hollow:hover { background: rgba(138, 43, 226, 0.1); box-shadow: 0 0 10px var(--violet); }

.hero-visual { position: absolute; right: -100px; top: 50%; transform: translateY(-50%); width: 500px; height: 500px; z-index: 1; opacity: 0.5; }
.cube-spinner { width: 100%; height: 100%; border: 1px dashed var(--pink); border-radius: 50%; animation: spin 20s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Features */
.section-title h2 { font-family: var(--font-mono); font-size: 2.5rem; color: var(--text); }
.neon-line { width: 100px; height: 2px; background: var(--pink); margin-bottom: 40px; box-shadow: 0 0 10px var(--pink); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { background: var(--card-bg); border: 1px solid #333; padding: 30px; transition: 0.3s; }
.feature-card:hover { border-color: var(--violet); box-shadow: 0 0 20px rgba(138, 43, 226, 0.2); }
.f-icon { font-size: 3rem; margin-bottom: 20px; }
.feature-card h3 { font-family: var(--font-mono); color: var(--violet); margin-bottom: 10px; }

/* Courses */
.course-list { display: flex; flex-direction: column; gap: 40px; }
.course-item { background: var(--card-bg); border-left: 4px solid var(--violet); padding: 30px; display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: center; }
.course-item.featured { border-left-color: var(--pink); background: linear-gradient(90deg, rgba(255,0,255,0.05), transparent); }
.c-header h3 { font-family: var(--font-mono); font-size: 2rem; margin: 5px 0; }
.level { font-family: var(--font-mono); font-size: 0.8rem; color: #888; border: 1px solid #333; padding: 2px 5px; }
.stats { list-style: none; margin: 20px 0; font-family: var(--font-mono); color: var(--pink); }
.btn-cyber-small { background: var(--violet); color: var(--white); padding: 8px 20px; font-family: var(--font-mono); font-size: 0.9rem; transition: 0.3s; display: inline-block; }
.btn-cyber-small:hover { background: var(--pink); }

/* About Terminal */
.about-terminal { max-width: 800px; margin: 0 auto; background: #000; border: 1px solid #333; box-shadow: 0 0 30px rgba(0,0,0,0.5); }
.terminal-header { background: #111; padding: 10px; display: flex; gap: 8px; border-bottom: 1px solid #333; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #FF5F56; } .yellow { background: #FFBD2E; } .green { background: #27C93F; }
.title { font-family: var(--font-mono); font-size: 0.8rem; color: #888; margin-left: 10px; }
.terminal-body { padding: 30px; font-family: var(--font-mono); color: #00FF00; line-height: 1.4; }
.cursor { animation: blink 1s infinite; }

/* Dashboard */
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.live-tag { color: #FF0000; font-family: var(--font-mono); font-weight: 700; animation: blink 2s infinite; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.dash-card { background: var(--card-bg); border: 1px solid #333; padding: 20px; }
.main-chart { grid-row: span 2; }
.dash-card h3 { font-family: var(--font-mono); color: #888; font-size: 0.9rem; margin-bottom: 10px; }
.value { font-family: var(--font-mono); font-size: 1.5rem; display: block; margin-bottom: 5px; }
.value.big { font-size: 3rem; color: var(--pink); }
.change.positive { color: #00FF00; }
.chart-mockup { height: 200px; border-left: 1px solid #333; border-bottom: 1px solid #333; position: relative; margin: 20px 0; }
.chart-line { position: absolute; bottom: 20px; left: 0; width: 100%; height: 50%; border-top: 2px solid var(--violet); }

/* Contact Form */
.form-wrapper { max-width: 600px; margin: 0 auto; background: var(--card-bg); padding: 40px; border: 1px solid var(--violet); box-shadow: 0 0 20px rgba(138, 43, 226, 0.1); }
.form-header { text-align: center; margin-bottom: 30px; }
.form-header h2 { font-family: var(--font-mono); color: var(--pink); }

.neon-form .input-grp { margin-bottom: 20px; }
.neon-form label { display: block; font-family: var(--font-mono); font-size: 0.8rem; color: var(--violet); margin-bottom: 5px; }
.neon-form input, .neon-form select, .neon-form textarea { width: 100%; background: #000; border: 1px solid #333; color: var(--text); padding: 10px; font-family: var(--font-mono); }
.neon-form input:focus, .neon-form select:focus, .neon-form textarea:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 10px var(--pink); }
.full { width: 100%; margin-top: 10px; }

/* Legal */
.legal-box { max-width: 800px; margin: 0 auto; }
.left { margin-right: auto; }

/* Footer */
.footer { border-top: 1px solid #333; padding: 60px 0 20px; margin-top: 100px; background: #020202; }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 40px; }
.f-brand h4 { font-family: var(--font-mono); color: var(--text); }
.f-links a { margin-left: 20px; font-family: var(--font-mono); font-size: 0.9rem; color: #888; }
.f-links a:hover { color: var(--pink); }
.copyright { text-align: center; font-family: var(--font-mono); font-size: 0.7rem; color: #444; border-top: 1px solid #111; padding-top: 20px; }

@media (max-width: 900px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-content { text-align: center; }
    .hero-actions { justify-content: center; }
    .grid-3, .course-item, .dash-grid { grid-template-columns: 1fr; }
    .main-chart { grid-row: auto; }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
    .hero-visual { display: none; }
}