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

:root {
    --bg: #0a0a0a;
    --bg-2: #111111;
    --bg-3: #161616;
    --surface: #1a1a1a;
    --border: #262626;
    --border-2: #333333;
    --text: #f5f5f5;
    --text-2: #a3a3a3;
    --text-3: #6b6b6b;
    --white: #ffffff;
    --black: #000000;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --max: 1200px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ====== NOISE OVERLAY ====== */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn--primary {
    background: var(--white);
    color: var(--black);
}
.btn--primary:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.15);
}
.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-2);
}
.btn--ghost:hover {
    background: var(--surface);
    border-color: var(--text-3);
    transform: translateY(-2px);
}
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 18px 40px; font-size: 17px; }
.btn--block { width: 100%; }

/* ====== NAVIGATION ====== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
    padding: 12px 0;
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
}
.nav__logo-img { width: 32px; height: 32px; object-fit: contain; }
.nav__links {
    display: flex;
    gap: 32px;
    margin-left: auto;
    margin-right: 16px;
}
.nav__links a {
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav__burger span {
    width: 24px; height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* ====== HERO ====== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.2fr 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: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-2);
    font-weight: 500;
    margin-bottom: 28px;
}
.hero__title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}
.hero__title-line { display: block; }
.hero__title-sub {
    display: block;
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 400;
    color: var(--text-2);
    letter-spacing: -0.02em;
    margin-top: 8px;
}
.hero__desc {
    font-size: 18px;
    color: var(--text-2);
    max-width: 520px;
    margin-bottom: 36px;
}
.hero__actions {
    display: flex;
    gap: 14px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}
.hero__stats {
    display: flex;
    gap: 48px;
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-num {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.hero__stat-label {
    font-size: 14px;
    color: var(--text-3);
    margin-top: 2px;
}

/* Hero visual */
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero__logo-wrap {
    position: relative;
    width: 520px; height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__logo {
    width: 360px;
    height: 360px;
    object-fit: contain;
    /* smooth vector rendering */
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    filter:
        drop-shadow(0 0 60px rgba(255,255,255,0.35))
        drop-shadow(0 0 120px rgba(255,255,255,0.15));
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.hero__scroll {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.hero__scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--text-3), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ====== SECTION HEAD ====== */
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}
.section-head__tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}
.section-head__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}
.section-head__desc {
    font-size: 17px;
    color: var(--text-2);
}

/* ====== FEATURES ====== */
.features { padding: 120px 0; }
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    padding: 32px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.4s var(--ease);
}
.feature-card:hover {
    background: var(--bg-3);
    border-color: var(--border-2);
    transform: translateY(-4px);
}
.feature-card__icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--black);
    border-radius: 12px;
    margin-bottom: 20px;
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.feature-card p {
    font-size: 15px;
    color: var(--text-2);
}

/* ====== MODULES ====== */
.modules { padding: 120px 0; background: var(--bg-2); }
.modules__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.module-cat {
    padding: 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}
.module-cat:hover { border-color: var(--border-2); }
.module-cat__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-3);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.module-cat__list { display: flex; flex-direction: column; gap: 10px; }
.module-cat__list li {
    font-size: 15px;
    color: var(--text);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.module-cat__list li::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0.5;
}

/* ====== PRICING ====== */
.pricing { padding: 120px 0; }
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}
.price-card {
    padding: 36px 32px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: all 0.4s var(--ease);
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.price-card--featured {
    background: var(--bg-2);
    color: inherit;
    border-color: var(--border-2);
    box-shadow: 0 0 0 1px var(--border-2), 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(1.04);
}
.price-card--featured:hover { transform: scale(1.04) translateY(-4px); }
.price-card__badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--black);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.price-card__head { margin-bottom: 28px; }
.price-card__head h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.price-card__head p {
    font-size: 14px;
    color: var(--text-3);
    margin-top: 4px;
}
.price-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.price-card__amount {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -0.03em;
}
.price-card__period {
    font-size: 15px;
    color: var(--text-3);
}
.price-card__features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}
.price-card__features li {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-card__features li::before {
    content: '';
    width: 18px; height: 18px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ====== PAY MODAL ====== */
.pay-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pay-modal[hidden] { display: none; }
.pay-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: payFade 0.2s ease;
}
.pay-modal__window {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    padding: 36px 32px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    animation: payPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pay-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--text-3);
    cursor: pointer;
    transition: color 0.15s;
}
.pay-modal__close:hover { color: var(--text); }
.pay-modal__title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    color: var(--text);
}
.pay-modal__plan,
.pay-modal__sum {
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 6px;
}
.pay-modal__sum span,
.pay-modal__plan span {
    font-weight: 700;
    color: var(--text);
}
.pay-modal__methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0 18px;
}
.pay-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 14px;
    background: var(--bg);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.18s var(--ease);
    text-align: center;
    color: var(--text);
}
.pay-method:hover {
    border-color: var(--text-2);
    background: var(--bg-3);
    transform: translateY(-2px);
}
.pay-method__icon {
    width: 32px; height: 32px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pay-method__icon svg { width: 28px; height: 28px; }
.pay-method__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.pay-method__desc {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.3;
}
.pay-modal__note {
    font-size: 12px;
    color: var(--text-3);
    text-align: center;
    line-height: 1.5;
}
@keyframes payFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes payPop {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ====== FAQ ====== */
.faq { padding: 120px 0; background: var(--bg-2); }
.faq__list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    transition: border-color 0.3s;
}
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary {
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s;
    color: var(--text-2);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    margin-top: 14px;
    color: var(--text-2);
    font-size: 15px;
}

/* ====== CTA ====== */
.cta { padding: 120px 0; }
.cta__inner {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}
.cta__inner::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.cta__logo {
    width: 72px; height: 72px;
    margin: 0 auto 24px;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
    position: relative;
}
.cta__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    position: relative;
}
.cta__desc {
    font-size: 17px;
    color: var(--text-2);
    margin-bottom: 32px;
    position: relative;
}
.cta .btn { position: relative; }

/* ====== FOOTER ====== */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
}
.footer__logo { width: 28px; height: 28px; }
.footer__links {
    display: flex;
    gap: 24px;
}
.footer__links a {
    font-size: 14px;
    color: var(--text-2);
    transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }
.footer__social {
    display: flex;
    gap: 12px;
}
.footer__social a {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-2);
    transition: all 0.3s;
}
.footer__social a:hover {
    color: var(--text);
    border-color: var(--border-2);
    transform: translateY(-2px);
}
.footer__social svg { width: 18px; height: 18px; }
.footer__copy {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ====== ANIMATIONS ====== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 960px) {
    .nav__links { display: none; }
    .nav__burger { display: flex; }
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__visual { order: -1; }
    .hero__logo-wrap { width: 360px; height: 360px; }
    .hero__logo { width: 260px; height: 260px; }
    .hero__desc { margin-left: auto; margin-right: auto; }
    .hero__actions, .hero__stats { justify-content: center; }
    .features__grid, .modules__grid { grid-template-columns: repeat(2, 1fr); }
    .pricing__grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .price-card--featured { transform: none; }
    .price-card--featured:hover { transform: translateY(-4px); }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .features__grid, .modules__grid { grid-template-columns: 1fr; }
    .hero__stats { gap: 28px; }
    .hero__stat-num { font-size: 26px; }
    .footer__inner { flex-direction: column; text-align: center; }
    .footer__links { flex-wrap: wrap; justify-content: center; }
    .cta__inner { padding: 56px 24px; }
    .features, .modules, .pricing, .faq, .cta { padding: 80px 0; }
}