/* Font Face Declarations */
@font-face {
    font-family: 'AppOrbitron';
    src: url('../fonts/orbitron.ttf') format('truetype');
}

@font-face {
    font-family: 'AppDigital';
    src: url('../fonts/digital.ttf') format('truetype');
}

@font-face {
    font-family: 'AppBebas';
    src: url('../fonts/bebas.ttf') format('truetype');
}

@font-face {
    font-family: 'AppInter';
    src: url('../fonts/inter.ttf') format('truetype');
}

:root {
    --bg-dark: #0A0A0A;
    --primary: #FF8C00;
    --primary-glow: rgba(255, 140, 0, 0.4);
    --text-main: #ffffff;
    --text-muted: #888888;
    --border-ui: #2a2a2a;
    --panel-bg: rgba(15, 15, 15, 0.95);
    --transition: all 0.25s ease-out;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'AppInter', sans-serif;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.carbon-bg {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 140, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
        #0A0A0A;
    position: relative;
}

.carbon-bg::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* UI Elements */
.ui-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-ui);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.orbitron-text {
    font-family: 'AppOrbitron', sans-serif;
    letter-spacing: 2px;
}

.bebas-text {
    font-family: 'AppBebas', sans-serif;
    letter-spacing: 1px;
}

.digital-text {
    font-family: 'AppDigital', monospace;
}

/* Language Selector */
.lang-selector {
    text-align: right;
    padding: 1rem 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lang-selector span.active {
    color: var(--primary);
    font-weight: bold;
}

/* Header & Nav */
header {
    padding: 1.5rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-logo {
    height: 70px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
}

.v4 {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 5.5rem;
    margin-bottom: 0.5rem;
    line-height: 0.9;
}

.hero-text .slogan {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    display: block;
    font-family: 'AppOrbitron', sans-serif;
}

.app-desc {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 6px;
    font-family: 'AppBebas', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid var(--border-ui);
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.btn-primary:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* App Widget (Dashboard Simulator) */
.app-widget {
    background: #000;
    border: 10px solid #1a1a1a;
    border-radius: 24px;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2.5rem;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 15px var(--primary-glow);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

/* Video Section */
.video-container {
    margin: 4rem 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-ui);
    background: #000;
}

.video-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* Resources / Documentation */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.resource-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem;
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
}

.resource-btn:hover {
    background: rgba(255, 126, 0, 0.05);
}

.resource-btn img {
    height: 40px;
    opacity: 0.6;
}

.status-bar {
    height: 24px;
    background: #111;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    font-size: 10px;
    color: #555;
}

.dial-container {
    text-align: center;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.dial-number {
    font-size: 5rem;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 0 20px var(--primary-glow);
}

.dial-unit {
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 3px;
}

#waveform {
    margin-top: 1rem;
    width: 100%;
    max-width: 300px;
}

/* Gallery */
.gallery {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.screenshot-card img {
    width: 100%;
    border-radius: 8px;
    display: block;
    filter: grayscale(0.2);
    transition: var(--transition);
}

.screenshot-card:hover img {
    filter: grayscale(0);
    transform: scale(1.02);
}

/* Hardware Specs */
.hardware-specs {
    padding: 3rem;
    margin: 4rem 0;
}

.specs-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.specs-list li {
    color: var(--text-muted);
}

.specs-list li span {
    color: var(--primary);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.3rem;
}

/* Support */
.support {
    text-align: center;
    padding: 6rem 0;
}

.support h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.support p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.donate-btn {
    padding: 1.5rem 4rem;
    border-radius: 50px;
    font-size: 1.3rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid #111;
    margin-top: 4rem;
}

.footer-text {
    text-align: center;
    color: #222;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .specs-list {
        grid-template-columns: 1fr;
    }
}