/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.logo__image{
max-width: 250px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
.text-accent {
    color: #000;
    position: relative;
    display: inline-block;
}

.text-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 4px;
    background: #000;
    opacity: 0.15;
    border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid #000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: #000;
    color: #fff;
}

.btn--primary:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn--outline {
    background: transparent;
    color: #000;
}

.btn--outline:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

.btn--large {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.btn--small {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.header--scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #000;
}

.logo__icon {
    flex-shrink: 0;
}

.logo__text {
    letter-spacing: -0.5px;
}

.logo__accent {
    color: #555;
}

/* ===== NAVIGATION ===== */
.nav__list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: #000;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    padding: 10px 24px;
    background: #000;
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: #333;
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__visual {
    display: flex;
    justify-content: center;
}

.hero__code-block {
    background: #111;
    border-radius: 12px;
    padding: 32px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 2;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    width: 100%;
    max-width: 440px;
}

.code-line { color: #ccc; }
.code-keyword { color: #ff79c6; }
.code-class { color: #50fa7b; }
.code-func { color: #f1fa8c; }
.code-string { color: #f1fa8c; }
.code-indent-1 { padding-left: 24px; }
.code-indent-2 { padding-left: 48px; }

/* ===== SECTIONS ===== */
.section {
    padding: 120px 0;
}

.section--dark {
    background: #f8f8f8;
}

.section__header {
    text-align: center;
    margin-bottom: 64px;
}

.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.section__desc {
    color: #555;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 16px auto 0;
    line-height: 1.7;
}

/* ===== ABOUT ===== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__text p {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.about__stats li {
    text-align: center;
    padding: 24px 16px;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #eee;
}

.about__stats strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 4px;
}

.about__stats span {
    font-size: 0.85rem;
    color: #666;
}

.about__card {
    background: #000;
    color: #fff;
    padding: 48px 40px;
    border-radius: 16px;
}

.about__card-icon {
    margin-bottom: 24px;
    opacity: 0.6;
}

.about__card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.about__card p {
    color: #aaa;
    line-height: 1.7;
}

/* ===== SERVICES ===== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 40px 32px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #ccc;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.service-card__icon {
    margin-bottom: 20px;
    color: #333;
}

.service-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card__desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
}

.service-card--highlight {
    background: #000;
    border-color: #000;
    color: #fff;
}

.service-card--highlight .service-card__icon {
    color: #fff;
}

.service-card--highlight .service-card__desc {
    color: #aaa;
}

.service-card--highlight .btn--small {
    background: #fff;
    color: #000;
    border-color: #fff;
    margin-top: 20px;
}

.service-card--highlight .btn--small:hover {
    background: #ddd;
}

/* ===== TECHNOLOGIES ===== */
.tech__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 16px;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item:hover {
    border-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.tech-item__icon {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tech-item:hover .tech-item__icon {
    opacity: 1;
}

.tech-item__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
}

/* ===== PROCESS ===== */
.process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    text-align: center;
    padding: 40px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: #ccc;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.process-step__number {
    display: inline-block;
    font-size: 3rem;
    font-weight: 800;
    color: #ddd;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.process-step__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.process-step__desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 48px;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form__group {
    margin-bottom: 20px;
}

.contact-form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact-form__input {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    color: #111;
    transition: all 0.3s ease;
    outline: none;
}

.contact-form__input:focus {
    border-color: #000;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.04);
}

.contact-form__input::placeholder {
    color: #aaa;
}

.contact-form__textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form__footer {
    text-align: center;
}

.contact-form__note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: #888;
}

.contact-form__success {
    text-align: center;
    padding: 48px 24px;
}

.contact-form__success svg {
    margin-bottom: 24px;
}

.contact-form__success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-form__success p {
    color: #666;
}

/* ===== FOOTER ===== */
.footer {
    background: #111;
    color: #fff;
    padding: 80px 0 32px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid #222;
    margin-bottom: 32px;
}

.footer__brand .logo__text {
    font-size: 1.4rem;
}

.footer__brand p {
    color: #777;
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer__links h4,
.footer__contact h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #777;
    margin-bottom: 20px;
}

.footer__links ul li {
    margin-bottom: 10px;
}

.footer__links ul li a {
    color: #aaa;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer__links ul li a:hover {
    color: #fff;
}

.footer__contact p {
    margin-bottom: 10px;
}

.footer__contact p a {
    color: #aaa;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer__contact p a:hover {
    color: #fff;
}

.footer__bottom {
    text-align: center;
}

.footer__bottom p {
    color: #555;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav__list {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid #eee;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav__list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__toggle {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__visual {
        display: none;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .tech__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process__grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section {
        padding: 80px 0;
    }

    .hero {
        padding: 100px 0 60px;
    }
}

@media (max-width: 480px) {
    .about__stats {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    max-width: 400px;
    width: calc(100% - 64px);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.toast:not(.toast--hidden) {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.toast--hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.toast__inner {
    background: #111;
    color: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.toast__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #4ade80;
    margin-top: 2px;
}

.toast__content {
    flex: 1;
    min-width: 0;
}

.toast__title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.toast__message {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
}

.toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
}

.toast__progress-bar {
    height: 100%;
    background: #4ade80;
    width: 100%;
    transition: width 4s linear;
}

@media (max-width: 480px) {
    .toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}

/* ===== ERROR / SUCCESS STATES ===== */
.contact-form__input.error {
    border-color: #e74c3c;
    background: #fff5f5;
}

.contact-form__error-msg {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 4px;
}
