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

:root {
    --bg: #000000;
    --fg: #ffffff;
    --accent: #ff0031;
    --subtle: #444444;
    --grid: #111111;
    --border: #222222;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* DOT GRID BACKGROUND */
.dot-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(var(--subtle) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: -1;
    opacity: 0.15;
}

/* SCANLINE ANIMATION */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.1;
}

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

h1, h2, h3, .nothing-font {
    font-family: 'NothingFont', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 100px;
}

.hero h1 {
    font-size: 8rem;
    margin-bottom: 20px;
    letter-spacing: 12px;
}

.hero .tagline {
    font-family: 'NothingFont', sans-serif;
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.hero-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    filter: grayscale(1) invert(1);
    animation: pulse 4s infinite ease-in-out;
}

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

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--fg);
    background: transparent;
    color: var(--fg);
    text-decoration: none;
    font-family: 'NothingFont', sans-serif;
    text-transform: uppercase;
    font-size: 1.2rem;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--fg);
    color: var(--bg);
}

.btn-accent {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent);
    color: var(--bg);
}

/* SECTIONS */
section {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title::before {
    content: '[';
}

.section-title::after {
    content: ']';
}

/* LOG / TERMINAL PANEL */
.log-panel {
    border: 1px solid var(--border);
    padding: 30px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #888;
    background: rgba(10,10,10,0.5);
    backdrop-filter: blur(10px);
}

.log-panel span {
    color: var(--fg);
}

.log-panel mark {
    background: none;
    color: var(--accent);
}

/* PHONE SHOWCASE */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.phone-mockup {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-img {
    max-height: 100%;
    width: auto;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
}

.phone-img.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.stat-card {
    border: 1px solid var(--border);
    padding: 30px;
    transition: 0.3s;
}

.stat-card:hover {
    border-color: var(--fg);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent);
}

/* FOOTER */
footer {
    padding: 100px 0 60px;
    text-align: center;
    border-top: 2px solid var(--accent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.footer-links a {
    color: var(--subtle);
    text-decoration: none;
    font-family: 'NothingFont', sans-serif;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--fg);
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
    .hero h1 { font-size: 6rem; letter-spacing: 8px; }
    .section-title { font-size: 2.5rem; }
    .showcase-grid { gap: 40px; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    
    .hero { height: auto; padding: 120px 0 80px; }
    .hero h1 { font-size: 4rem; letter-spacing: 4px; }
    .hero .tagline { font-size: 1.1rem; }
    
    .showcase-grid { 
        display: flex;
        flex-direction: column !important; /* Stack normally */
        direction: ltr !important; /* Reset RTL for mobile */
        gap: 30px; 
        text-align: center;
    }
    
    .section-title { 
        font-size: 2rem; 
        justify-content: center; 
        margin-bottom: 30px; 
    }
    
    .phone-mockup { height: 450px; }
    .phone-img { max-width: 80%; }

    .log-panel { padding: 20px; font-size: 0.8rem; text-align: left; }

    .footer-links { 
        flex-direction: column; 
        gap: 15px; 
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 3rem; letter-spacing: 2px; }
    .btn { padding: 12px 24px; font-size: 1rem; width: 100%; }
    .section-title { font-size: 1.6rem; }
    .phone-mockup { height: 350px; }
}
