/* === CSS Variables (Color Palette & Fonts) === */
:root {
    --bg-main: #0a0e27;
    --bg-secondary: #0d1117;
    --accent-cyan: #00d9ff;
    --accent-blue: #0077ff;
    --accent-green: #00ff88;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border-color: #1a1f3a;

    --font-display: 'Orbitron', 'Noto Sans JP', sans-serif; /* For titles */
    --font-mono: 'Roboto Mono', 'Noto Sans JP', monospace; /* For text and UI */
    --font-jp-main: 'Noto Sans JP', sans-serif; /* For Japanese text */
}

/* === Global Styles & Resets === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-jp-main);
    line-height: 1.8;
    overflow-x: hidden;
}

/* === Animated Background === */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    animation: moveGrid 20s linear infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(0deg, transparent 0%, var(--bg-main) 100%);
    z-index: -1;
}

@keyframes moveGrid {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

/* === Common Components === */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.cta-button {
    display: inline-block;
    font-family: var(--font-display);
    text-decoration: none;
    color: var(--accent-cyan);
    background-color: transparent;
    border: 2px solid var(--accent-cyan);
    padding: 15px 40px;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px 0 var(--accent-cyan), 0 0 10px 0 var(--accent-cyan);
}
.cta-button:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-main);
    box-shadow: inset 0 0 10px 0 var(--accent-cyan), 0 0 20px 0 var(--accent-cyan);
}

/* === Header === */
.header {
    position: fixed;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    text-decoration: none;
    text-shadow: 0 0 5px var(--accent-cyan);
}

/* === Hero Section === */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-content {
    position: relative;
}
.hero-status-text {
    color: var(--accent-green);
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-family: var(--font-mono);
}
.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-shadow: 0 0 15px var(--accent-cyan);
    position: relative;
}
.glitch {
    position: relative;
    display: inline-block;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-main);
    overflow: hidden;
    clip-path: inset(50% 0 50% 0);
}
.glitch::before {
    left: -2px;
    text-shadow: -2px 0 var(--accent-blue);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch::after {
    left: 2px;
    text-shadow: -2px 0 var(--accent-green);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}
@keyframes glitch-anim-1 { 0% { clip-path: inset(40% 0 60% 0); } 100% { clip-path: inset(60% 0 40% 0); } }
@keyframes glitch-anim-2 { 0% { clip-path: inset(25% 0 75% 0); } 100% { clip-path: inset(75% 0 25% 0); } }

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* === SPECS Section === */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.spec-card {
    background-color: rgba(13, 17, 23, 0.7);
    border: 1px solid var(--border-color);
    padding: 30px;
    position: relative;
}
.spec-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 217, 255, 0.05) 10px, rgba(0, 217, 255, 0.05) 20px);
    opacity: 0.2;
}
.spec-card h3 {
    font-family: var(--font-display);
    color: var(--accent-cyan);
    margin-bottom: 15px;
}
.spec-data {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-green);
    margin-bottom: 10px;
}
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: var(--border-color);
    margin-top: 15px;
}
.progress-fill {
    height: 100%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* === SUPPORTED DEVICES Section === */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.device-card {
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    overflow: hidden;
    position: relative;
    transition: background-color 0.3s ease;
}
.device-card:hover {
    background-color: var(--border-color);
}
.device-card .icon {
    font-size: 4rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}
.device-card::before { /* Scanline effect */
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    top: -10px;
    transition: top 0.5s ease-in-out;
}
.device-card:hover::before {
    top: 100%;
}
.device-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* === PROCESS Section === */
.process-flowchart {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.process-step {
    flex: 1;
    text-align: center;
    padding: 20px;
    position: relative;
}
.step-indicator {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.process-step h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
}
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px;
    right: -25%;
    width: 50%;
    height: 2px;
    background: var(--accent-cyan);
    opacity: 0.5;
}

/* === ABOUT Section === */
.terminal-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.terminal-header {
    background: var(--border-color);
    padding: 10px;
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
}
.terminal-header::before {
    content: '● ● ●';
    color: #555;
    margin-right: 15px;
}
.terminal-title { font-weight: bold; }
.terminal-body {
    padding: 30px;
}
.terminal-body p:first-child::before {
    content: '> ';
    color: var(--accent-green);
}

/* === CONTACT Section (Simplified) === */
#contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--border-color);
    background-color: rgba(13, 17, 23, 0.7);
    padding: 40px;
}
#contact-container p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* === FOOTER === */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-mono);
}
.footer p { margin-bottom: 10px; }

/* === Mobile Responsiveness === */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2.2rem; }
    .process-flowchart { flex-direction: column; }
    .process-step { margin-bottom: 40px; }
    .process-step:not(:last-child)::after { display: none; }
}
