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

:root {
    --purple: #9827FC;
    --purple-dark: #7330DE;
    --blue: #0027CC;
    --blue-mid: #4D7EE0;
    --cyan: #0DC9C9;
    --bg: #0A0A0F;
    --bg-card: #12121A;
    --bg-card-hover: #1A1A28;
    --bg-surface: #16161F;
    --text: #E8E8EC;
    --text-muted: #8A8A9A;
    --text-dim: #5A5A6E;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --gradient-main: linear-gradient(135deg, #9827FC 0%, #4D7EE0 50%, #0DC9C9 100%);
    --gradient-accent: linear-gradient(135deg, #9827FC 0%, #0027CC 100%);
    --gradient-glow: radial-gradient(circle, rgba(152, 39, 252, 0.15) 0%, transparent 70%);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(152, 39, 252, 0.08);
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ===== TYPOGRAPHY ===== */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--cyan);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 48px;
    line-height: 1.8;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.btn--primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 24px rgba(152, 39, 252, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(152, 39, 252, 0.45);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn--ghost:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: rgba(152, 39, 252, 0.05);
}

.btn--full {
    width: 100%;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo-img {
    width: 36px;
    height: 36px;
}

.header__logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
    border-radius: 1px;
}

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

.header__link:hover::after {
    width: 100%;
}

.header__link--cta {
    background: var(--gradient-main);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.header__link--cta::after {
    display: none;
}

.header__link--cta:hover {
    box-shadow: 0 4px 20px rgba(152, 39, 252, 0.4);
    transform: translateY(-1px);
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

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

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero__glow--1 {
    width: 600px;
    height: 600px;
    background: rgba(152, 39, 252, 0.12);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero__glow--2 {
    width: 500px;
    height: 500px;
    background: rgba(13, 201, 201, 0.08);
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(152, 39, 252, 0.1);
    border: 1px solid rgba(152, 39, 252, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--purple);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease;
}

.hero__title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero__subtitle {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-number {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero__stat-plus {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__stat-label {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ABOUT ===== */
.about {
    padding: 120px 0;
}

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

.about__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.about__card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.about__card:hover::before {
    transform: scaleX(1);
}

.about__card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(152, 39, 252, 0.08);
    border-radius: 12px;
    margin-bottom: 20px;
}

.about__card-icon svg {
    display: block;
}

.about__card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.about__card-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== SERVICES ===== */
.services {
    padding: 120px 0;
    background: var(--bg-surface);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.service-card__number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 60px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    letter-spacing: -0.05em;
}

.service-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(152, 39, 252, 0.08);
    border-radius: 12px;
    margin-bottom: 20px;
}

.service-card__icon svg {
    display: block;
}

.service-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.service-card__text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-card__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card__features li {
    font-size: 13px;
    color: var(--text-dim);
    padding-left: 20px;
    position: relative;
}

.service-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-main);
}

/* ===== PROCESS ===== */
.process {
    padding: 120px 0;
}

.process__timeline {
    position: relative;
    max-width: 700px;
}

.process__timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--purple), var(--cyan));
    opacity: 0.3;
}

.process__step {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.process__step:last-child {
    margin-bottom: 0;
}

.process__step-number {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid rgba(152, 39, 252, 0.3);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.process__step-number::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--bg);
    z-index: -2;
}

.process__step-number::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--bg-card);
    z-index: -1;
}

.process__step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.process__step-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== CASES ===== */
.cases {
    padding: 120px 0;
    background: var(--bg-surface);
}

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

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
}

.case-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.case-card__industry {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cyan);
    background: rgba(13, 201, 201, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.case-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.case-card__text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.case-card__results {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.case-card__result {
    display: flex;
    flex-direction: column;
}

.case-card__result-value {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.case-card__result-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ===== TEAM ===== */
.team {
    padding: 120px 0;
}

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

.team__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    transition: var(--transition);
}

.team__card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.team__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 20px;
}

.team__name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.team__role {
    font-size: 14px;
    color: var(--cyan);
    font-weight: 500;
    margin-bottom: 16px;
}

.team__bio {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== TRUST ===== */
.trust {
    padding: 80px 0;
    background: var(--bg-surface);
}

.trust__inner {
    text-align: center;
}

.trust__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.trust__desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.trust__logos {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust__logo-placeholder {
    padding: 12px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== FAQ ===== */
.faq {
    padding: 120px 0;
}

.faq__list {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq__item:hover {
    border-color: var(--border-hover);
}

.faq__item.active {
    border-color: rgba(152, 39, 252, 0.2);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq__icon {
    font-size: 22px;
    color: var(--purple);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item.active .faq__answer {
    max-height: 300px;
}

.faq__answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== CONTACT ===== */
.contact {
    padding: 120px 0;
    background: var(--bg-surface);
}

.contact__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.contact__content .section-desc {
    margin-left: auto;
    margin-right: auto;
}

.form-status {
    font-size: 14px;
    padding: 8px 0;
    text-align: center;
    color: var(--cyan);
}

.form-status.error {
    color: #f44;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact__input,
.contact__textarea {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
    color: var(--text-dim);
}

.contact__input:focus,
.contact__textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(152, 39, 252, 0.1);
}

.contact__textarea {
    resize: vertical;
    min-height: 120px;
}

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

.footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 64px;
    padding-bottom: 48px;
}

.footer__logo {
    display: flex;
    align-items: center;
}

.footer__logo-img {
    width: 100px;
    height: 100px;
}

.footer__logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.footer__tagline {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 300px;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.footer__link {
    font-size: 14px;
    color: var(--text-dim);
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--purple);
}

.footer__bottom {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer__bottom p {
    font-size: 13px;
    color: var(--text-dim);
}

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
    .about__grid,
    .services__grid,
    .cases__grid,
    .team__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-left: 1px solid var(--border);
    }

    .header__nav.open {
        right: 0;
    }

    .header__burger {
        display: flex;
        z-index: 1001;
    }

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

    .header__burger.active span:nth-child(2) {
        opacity: 0;
    }

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

    .about__grid,
    .services__grid,
    .cases__grid,
    .team__grid {
        grid-template-columns: 1fr;
    }

    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact__form-row {
        grid-template-columns: 1fr;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__links {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__title {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero__subtitle {
        font-size: 17px;
    }

    .section-title {
        font-size: clamp(28px, 6vw, 40px);
    }
}

@media (max-width: 480px) {
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero__stat-number {
        font-size: 32px;
    }

    .footer__links {
        grid-template-columns: 1fr;
    }

    .process__step {
        gap: 20px;
    }

    .process__step-number {
        width: 48px;
        height: 48px;
        font-size: 14px;
    }

    .process__timeline::before {
        left: 23px;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
