/* ===== CSS VARIABLES ===== */
:root {
    /* カラーパレット */
    --color-bg-primary: #0A0A0A;
    --color-bg-secondary: #0D0D12;
    --color-bg-tertiary: #111118;
    --color-surface: #0F0F1A;
    --color-surface-hover: #151525;
    
    /* ネオンアクセント */
    --neon-cyan: #00FFFF;
    --neon-magenta: #FF00FF;
    --neon-green: #39FF14;
    --neon-yellow: #FFFF00;
    --neon-blue: #0088FF;
    --neon-red: #FF0044;
    
    /* テキスト */
    --text-primary: #E0E0E0;
    --text-secondary: #A0A0B0;
    --text-muted: #606070;
    
    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    --gradient-secondary: linear-gradient(135deg, var(--neon-magenta), var(--neon-yellow));
    --gradient-glow: linear-gradient(135deg, rgba(0,255,255,0.3), rgba(255,0,255,0.3));
    
    /* フォント */
    --font-heading: 'Orbitron', sans-serif;
    --font-subheading: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    /* サイズ */
    --nav-height: 70px;
    --section-padding: 120px;
    --container-max: 1200px;
    
    /* アニメーション */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.6s;
    
    /* グローエフェクト */
    --glow-cyan: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3), 0 0 40px rgba(0, 255, 255, 0.1);
    --glow-magenta: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 20px rgba(255, 0, 255, 0.3), 0 0 40px rgba(255, 0, 255, 0.1);
    --glow-green: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 20px rgba(57, 255, 20, 0.3), 0 0 40px rgba(57, 255, 20, 0.1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-subheading);
    background-color: var(--color-bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
}

::selection {
    background: var(--neon-cyan);
    color: var(--color-bg-primary);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-magenta);
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    position: relative;
}

.loader-scan-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    animation: scanMove 1.5s ease-in-out infinite;
}

@keyframes scanMove {
    0%, 100% { top: -50px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 150px; opacity: 0; }
}

.loader-text {
    margin-bottom: 30px;
}

.glitch-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: var(--neon-cyan);
    z-index: -1;
    animation: glitchCyan 2s infinite;
}

.glitch-text::after {
    color: var(--neon-magenta);
    z-index: -2;
    animation: glitchMagenta 2s infinite;
}

@keyframes glitchCyan {
    0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-2px); }
    10% { clip-path: inset(20% 0 60% 0); transform: translate(2px); }
    20% { clip-path: inset(50% 0 30% 0); transform: translate(-1px); }
    30% { clip-path: inset(80% 0 5% 0); transform: translate(1px); }
    40% { clip-path: inset(10% 0 70% 0); transform: translate(-2px); }
    50% { clip-path: inset(40% 0 40% 0); transform: translate(2px); }
    60% { clip-path: inset(70% 0 10% 0); transform: translate(-1px); }
    70% { clip-path: inset(30% 0 50% 0); transform: translate(1px); }
    80% { clip-path: inset(60% 0 20% 0); transform: translate(-2px); }
    90% { clip-path: inset(5% 0 80% 0); transform: translate(2px); }
}

@keyframes glitchMagenta {
    0%, 100% { clip-path: inset(95% 0 0 0); transform: translate(2px); }
    10% { clip-path: inset(60% 0 20% 0); transform: translate(-2px); }
    20% { clip-path: inset(30% 0 50% 0); transform: translate(1px); }
    30% { clip-path: inset(5% 0 80% 0); transform: translate(-1px); }
    40% { clip-path: inset(70% 0 10% 0); transform: translate(2px); }
    50% { clip-path: inset(40% 0 40% 0); transform: translate(-2px); }
    60% { clip-path: inset(10% 0 70% 0); transform: translate(1px); }
    70% { clip-path: inset(50% 0 30% 0); transform: translate(-1px); }
    80% { clip-path: inset(20% 0 60% 0); transform: translate(2px); }
    90% { clip-path: inset(80% 0 5% 0); transform: translate(-2px); }
}

.loader-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 15px;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.loader-status {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* ===== PARTICLE CANVAS ===== */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* ===== GLITCH OVERLAY ===== */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: screen;
}

.glitch-overlay.active {
    animation: glitchOverlay 0.1s steps(2) 3;
}

@keyframes glitchOverlay {
    0% { 
        opacity: 0.03; 
        background: repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 255, 255, 0.1) 2px,
            rgba(0, 255, 255, 0.1) 4px
        );
    }
    50% { 
        opacity: 0.05; 
        background: repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(255, 0, 255, 0.1) 2px,
            rgba(255, 0, 255, 0.1) 4px
        );
    }
    100% { opacity: 0; }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition-normal) ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.navbar-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.logo-subtitle {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-top: -3px;
}

.neon-accent {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-fast) ease;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--neon-cyan);
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: clip-path 0.4s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.cta-nav {
    color: var(--neon-cyan) !important;
    background: rgba(0, 255, 255, 0.1);
    padding: 8px 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 2px;
    transition: all var(--transition-fast) ease;
}

.cta-nav:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: var(--glow-cyan);
}

.cta-nav::before {
    display: none;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast) ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background: var(--neon-cyan);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background: var(--neon-cyan);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right var(--transition-slow) var(--ease-out-expo);
    border-left: 1px solid rgba(0, 255, 255, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 4px;
    transition: all var(--transition-fast) ease;
}

.mobile-nav-link:hover {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.mobile-cta {
    color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.1);
    padding: 15px 30px;
    border: 1px solid var(--neon-cyan);
    margin-top: 20px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(80px); }
}

.hero-scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 255, 255, 0.015) 2px,
        rgba(0, 255, 255, 0.015) 4px
    );
    pointer-events: none;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 10, 0.7) 70%, var(--color-bg-primary) 100%);
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 2px;
    margin-bottom: 30px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.badge-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-green);
    letter-spacing: 2px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
}

.title-line {
    display: block;
    position: relative;
    color: var(--text-primary);
}

.title-line.accent {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.title-line::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--neon-magenta);
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: all 0.1s ease;
}

.title-line:hover::after {
    animation: hoverGlitch 0.3s steps(2) 3;
}

@keyframes hoverGlitch {
    0% { opacity: 0.8; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: translate(-3px); }
    50% { opacity: 0.8; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: translate(3px); }
    100% { opacity: 0; }
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 35px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 45px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 35px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-fast) ease;
    clip-path: polygon(
        0 0, 
        calc(100% - 15px) 0, 
        100% 15px, 
        100% 100%, 
        15px 100%, 
        0 calc(100% - 15px)
    );
}

.cta-button.primary {
    background: var(--neon-cyan);
    color: var(--color-bg-primary);
    border: none;
}

.cta-button.primary:hover {
    background: #33FFFF;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: var(--neon-magenta);
    border: 1px solid var(--neon-magenta);
}

.cta-button.secondary:hover {
    background: rgba(255, 0, 255, 0.1);
    box-shadow: var(--glow-magenta);
    transform: translateY(-2px);
}

.cta-glitch {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.cta-button:hover .cta-glitch {
    left: 100%;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.cyber-hologram {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
}

.hologram-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid;
    animation: hologramRotate 10s linear infinite;
}

.hologram-ring.ring-1 {
    width: 100%;
    height: 100%;
    border-color: var(--neon-cyan);
    opacity: 0.6;
    box-shadow: var(--glow-cyan);
}

.hologram-ring.ring-2 {
    width: 75%;
    height: 75%;
    border-color: var(--neon-magenta);
    opacity: 0.5;
    box-shadow: var(--glow-magenta);
    animation-duration: 7s;
    animation-direction: reverse;
}

.hologram-ring.ring-3 {
    width: 50%;
    height: 50%;
    border-color: var(--neon-green);
    opacity: 0.4;
    box-shadow: var(--glow-green);
    animation-duration: 5s;
}

@keyframes hologramRotate {
    from { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg); }
    to { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); }
}

.hologram-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--neon-cyan), transparent);
    border-radius: 50%;
    animation: corePulse 2s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.hologram-data {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.data-line {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    opacity: 0.7;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    animation: dataFlicker 3s ease-in-out infinite;
}

.data-line:nth-child(2) { animation-delay: 0.5s; color: var(--neon-magenta); }
.data-line:nth-child(3) { animation-delay: 1s; color: var(--neon-green); }

@keyframes dataFlicker {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
    75% { opacity: 1; }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    transform: rotate(45deg);
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    letter-spacing: 3px;
}

/* ===== SECTION COMMON ===== */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-padding) 30px;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    letter-spacing: 4px;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.title-main {
    display: block;
    color: var(--text-primary);
}

.title-accent {
    display: block;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.title-underline {
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 50%, var(--color-bg-primary) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-lead {
    font-family: var(--font-subheading);
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 20px;
    border-left: 3px solid var(--neon-cyan);
    padding-left: 20px;
}

.about-body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 30px;
}

.about-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.keyword {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    padding: 8px 16px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.05);
    letter-spacing: 2px;
    transition: all var(--transition-fast) ease;
}

.keyword:hover {
    background: rgba(0, 255, 255, 0.15);
    box-shadow: var(--glow-cyan);
}

/* Terminal Window */
.terminal-window {
    background: rgba(15, 15, 26, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(20, 20, 35, 0.9);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
}

.terminal-text {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.terminal-text.warning { color: var(--neon-yellow); }
.terminal-text.error { color: var(--neon-red); }
.terminal-text.success { color: var(--neon-green); }

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 16px;
    background: var(--neon-cyan);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 5px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background: var(--color-bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid rgba(0, 255, 255, 0.1);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal) ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal) ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.1);
}

.feature-icon {
    margin-bottom: 25px;
}

.icon-hexagon {
    position: relative;
    width: 80px;
    height: 80px;
    color: var(--neon-cyan);
}

.hex-svg {
    width: 100%;
    height: 100%;
    animation: hexRotate 10s linear infinite;
}

@keyframes hexRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--neon-cyan);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-desc {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.feature-detail {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.feature-specs {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.spec {
    display: flex;
    flex-direction: column;
}

.spec-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-magenta);
}

.spec-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 3px;
}

/* ===== TECH SECTION ===== */
.tech-section {
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 50%, var(--color-bg-primary) 100%);
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.diagram-container {
    position: sticky;
    top: 100px;
}

.arch-diagram {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.diagram-legend {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.core { background: var(--neon-cyan); box-shadow: 0 0 5px var(--neon-cyan); }
.legend-dot.ai { background: #00FFFF; }
.legend-dot.sec { background: #FF00FF; }
.legend-dot.net { background: #39FF14; }
.legend-dot.data { background: #FFFF00; }

.detail-panel {
    background: var(--color-surface);
    border: 1px solid rgba(0, 255, 255, 0.1);
    padding: 35px;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.detail-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.detail-icon {
    color: var(--neon-cyan);
    transition: transform var(--transition-fast) ease;
}

.detail-item:hover .detail-icon {
    transform: rotate(90deg);
}

.detail-name {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.detail-content {
    padding-left: 25px;
}

.detail-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.detail-spec {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.detail-spec span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 2px;
}

/* ===== ROADMAP SECTION ===== */
.roadmap-section {
    background: var(--color-bg-primary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 60px;
}

.timeline-progress-bar {
    position: absolute;
    left: 25px;
    top: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.timeline-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all var(--transition-normal) ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: -48px;
    top: 0;
    width: 34px;
    height: 34px;
    background: var(--color-bg-secondary);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-item.completed .timeline-marker {
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.2);
}

.timeline-item.current .timeline-marker {
    border-color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.timeline-item.upcoming .timeline-marker {
    border-color: var(--text-muted);
}

.marker-inner {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.timeline-item.completed .marker-inner {
    color: var(--neon-green);
}

.timeline-item.current .marker-inner {
    color: var(--neon-cyan);
}

.marker-inner.pulse {
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.timeline-content {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    transition: all var(--transition-fast) ease;
}

.timeline-content:hover {
    border-color: rgba(0, 255, 255, 0.3);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 1px;
}

.tag.completed {
    background: rgba(57, 255, 20, 0.2);
    color: var(--neon-green);
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.tag.current {
    background: rgba(0, 255, 255, 0.2);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.tag.upcoming {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 50px;
}

/* Countdown */
.countdown-container {
    margin-bottom: 50px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    line-height: 1;
    min-width: 80px;
    background: var(--color-surface);
    padding: 15px 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.countdown-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 8px;
    display: block;
}

.countdown-separator {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--neon-magenta);
    margin-top: -20px;
}

.countdown-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-magenta);
    letter-spacing: 3px;
}

/* Form */
.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    font-family: var(--font-subheading);
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color var(--transition-fast) ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-bottom-color: var(--neon-cyan);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: width var(--transition-normal) ease;
}

.form-input:focus ~ .input-line {
    width: 100%;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.submit-button {
    width: 100%;
    padding: 18px 40px;
    background: var(--neon-cyan);
    color: var(--color-bg-primary);
    border: none;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast) ease;
    clip-path: polygon(
        0 0, 
        calc(100% - 20px) 0, 
        100% 20px, 
        100% 100%, 
        20px 100%, 
        0 calc(100% - 20px)
    );
}

.submit-button:hover {
    background: #33FFFF;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-glitch {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.submit-button:hover .btn-glitch {
    left: 100%;
}

.form-status {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition-fast) ease;
}

.form-status.show {
    opacity: 1;
}

.form-status.success {
    color: var(--neon-green);
}

.form-status.error {
    color: var(--neon-red);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    padding: 60px 30px 30px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    letter-spacing: 2px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.link-group-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-link {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all var(--transition-fast) ease;
    letter-spacing: 1px;
}

.footer-link:hover {
    color: var(--neon-cyan);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast) ease;
}

.social-link:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}

.copyright {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-surface);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--neon-cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-fast) ease;
    clip-path: polygon(
        0 0, 
        calc(100% - 10px) 0, 
        100% 10px, 
        100% 100%, 
        10px 100%, 
        0 calc(100% - 10px)
    );
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--neon-cyan);
    color: var(--color-bg-primary);
    box-shadow: var(--glow-cyan);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow) var(--ease-out-expo);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .visual-container {
        width: 300px;
        height: 300px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .tech-content {
        grid-template-columns: 1fr;
    }
    
    .diagram-container {
        position: relative;
        top: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-items: center;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
        --section-padding: 80px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 25px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 120px;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .countdown-value {
        font-size: 2rem;
        min-width: 60px;
        padding: 10px 8px;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
    }
    
    .timeline {
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: -43px;
        width: 28px;
        height: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 14px 25px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .countdown-value {
        font-size: 1.5rem;
        min-width: 50px;
    }
}