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

:root {
    --primary: #26323E;
    --primary-dark: #1a242d;
    --primary-light: #4a6275;
    --accent: #344553;
    --bg: #FAFBFD;
    --bg-white: #FFFFFF;
    --bg-dark: #121a22;
    --bg-card: #FFFFFF;
    --text: #1a2530;
    --text-secondary: #4a5568;
    --text-muted: #8896a4;
    --border: #e2e6eb;
    --border-light: #f0f2f5;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(38,50,62,0.06);
    --shadow-md: 0 4px 16px rgba(38,50,62,0.08);
    --shadow-lg: 0 12px 40px rgba(38,50,62,0.1);
    --shadow-glow: 0 0 60px rgba(38,50,62,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--small {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn--large {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--radius);
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(38,50,62,0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(38,50,62,0.4);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--primary);
    background: rgba(38,50,62,0.04);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250,251,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo__img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.logo__img--sm {
    width: 36px;
    height: 36px;
}

.logo__text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo__highlight {
    color: var(--primary);
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.btn {
    color: #fff;
    background: var(--primary);
    padding: 8px 22px;
    border-radius: var(--radius-sm);
}

.nav-link.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(38,50,62,0.3);
}

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

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, #e8ecf0 100%);
}

.hero__bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape--1 {
    width: 500px;
    height: 500px;
    background: rgba(38,50,62,0.12);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape--2 {
    width: 400px;
    height: 400px;
    background: rgba(52,69,83,0.10);
    bottom: -50px;
    left: -80px;
    animation: float 25s ease-in-out infinite reverse;
}

.shape--3 {
    width: 300px;
    height: 300px;
    background: rgba(38,50,62,0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 15s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.25; }
}

.hero__inner {
    position: relative;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(38,50,62,0.06);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 28px;
    border: 1px solid rgba(38,50,62,0.12);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero__title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text);
}

.gradient-text {
    color: var(--primary);
}

.hero__description {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero__description--sub {
    margin-bottom: 40px;
}

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

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

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

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

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(38,50,62,0.15);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(38,50,62,0.06);
    border-radius: var(--radius);
    margin-bottom: 20px;
    color: var(--primary);
}

.service-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.service-card__desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* ===== ABOUT ===== */
.about {
    padding: 100px 0;
    background: linear-gradient(180deg, #edf0f4 0%, var(--bg) 100%);
}

.about__content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about__content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about__content p:last-child {
    margin-bottom: 0;
}

.about__android {
    font-size: 0.92rem !important;
    color: var(--text-muted) !important;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    margin-top: 12px !important;
}

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

.contact__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(38,50,62,0.15);
}

.contact-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    background: rgba(38,50,62,0.06);
    border-radius: var(--radius);
    color: var(--primary);
}

.contact-card__label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.contact-card__value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
}

a.contact-card__value:hover {
    color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: #b0bcc8;
    padding: 60px 0 0;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
}

.footer__brand {
    max-width: 360px;
}

.footer__brand .logo__text {
    color: #fff;
}

.footer__brand .logo__highlight {
    color: var(--primary-light);
}

.footer__tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #7a8a98;
    margin-top: 16px;
}

.footer__links {
    display: flex;
    gap: 60px;
}

.footer__col-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 18px;
}

.footer__col ul li {
    margin-bottom: 10px;
}

.footer__col ul li a,
.footer__col ul li {
    font-size: 0.9rem;
    color: #7a8a98;
}

.footer__col ul li a:hover {
    color: var(--primary-light);
}

.footer__divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__copy {
    font-size: 0.85rem;
    color: #5a6a78;
}

.footer__developer-note {
    font-size: 0.8rem;
    color: #4a5a68;
}

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

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250,251,255,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-light);
        transform: translateY(-120%);
        transition: var(--transition);
        opacity: 0;
        pointer-events: none;
    }

    .header__nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 130px 0 80px;
    }

    .hero__title {
        font-size: 2rem;
    }

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

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

    .footer__top {
        flex-direction: column;
        gap: 40px;
    }

    .footer__links {
        gap: 40px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.75rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

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

    .footer__links {
        flex-direction: column;
        gap: 30px;
    }
}
