/* ===== CSS Variables (inet.onl Design System) ===== */
:root {
    --primary: #1E3A5F;
    --primary-light: #2C5282;
    --primary-dark: #152A45;
    --primary-darker: #0F1F33;
    --accent: #4A90D9;
    --accent-light: #63B3ED;

    --bg: #F8FAFC;
    --bg-alt: #EDF2F7;
    --bg-dark: #0F1F33;
    --bg-dark-light: #1A3050;

    --text: #1A202C;
    --text-light: #4A5568;
    --text-lighter: #718096;
    --text-white: #F7FAFC;

    --border: #CBD5E0;
    --border-light: #E2E8F0;

    --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.08);
    --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.1);
    --shadow-lg: 0 8px 30px rgba(30, 58, 95, 0.12);
    --shadow-xl: 0 20px 50px rgba(30, 58, 95, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.25s ease;
    --transition-slow: 0.5s ease;

    --success: #48BB78;
    --warning: #ED8936;
    --danger: #E53E3E;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

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

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg) 0%, #E8EFF7 50%, #DBEAFE 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(44, 82, 130, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(30, 58, 95, 0.06) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(30, 58, 95, 0.08);
    border: 1px solid rgba(30, 58, 95, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #48BB78;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    margin-bottom: 20px;
    color: var(--text);
    animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 500px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(30, 58, 95, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(30, 58, 95, 0.06);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.hero-graphic {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.1), rgba(30, 58, 95, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(30, 58, 95, 0.15);
}

.hero-logo-icon {
    animation: float 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 500;
    animation: float 5s ease-in-out infinite;
    white-space: nowrap;
}

.card-1 { top: 15%; left: 0; animation-delay: 0s; }
.card-2 { bottom: 20%; right: 0; animation-delay: 1.5s; }
.card-3 { top: 60%; left: -5%; animation-delay: 3s; }

/* ===== Sections ===== */
.section:first-of-type {
    padding-top: 120px;
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(30, 58, 95, 0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--text);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ===== Generator Card ===== */
.generator-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.generator-settings {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.settings-group h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 14px;
    font-weight: 600;
}

.highlight-value {
    color: var(--accent);
    font-weight: 700;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    user-select: none;
}

.checkbox-label:hover {
    border-color: var(--accent);
    background: rgba(74, 144, 217, 0.04);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.checkbox-text {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 500;
}

.checkbox-text code {
    font-size: 0.78rem;
    background: rgba(30, 58, 95, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Slider */
.slider-container {
    position: relative;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-alt);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(30, 58, 95, 0.4);
}

.slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-lighter);
}

/* Format Buttons */
.format-buttons {
    display: flex;
    gap: 8px;
    background: var(--bg-alt);
    padding: 4px;
    border-radius: 50px;
}

.format-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.format-btn:hover {
    color: var(--primary);
}

.format-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Generate Button */
.btn-generate {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
    font-size: 1rem;
    margin-top: auto;
}

/* ===== Generator Output ===== */
.generator-output {
    background: var(--bg-dark);
    padding: 40px;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.output-header h3 {
    font-size: 1.05rem;
    color: var(--text-white);
    font-weight: 600;
}

.output-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(247, 250, 252, 0.7);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.25);
}

.action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.output-area {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--accent-light);
}

.output-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    gap: 16px;
    color: rgba(247, 250, 252, 0.3);
    text-align: center;
}

.output-placeholder p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
}

/* Password Items */
.password-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    gap: 12px;
}

.password-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.password-text {
    flex: 1;
    word-break: break-all;
    cursor: text;
    user-select: all;
}

.password-copy {
    background: none;
    border: none;
    color: rgba(247, 250, 252, 0.4);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
    flex-shrink: 0;
}

.password-copy:hover {
    color: var(--accent-light);
    background: rgba(255, 255, 255, 0.08);
}

/* Output Footer */
.output-footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-label {
    font-size: 0.8rem;
    color: rgba(247, 250, 252, 0.5);
    font-weight: 500;
}

.strength-bar {
    width: 120px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease, background 0.4s ease;
}

.strength-text {
    font-size: 0.8rem;
    font-weight: 600;
}

.strength-weak { width: 25%; background: var(--danger); }
.strength-fair { width: 50%; background: var(--warning); }
.strength-good { width: 75%; background: var(--accent); }
.strength-strong { width: 100%; background: var(--success); }

.stats {
    font-size: 0.8rem;
    color: rgba(247, 250, 252, 0.4);
}

/* Output format pre */
.output-area pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--accent-light);
}

/* ===== Service Cards (Features) ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: white;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon.blue { background: rgba(30, 58, 95, 0.08); }
.service-icon.purple { background: rgba(128, 90, 213, 0.08); }
.service-icon.cyan { background: rgba(56, 178, 172, 0.08); }
.service-icon.green { background: rgba(72, 187, 120, 0.08); }
.service-icon.orange { background: rgba(237, 137, 54, 0.08); }
.service-icon.pink { background: rgba(237, 100, 166, 0.08); }

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
}

.footer-brand img {
    height: 32px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(247, 250, 252, 0.6);
    transition: var(--transition);
}

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

.footer-copy {
    font-size: 0.8rem;
    color: rgba(247, 250, 252, 0.4);
}

.footer-copy a {
    color: var(--accent-light);
    transition: var(--transition);
}

.footer-copy a:hover {
    color: white;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-dark);
    color: var(--text-white);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .generator-card {
        grid-template-columns: 1fr;
    }

    .generator-output {
        min-height: 350px;
    }

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

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .generator-settings {
        padding: 24px;
    }

    .generator-output {
        padding: 24px;
    }

    .output-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .format-buttons {
        flex-direction: column;
        border-radius: var(--radius-md);
    }

    .format-btn {
        border-radius: var(--radius-sm);
    }
}
