
@font-face {
    font-family: 'NeueMachinaUltra';
    src: url('fonts/neuemachina-ultrabold.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --bg: #06080d;
    --bg-2: #0b1018;
    --panel: #0f151c;
    --panel-2: #0c1218;
    --border: rgba(120, 140, 170, 0.28);
    --text: #e9f1f6;
    --muted: #9fb0c0;
    --accent: #00f0a0;
    --accent-2: #00b8ff;
    --accent-3: #8ef9ff;
    --strength-empty: rgba(255, 255, 255, 0.25);
    --strength-weak: #ff4b4b;
    --strength-low: #ff8a3d;
    --strength-mid: #ffd447;
    --strength-strong: #46f29d;
}

html, body {
    width: 100%;
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth; 
}

body {
    background:
        radial-gradient(900px 500px at 15% 10%, rgba(0, 240, 160, 0.12), transparent 60%),
        radial-gradient(700px 500px at 85% 5%, rgba(0, 184, 255, 0.10), transparent 55%),
        linear-gradient(180deg, #0b1018 0%, #06080d 60%, #05070b 100%);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(6, 10, 14, 0.78);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.28s ease, opacity 0.28s ease;
    will-change: transform, opacity;
}

.navbar.is-hidden {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px clamp(14px, 4vw, 30px);
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

.nav-logo {
    font-family: 'NeueMachinaUltra', sans-serif;
    font-size: 24px;
    color: var(--text);
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 3vw, 30px);
}
.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
}
.nav-links a:hover {
    color: var(--muted);
}

.hero {
    position: relative;
    min-height: 100svh;
    height: 100vh;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 420px at 50% 30%, rgba(0, 240, 160, 0.22), transparent 65%),
        radial-gradient(520px 380px at 70% 20%, rgba(0, 184, 255, 0.18), transparent 60%);
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.85) 70%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 64px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.hero-title {
    font-family: 'NeueMachinaUltra', sans-serif;
    font-size: clamp(44px, 11vw, 96px);
    line-height: 0.9;
    color: var(--text);
}

.hero-sub {
    font-family: 'NeueMachinaUltra', sans-serif;
    font-size: clamp(30px, 7vw, 64px);
    color: var(--text);
    margin-top: 5px;
    
}

section {
    background: #070b10;
    padding: clamp(52px, 8vw, 80px) 20px;
    text-align: center;
    position: relative;
    z-index: 5;
    border-top: none;
}

.generator-section {
    background: #070b10;
    padding-bottom: 52px;
}

.checker-section {
    background: #070b10;
    padding-top: 52px;
}

section h2 {
    font-family: 'NeueMachinaUltra', sans-serif;
    font-size: clamp(32px, 6vw, 48px);
    margin-bottom: clamp(28px, 5vw, 60px);
    color: var(--text);
}

.generator-card, .checker-card {
    background: #0d141d;
    border: 1px solid rgba(120, 140, 170, 0.22);
    border-radius: 12px;
    padding: clamp(20px, 4.5vw, 40px);
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 3vw, 24px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.generator-card:hover, .checker-card:hover {
    transform: none;
}

.result-row {
    display: flex; 
    align-items: center;
    gap: 10px; 
    width: 100%;
    min-width: 0;
}

.strength-row, .checkboxes, .controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.checkboxes {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    margin-top: 5px;
    gap: 20px;
}

.password-output {
    width: 100%;
    flex-grow: 1; 
    min-width: 0;
    background: rgba(6, 10, 14, 0.8);
    border: 1px solid var(--input-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    padding: 16px 18px;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(14px, 2.8vw, 16px);
    outline: none;
    transition: border 0.2s ease;
}

.password-output:focus {
    border-color: var(--input-border, var(--accent));
}

.btn {
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex-shrink: 0; 
}

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

.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #041016;
    font-weight: 700;
    width: 100%; 
}

.btn.primary:hover {
    background: #7fffe0;
    color: #051015;
    transform: translateY(-1px);
}

.btn.icon-btn {
    background: transparent;
    border: none;
    color: var(--muted); 
    padding: 10px; 
    margin-left: -5px; 
    border-radius: 8px;
}

.btn.icon-btn:hover {
    background: rgba(0, 240, 160, 0.12); 
    color: var(--text); 
}

.btn.icon-btn svg {
    display: block; 
}

.controls { width: 100%; }
.slider,
input[type=range] {
    width: 100%;
    accent-color: var(--accent);
}

progress {
    width: 100%;
    height: 14px;
    border-radius: 10px;
    overflow: hidden;
    appearance: none;
    background: rgba(255,255,255,0.08);
    --strength-color: var(--strength-empty);
    color: var(--strength-color);
}
progress::-webkit-progress-bar {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
}
progress::-webkit-progress-value {
    background: currentColor;
    border-radius: 10px;
    transition: width 0.4s ease;
}

progress::-moz-progress-bar {
    background: currentColor;
    border-radius: 10px;
}

.footer {
    background: rgba(6, 10, 14, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}
.footer-logo {
    font-family: 'NeueMachinaUltra', sans-serif;
    font-size: 28px;
    color: var(--text);
    margin-bottom: 15px;
}

.footer-logo span { color: var(--accent); }

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover { opacity: 0.8; }

@media (max-width: 900px) {
    .nav-logo { font-size: 21px; }
    .generator-section { padding-bottom: 44px; }
    .checker-section { padding-top: 44px; }
}

@media (max-width: 700px) {
    .nav-container {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 96px;
    }

    .checker-section {
        padding-top: 40px;
    }
}

@media (max-width: 600px) {
    .checkboxes {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }

    .result-row {
        gap: 8px;
    }

    .btn.icon-btn {
        width: auto;
        padding: 8px;
    }

    .password-output {
        padding: 14px 15px;
    }
}
