@import url('variables.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) var(--bg-secondary);
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.header__logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__logo-icon svg {
    width: 100%;
    height: 100%;
}

.header__logo-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

.header__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 100px;
    transition: all var(--transition-fast);
}

.header__cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
    }

    .header__inner {
        height: 64px;
    }
}

main {
    flex: 1;
    padding-top: 72px;
}

@media (max-width: 768px) {
    main {
        padding-top: 64px;
    }
}

.hero {
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.honeycomb {
    width: 100%;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, black 0%, transparent 70%);
}

.honeycomb__row {
    display: flex;
    gap: 8px;
}

.honeycomb__row--offset {
    margin-top: -20px;
}

.hex {
    width: 90px;
    height: 78px;
    background: var(--bg-secondary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
    transition: all var(--transition-base);
    cursor: default;
}

.hex:hover {
    background: var(--bg-card-hover);
    transform: scale(1.05);
}

.hex--empty {
    background: var(--border-color);
    opacity: 0.4;
}

.hex--empty:hover {
    transform: none;
    background: var(--border-color);
}

.hex--accent {
    background: var(--accent);
    color: #ffffff;
}

.hex--accent:hover {
    background: var(--accent-hover);
}

.code-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.code-keyword {
    color: var(--accent);
}

.code-func {
    color: #0891b2;
}

.code-string {
    color: #16a34a;
}

.code-prop {
    color: #dc2626;
}

.code-success {
    color: #16a34a;
}

@media (max-width: 768px) {
    .honeycomb {
        transform: scale(0.85);
        margin: 24px 0;
    }
}

@media (max-width: 550px) {
    .honeycomb {
        display: none;
    }
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero__tagline {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 100px;
}

.hero__title {
    font-size: clamp(44px, 9vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.hero__subtitle {
    font-size: clamp(17px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 100px;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.4);
}

.btn--secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn--secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-light);
}

@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 64px);
        padding: 60px 0;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}

.section {
    padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--section-padding-mobile) 0;
    }
}

.section__header {
    text-align: center;
    margin-bottom: 64px;
}

.section__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.services {
    background: var(--bg-secondary);
}

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

@media (max-width: 992px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    transition: all var(--transition-base);
}

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

.service-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card__description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.stats {
    background: var(--bg-primary);
    padding: 80px 0;
}

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

.stat-item {
    text-align: center;
}

.stat-item__number {
    display: block;
    font-size: clamp(40px, 6vw, 56px);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item__label {
    font-size: 15px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }

    .stats {
        padding: 60px 0;
    }
}

.process {
    background: var(--bg-secondary);
}

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

.process-step {
    text-align: center;
    padding: 32px 24px;
}

.process-step__number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 20px;
}

.process-step__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.process-step__description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .process__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .process__grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        padding: 24px 0;
    }
}

.process__grid .process-step:nth-child(1) { transition-delay: 0s; }
.process__grid .process-step:nth-child(2) { transition-delay: 0.1s; }
.process__grid .process-step:nth-child(3) { transition-delay: 0.2s; }
.process__grid .process-step:nth-child(4) { transition-delay: 0.3s; }

.tech {
    background: var(--bg-primary);
}

.tech__categories {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.tech-category__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.tech-category__items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tech-item:hover {
    border-color: var(--border-color);
    background: var(--bg-card);
}

.faq {
    background: var(--bg-secondary);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--border-light);
}

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

.faq-item__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-item__answer {
    max-height: 200px;
}

.faq-item__answer p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.locations {
    background: var(--bg-primary);
}

.locations__wrapper {
    position: relative;
}

.locations__line {
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 10%, var(--border-color) 90%, transparent 100%);
}

.locations__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.location-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    position: relative;
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.location-card__dot {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 3px solid var(--accent);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.location-card:hover .location-card__dot {
    background: var(--accent);
    transform: translateX(-50%) scale(1.2);
}

.location-card__flag {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 16px;
}

.location-card__city {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.location-card__country {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.location-card__timezone {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 12px;
    border-radius: 100px;
}

@media (max-width: 992px) {
    .locations__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }

    .locations__line {
        display: none;
    }

    .location-card__dot {
        display: none;
    }
}

@media (max-width: 500px) {
    .locations__grid {
        grid-template-columns: 1fr;
    }

    .location-card {
        padding: 28px 24px;
    }

    .location-card__flag {
        font-size: 40px;
    }
}

.locations__grid .location-card:nth-child(1) { transition-delay: 0s; }
.locations__grid .location-card:nth-child(2) { transition-delay: 0.1s; }
.locations__grid .location-card:nth-child(3) { transition-delay: 0.2s; }
.locations__grid .location-card:nth-child(4) { transition-delay: 0.3s; }

.cta {
    background: var(--bg-secondary);
    text-align: center;
}

.cta__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta__text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta__email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    background: var(--accent);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 100px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-accent);
}

.cta__email:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.4);
}

.footer {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    background: var(--bg-primary);
}

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

.footer__copy {
    color: var(--text-muted);
    font-size: 14px;
}

.footer__email {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__email:hover {
    color: var(--accent);
}

@media (max-width: 600px) {
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.services__grid .service-card:nth-child(1) { transition-delay: 0s; }
.services__grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services__grid .service-card:nth-child(3) { transition-delay: 0.2s; }

.tech-category__items .tech-item:nth-child(1) { transition-delay: 0s; }
.tech-category__items .tech-item:nth-child(2) { transition-delay: 0.05s; }
.tech-category__items .tech-item:nth-child(3) { transition-delay: 0.1s; }
.tech-category__items .tech-item:nth-child(4) { transition-delay: 0.15s; }
.tech-category__items .tech-item:nth-child(5) { transition-delay: 0.2s; }
