:root {
    --main-blue:   #0284c7;
    --bg-dark:     #0f172a;
    --panel-slate: #1e293b;
    --text-white:  #f1f5f9;
    --text-muted:  #94a3b8;
    --border:      #334155;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding-top: 70px;
    line-height: 1.6;
}

h2 { font-size: 1.75rem; margin-top: 0; }
h3 { margin-top: 0; color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.max-w-800 { max-width: 800px; }
.max-w-600 { max-width: 600px; }
.text-muted { color: var(--text-muted); }
.border-bottom { border-bottom: 1px solid var(--border); }
.bg-alt { background: rgba(30, 41, 59, 0.2); }
.section { padding: 80px 0; }

/* NAV */
.nav-bar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 50;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #1e293b;
}
.flex-nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; position: relative; }
.logo { font-weight: 900; letter-spacing: 0.05em; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--main-blue); }
.nav-links .btn-nav { background: var(--main-blue); color: #fff; padding: 6px 15px; border-radius: 4px; }
.nav-links .btn-nav:hover { color: #fff; background: #0369a1; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 25px; height: 3px;
    background-color: var(--text-white);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: var(--bg-dark);
        border-bottom: 1px solid #1e293b;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin-left: 0; font-size: 1rem; }
}

/* HERO */
.hero-section {
    position: relative;
    height: 80vh;
    background:
        linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)),
        url('mmexport1777186570951.jpg') no-repeat center/cover;
    display: flex;
    align-items: center;
}
.hero-title { font-size: 3.5rem; margin: 0 0 10px; text-transform: uppercase; line-height: 1.1; }
.hero-subtitle { font-size: 1.25rem; color: #38bdf8; margin: 0 0 30px; }
.btn-hero {
    background: var(--main-blue);
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s;
}
.btn-hero:hover { background: #0369a1; }

@media (max-width: 768px) {
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1rem; }
}

/* PRODUCTS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.product-card {
    background: var(--panel-slate);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
    transition: border-color 0.3s;
}
.product-card:hover { border-color: var(--main-blue); }
.card-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; }

/* TECHNOLOGY */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
@media (max-width: 768px) { .tech-grid { grid-template-columns: 1fr; } }
.interactive-bar {
    border-left: 3px solid var(--border);
    padding: 12px 15px;
    margin-bottom: 15px;
    cursor: pointer;
    background: rgba(30, 41, 59, 0.4);
    font-size: 0.95rem;
    transition: all 0.3s;
}
.interactive-bar:hover { border-left-color: var(--main-blue); background: rgba(2, 132, 199, 0.08); }
.display-box {
    background: #020617;
    padding: 30px;
    border: 1px solid #1e293b;
    border-radius: 4px;
    min-height: 100px;
}
.placeholder-text { color: #64748b; font-family: monospace; margin: 0; }
.dynamic-text { color: #e2e8f0; font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* FORM */
.form-wrapper { background: var(--panel-slate); border: 1px solid var(--border); border-radius: 6px; padding: 40px; }
.form-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    color: #38bdf8;
    margin-bottom: 8px;
    font-family: monospace;
    letter-spacing: 0.05em;
}
.form-control {
    width: 100%;
    background-color: #020617;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s;
}
.form-control:focus { outline: none; border-color: var(--main-blue); }
.btn-submit {
    width: 100%;
    background: var(--main-blue);
    color: #fff;
    border: none;
    padding: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.3s;
}
.btn-submit:hover:not(:disabled) { background: #0369a1; }
.btn-submit:disabled { background: var(--border); color: #64748b; cursor: not-allowed; }

/* TOAST */
.toast {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}
.toast.success { background: rgba(16, 185, 129, 0.15); border: 1px solid #10b981; color: #34d399; }
.toast.error   { background: rgba(239, 68, 68, 0.15); border: 1px solid #ef4444; color: #f87171; }
.hidden { display: none; }
