/* ═══════════════════════════════════════════════════════════
   VARIABLES
═══════════════════════════════════════════════════════════ */
:root {
    --bg:           #080808;
    --surface:      #0f0f0f;
    --surface-2:    #161616;
    --border:       #1c1c1c;
    --border-2:     #252525;
    --text:         #f0f0f0;
    --text-muted:   #555;
    --text-dim:     #2a2a2a;
    --red:          #e63946;
    --red-dim:      rgba(230, 57, 70, 0.10);
    --red-glow:     rgba(230, 57, 70, 0.22);
    --font-mono:    'JetBrains Mono', monospace;
    --font-sans:    'Inter', sans-serif;
    --radius:       10px;
    --radius-lg:    16px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.red { color: var(--red); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn--primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn--primary:hover {
    background: transparent;
    color: var(--red);
    box-shadow: 0 0 24px var(--red-glow);
}

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-2);
}
.btn--ghost:hover {
    color: var(--text);
    border-color: #3a3a3a;
}

.btn--full  { width: 100%; }
.btn--lg    { padding: 16px 40px; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 48px;
    transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s, padding 0.35s;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    padding: 14px 48px;
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: var(--border);
}

.nav__logo {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}
.nav__logo:hover { opacity: 0.75; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav__links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

.nav__cta {
    padding: 8px 22px !important;
    border: 1px solid var(--red) !important;
    border-radius: var(--radius) !important;
    color: var(--red) !important;
    transition: background 0.2s, color 0.2s !important;
}
.nav__cta:hover {
    background: var(--red) !important;
    color: #fff !important;
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav__burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 130px 28px 100px;
    overflow: hidden;
}

/* Background layers */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 100%);
}

.hero__glow {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(230, 57, 70, 0.07) 0%, transparent 65%);
}

/* Content */
.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 780px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    border: 1px solid var(--border-2);
    border-radius: 100px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--surface);
}

.hero__badge-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 6px var(--red);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--red); }
    50%       { opacity: 0.5; box-shadow: 0 0 2px var(--red); }
}

.hero__title {
    font-family: var(--font-mono);
    font-size: clamp(4rem, 11vw, 7.5rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
    color: #fff;
}

.cursor {
    color: var(--red);
    animation: blink 1.1s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero__subtitle {
    font-size: clamp(0.975rem, 2.5vw, 1.175rem);
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Stats */
.hero__stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.stat { text-align: center; }

.stat__value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
}

.stat__label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat__sep {
    width: 1px;
    height: 36px;
    background: var(--border-2);
}

/* Scroll hint */
.hero__scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--red), transparent);
    margin: 0 auto;
    animation: scrollDrop 2.2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollDrop {
    0%         { transform: scaleY(0); opacity: 0; }
    30%, 70%   { transform: scaleY(1); opacity: 1; }
    100%       { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

/* ═══════════════════════════════════════════════════════════
   SECTION COMMON
═══════════════════════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--red);
    letter-spacing: 0.04em;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════════ */
.features {
    padding: 130px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature-card {
    grid-column: span 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Red top shimmer on hover */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--red) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.feature-card:hover {
    border-color: var(--border-2);
    box-shadow: 0 4px 40px rgba(230, 57, 70, 0.06), 0 1px 0 0 var(--border-2);
}
.feature-card:hover::after { opacity: 1; }


/* Icon */
.feature-card__icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--red-dim);
    border: 1px solid rgba(230, 57, 70, 0.18);
    color: var(--red);
    transition: box-shadow 0.3s;
}
.feature-card:hover .feature-card__icon {
    box-shadow: 0 0 16px rgba(230, 57, 70, 0.2);
}
.feature-card__icon svg { width: 22px; height: 22px; }

.feature-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.feature-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.feature-card__desc {
    font-size: 0.855rem;
    color: var(--text-muted);
    line-height: 1.68;
}

.feature-card__list {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.feature-card__list li {
    font-size: 0.8rem;
    color: #444;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
    transition: color 0.2s;
}
.feature-card:hover .feature-card__list li { color: #666; }

.feature-card__list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--red);
    font-size: 0.7rem;
    top: 1px;
}

/* ═══════════════════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════════════════ */
.pricing {
    padding: 130px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pricing__wrap {
    display: flex;
    justify-content: center;
}

.pricing-card {
    width: 100%;
    max-width: 500px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    /* Glowing border via gradient overlay */
    border: 1px solid var(--border-2);
    box-shadow:
        0 0 0 1px rgba(230, 57, 70, 0.12),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(230, 57, 70, 0.04);
}

/* Top-left red corner accent */
.pricing-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 120px; height: 120px;
    border-radius: var(--radius-lg) 0 0 0;
    background: linear-gradient(135deg, rgba(230,57,70,0.25) 0%, transparent 65%);
    pointer-events: none;
}

.pricing-card__top {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-card__badge {
    align-self: flex-start;
    padding: 4px 14px;
    background: var(--red-dim);
    border: 1px solid rgba(230, 57, 70, 0.25);
    border-radius: 100px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--red);
    letter-spacing: 0.04em;
}

.pricing-card__name {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

.pricing-card__price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pricing-card__amount {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    letter-spacing: -0.04em;
}

.pricing-card__note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.pricing-card__divider {
    height: 1px;
    background: var(--border);
}

.pricing-card__features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--red-dim);
    border: 1px solid rgba(230, 57, 70, 0.25);
    color: var(--red);
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.contact { padding: 130px 0; }

.contact__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 64px 72px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* Background glow */
.contact__inner::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(230,57,70,0.07) 0%, transparent 65%);
    pointer-events: none;
}

.contact__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.contact__title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text);
}

.contact__desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 360px;
    line-height: 1.7;
}

.contact__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer__logo {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__copy {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer__nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer__nav a {
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer__nav a:hover {
    color: var(--text);
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer__tg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer__tg:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════
   ANIMATE ON SCROLL
═══════════════════════════════════════════════════════════ */
[data-aos] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-aos].aos-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
    .nav { padding: 18px 28px; }
    .nav.scrolled { padding: 12px 28px; }

    .nav__links { display: none; }
    .nav__burger { display: flex; }

    /* Mobile nav open */
    .nav.open .nav__links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--bg);
        align-items: center;
        justify-content: center;
        gap: 40px;
        z-index: 199;
    }
    .nav.open .nav__links a {
        font-size: 1.2rem;
        color: var(--text);
    }
    .nav.open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .nav.open .nav__burger span:nth-child(2) { opacity: 0; }
    .nav.open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    .features__grid {
        grid-template-columns: 1fr 1fr;
    }
    .feature-card { grid-column: span 1; }

    .contact__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 36px;
    }
}

@media (max-width: 600px) {
    .features__grid {
        grid-template-columns: 1fr;
    }
    .feature-card { grid-column: span 1; }

    .hero__stats { gap: 18px; }

    .pricing-card { padding: 32px 28px; }

    .contact__inner { padding: 36px 24px; }
    .contact__inner .btn--lg {
        width: 100%;
    }

    .footer__inner { flex-direction: column; gap: 12px; text-align: center; }
    .footer__brand { align-items: center; }
    .footer__nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }
}
