*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0f0f1a;
    --color-bg-light: #1a1a2e;
    --color-bg-card: #16213e;
    --color-primary: #4a00e0;
    --color-primary-light: #8e2de2;
    --color-accent: #6c63ff;
    --color-text: #e8e8f0;
    --color-text-muted: #9a9ab0;
    --color-text-dark: #1a1a2e;
    --color-border: #2a2a4a;
    --color-success: #22c55e;
    --color-danger: #ef4444;
    --color-white: #ffffff;
    --gradient: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(74, 0, 224, 0.15);
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

.hidden {
    display: none !important;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn--primary {
    background: var(--gradient);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(74, 0, 224, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(74, 0, 224, 0.5);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn--outline:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 16px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.nav__link:hover {
    color: var(--color-white);
}

.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 0, 224, 0.15), transparent 70%);
    pointer-events: none;
}

.hero__content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(74, 0, 224, 0.15);
    border: 1px solid rgba(74, 0, 224, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary-light);
    margin-bottom: 24px;
}

.hero__title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.stat__value {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat__label {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 48px;
}

.detector {
    padding: 80px 0;
}

.detector__box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.detector__input-area {
    position: relative;
}

.detector__textarea {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color var(--transition);
}

.detector__textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
}

.detector__textarea::placeholder {
    color: var(--color-text-muted);
}

.detector__counter {
    text-align: right;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.detector__btn {
    width: 100%;
    margin-top: 20px;
}

.detector__progress {
    margin-top: 32px;
}

.progress-bar {
    height: 6px;
    background: var(--color-bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-status {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.detector__result {
    margin-top: 32px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.result__chart {
    position: relative;
    flex-shrink: 0;
}

.result__circle {
    width: 120px;
    height: 120px;
}

.result__percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.result__percent-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--color-success);
}

.result__percent-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result__details {
    flex: 1;
}

.result__verdict {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-success);
    margin-bottom: 24px;
}

.result__bar-item {
    margin-bottom: 12px;
}

.result__bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

.result__bar-value {
    font-weight: 600;
}

.result__bar {
    height: 8px;
    background: var(--color-bg);
    border-radius: 4px;
    overflow: hidden;
}

.result__bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.result__bar-fill--ai {
    background: var(--color-danger);
}

.result__bar-fill--human {
    background: var(--color-success);
}

.result__metrics {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.result__metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result__metric-label {
    font-size: 12px;
    color: var(--color-text-muted);
}

.result__metric-value {
    font-size: 15px;
    font-weight: 700;
}

.how {
    padding: 80px 0;
}

.how__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.how__step {
    text-align: center;
    padding: 40px 24px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: transform var(--transition);
}

.how__step:hover {
    transform: translateY(-4px);
}

.how__step-num {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-white);
}

.how__step-icon {
    color: var(--color-primary-light);
    margin-bottom: 16px;
}

.how__step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.how__step p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.features {
    padding: 80px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 0, 224, 0.1);
    border-radius: var(--radius);
    color: var(--color-primary-light);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.pricing {
    padding: 80px 0;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    padding: 40px 32px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card--popular {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-card--popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 20px;
    background: var(--gradient);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-white);
    white-space: nowrap;
}

.pricing-card__name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.pricing-card__price {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.pricing-card__period {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}

.pricing-card__features {
    text-align: left;
    margin-bottom: 32px;
}

.pricing-card__features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card__features li::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-5' stroke='%2322c55e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-card .btn {
    width: 100%;
}

.footer {
    padding: 60px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer__desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 16px;
    line-height: 1.6;
}

.footer__heading {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    font-size: 14px;
    color: var(--color-text-muted);
}

.footer__links a:hover {
    color: var(--color-white);
}

.footer__contacts li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.footer__contacts a:hover {
    color: var(--color-white);
}

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Legal pages */
.legal-page {
    padding: 120px 0 80px;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.legal-page .legal-date {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-page h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-page p {
    margin-bottom: 12px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.legal-page ul,
.legal-page ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-page li {
    margin-bottom: 8px;
    color: var(--color-text-muted);
    line-height: 1.6;
    list-style: disc;
}

.legal-page ol li {
    list-style: decimal;
}

.legal-page strong {
    color: var(--color-text);
    font-weight: 600;
}

.legal-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.legal-page th,
.legal-page td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--color-border);
    font-size: 14px;
}

.legal-page th {
    background: var(--color-bg-light);
    font-weight: 600;
    color: var(--color-text);
}

.legal-page td {
    color: var(--color-text-muted);
}

/* Contacts page */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.contact-card {
    padding: 32px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.contact-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 0, 224, 0.1);
    border-radius: var(--radius);
    color: var(--color-primary-light);
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.contact-card a:hover {
    color: var(--color-primary-light);
}

.contact-form {
    margin-top: 48px;
    padding: 40px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.contact-form h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 42px;
    }

    .hero__stats {
        gap: 40px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav__burger {
        display: flex;
    }

    .nav__list {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-bg-light);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
    }

    .nav__list.active {
        display: flex;
    }

    .nav__link {
        display: block;
        padding: 12px 24px;
    }

    .hero {
        padding: 110px 0 60px;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .hero__stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .how__grid,
    .features__grid,
    .pricing__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card--popular {
        transform: none;
    }

    .pricing-card--popular:hover {
        transform: translateY(-4px);
    }

    .detector__result {
        flex-direction: column;
        align-items: center;
    }

    .result__details {
        width: 100%;
    }

    .result__metrics {
        flex-wrap: wrap;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .legal-page h1 {
        font-size: 28px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.5s ease forwards;
}
