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

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #333;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border: #e5e7eb;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 20px;
}

.container-np {
    padding: 10px 0;
}

/* Header */
header {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-padding {
    padding: .5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s;
    font-weight: 500;
}

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

/* Language Menu */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem .8rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s;
}

.lang-button:hover {
    background: var(--bg-white);
    border-color: var(--primary);
}

.lang-flag {
    font-size: 1.2rem;
}

.lang-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s;
    margin-bottom: -4px
}

.lang-selector.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.lang-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.3s;
    border-bottom: 1px solid var(--border);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--bg-light);
}

.lang-option.active {
    background: var(--bg-light);
    color: var(--primary);
    font-weight: 600;
}

.lang-option-flag {
    font-size: 1.2rem;
}

.lang-option-text {
    flex: 1;
}

.lang-option-check {
    color: var(--primary);
    font-size: 1rem;
    opacity: 0;
}

.lang-option.active .lang-option-check {
    opacity: 1;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
    max-height: 400px;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    border-bottom: 1px solid var(--border);
}

.mobile-menu ul li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.mobile-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.back-home {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.back-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0 0;
}

.hero h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Generator Card */
.generator-card {
    background: var(--bg-white);
    border-radius: 24px;
    margin: 2rem 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.generator-placeholder {
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 16px;
}

.generator-placeholder svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    opacity: 0.5;
}


/* Content */
.content {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 3rem;
    margin: 2rem 0 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.content h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
}

.content h2:first-child {
    margin-top: 0;
}

.content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-light);
}

.content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Content Sections */
section {
    padding: 4rem 0;
    scroll-margin-top: 100px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin: 2rem 0 0;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

/* How to Use */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
}

/* Use Cases */
.use-cases {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.use-case {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.3s;
}

.use-case:hover {
    transform: scale(1.05);
}

.use-case-icon img{
    width:60px;
    height:60px;
    margin-bottom: 1rem;
}

.use-case h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.use-case p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* FAQ */
.faq {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top:1.5rem
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.8;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.faq-answer > div {
    overflow: hidden;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    padding-top: 0.5rem;
}

/* About */
.about {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 24px;
    margin: 2rem 0 0;
    padding: 1.8rem;
    text-align: center;
}

.about h2 {
    color: white;
    margin-bottom: 1rem;
    font-size:2.2rem
}

.about p {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

.last-updated {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Error Section */
.error-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.error-illustration {
    margin: 2rem 0;
    opacity: 0.3;
}

.error-illustration svg {
    width: 200px;
    height: 200px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

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

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-content-style-2 {
    text-align: center;
    display: inherit;
    margin-bottom: inherit;
}

.footer-content-style-2 .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-content-style-2 .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content-style-2 .footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
    .logo {
        font-size: 1.2rem;
    }

    nav > ul {
        display: none;
    }

    .container-np {
        padding: 10px 0;
    }

    .lang-selector {
        margin-right: 1rem;
    }

    .lang-button {
        padding: 0.2rem 0.8rem;
    }

    .lang-text {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        gap: 2rem;
    }
}
