/* -----------------------------------------
   RESET & BASE
----------------------------------------- */

:root {
    --primary: #0f0f1a;
    --secondary: #00eaff;
    --accent: #ff2d75;
    --dark: #05050a;
    --light: #e6e6f0;
    --text: #c7c7d5;
    --muted: #8a8a96;

    --success: #00ff9d;
    --warning: #ffcc00;

    --glow-blue: 0 0 12px rgba(0, 234, 255, 0.55);
    --glow-accent: 0 0 12px rgba(255, 45, 117, 0.55);

    --radius-lg: 14px;
    --radius-md: 8px;

    --shadow-soft: 0 6px 25px rgba(0,0,0,0.3);
    --shadow-hard: 0 12px 35px rgba(0,0,0,0.5);

    --transition: 0.25s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Rajdhani', sans-serif;
}

body {
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;

    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 45, 117, 0.07) 0%, transparent 40%);
}

/* -----------------------------------------
   GLOBAL CONTAINERS
----------------------------------------- */

.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.4rem;
    background: linear-gradient(to right, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* -----------------------------------------
   HEADER
----------------------------------------- */

header {
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(14px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: var(--shadow-soft);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 0;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-blue);
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    margin-left: 12px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* NAV */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--light);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

nav ul li a:hover {
    color: #fff;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* -----------------------------------------
   HERO
----------------------------------------- */

.hero {
    padding: 15rem 0 9rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(to right, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    max-width: 820px;
    margin: 1.4rem auto 2rem;
    color: var(--light);
}

/* BUTTONS */

.btn {
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #ff5e9c);
    color: #fff;
    box-shadow: var(--glow-accent);
}

.btn-accent:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(255, 45, 117, 0.55);
}

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

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.15);
    transform: translateY(-4px);
}

/* -----------------------------------------
   FEATURES GRID
----------------------------------------- */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.features-section {
    padding: 8rem 0;
}

.feature-card {
    background: rgba(20, 20, 35, 0.75);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 240, 255, 0.12);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-hard);
}

.feature-img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 1.4rem;
    border: 1px solid rgba(0, 240, 255, 0.15);
}

/* -----------------------------------------
   HOW IT WORKS
----------------------------------------- */

.how-it-works {
    padding: 8rem 0;
    text-align: center;
}

.team-photo {
    width: 480px;
    max-width: 90%;
    border-radius: var(--radius-lg);
    margin: 2rem auto;
    display: block;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.timeline {
    margin-top: 4rem;
    display: grid;
    gap: 2rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    background: rgba(20, 20, 35, 0.75);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 240, 255, 0.12);
    text-align: left;
}

/* -----------------------------------------
   SECURITY AUDIT
----------------------------------------- */

.security-audit {
    padding: 8rem 0;
}

/* -----------------------------------------
   PRICING
----------------------------------------- */

.pricing-section {
    padding: 8rem 0;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: rgba(20, 20, 35, 0.75);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 240, 255, 0.12);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.pricing-card.popular {
    border: 1px solid var(--accent);
    transform: scale(1.03);
}

.popular-badge {
    background: var(--accent);
    color: #fff;
    padding: 0.3rem 1rem;
    display: inline-block;
    font-weight: 700;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.screenshot {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

/* -----------------------------------------
   COMPLIANCE
----------------------------------------- */

.compliance {
    padding: 8rem 0;
    text-align: center;
}

.bullet-list {
    text-align: left;
    max-width: 540px;
    margin: 2rem auto;
    list-style: none;
}

.bullet-list li {
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;
    position: relative;
}

.bullet-list li::before {
    content: "•";
    color: var(--secondary);
    position: absolute;
    left: 0;
}

/* -----------------------------------------
   TESTIMONIALS
----------------------------------------- */

.testimonials {
    padding: 8rem 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial {
    background: rgba(20, 20, 35, 0.75);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 240, 255, 0.12);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 2px solid var(--secondary);
}

/* -----------------------------------------
   FAQ
----------------------------------------- */

.faq-section {
    padding: 8rem 0;
    text-align: center;
}

.faq {
    max-width: 720px;
    margin: 2rem auto;
}

.faq-item {
    background: rgba(20, 20, 35, 0.75);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 240, 255, 0.12);
    transition: var(--transition);
    margin-bottom: 1rem;
}

.faq-item.active {
    border-color: var(--secondary);
}

.faq-question {
    font-weight: 700;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

/* -----------------------------------------
   SEO SUMMARY
----------------------------------------- */

.seo-summary {
    padding: 4rem 0;
    text-align: center;
    color: var(--muted);
}

/* -----------------------------------------
   FOOTER
----------------------------------------- */

footer {
    padding: 5rem 0;
    background: #0a0a12;
    border-top: 1px solid rgba(0, 240, 255, 0.15);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 1.2rem;
}

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

.footer-column ul li {
    margin-bottom: 0.6rem;
}

.footer-column ul li a {
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: #fff;
    transform: translateX(4px);
}

.social-links a {
    margin-right: 0.6rem;
    color: var(--secondary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: #fff;
}

/* -----------------------------------------
   RESPONSIVE
----------------------------------------- */

@media (max-width: 1024px) {
    .features,
    .pricing-cards,
    .testimonial-grid,
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 6px 12px;
    }

    .features,
    .pricing-cards,
    .testimonial-grid,
    .footer-content {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ---------- FIX MIXING PLANS LAYOUT ---------- */

/* Выровнять высоту карточек */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

/* Каждая карточка теперь — flex-column */
.pricing-card {
    display: flex;
    flex-direction: column;
}

/* Картинки становятся одинаковой высоты */
.pricing-card .screenshot {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

/* Чтобы контент прижимал кнопку вниз */
.pricing-card ul {
    margin-top: auto;
    margin-bottom: 2rem;
}

/* Кнопка всегда внизу */
.pricing-card a.btn,
.pricing-card a.btn-primary,
.pricing-card a.btn-outline {
    align-self: center;
    margin-top: auto;
}

/* Бейдж не ломает высоту */
.popular .popular-badge {
    display: inline-block;
    margin-bottom: 1rem;
    align-self: flex-start;
}

/* При hover карточки НЕ съезжают */
.pricing-card:hover {
    transform: translateY(-6px);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-card .screenshot {
        height: 220px;
    }
}
