/* ── Reset & Base ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    --bg-dark:      #060D1A;
    --bg-navy:      #0A1628;
    --bg-card:      #0D1B30;
    --bg-light:     #F7F9FC;
    --accent:       #4B8BF5;
    --accent-glow:  rgba(75, 139, 245, 0.14);
    --teal:         #00D4AA;
    --teal-glow:    rgba(0, 212, 170, 0.14);
    --text:         #E2E8F4;
    --text-muted:   #7A8FA8;
    --border:       rgba(255, 255, 255, 0.07);
    --border-card:  rgba(255, 255, 255, 0.06);
    --nav-h:        68px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #3a7ae0;
    box-shadow: 0 4px 20px rgba(75, 139, 245, 0.35);
    transform: translateY(-1px);
}

.btn-primary--dark {
    background: var(--accent);
    color: #fff;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 13px 24px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}

.btn-ghost:hover {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    background: rgba(255,255,255,0.05);
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 999;
    background: transparent;
    transition: background 0.3s ease, border-bottom 0.3s ease;
}

.navbar--scrolled {
    background: rgba(6, 13, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    z-index: 1001;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
    font-weight: 400;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
    margin-left: 8px;
    transition: background 0.2s !important;
}

.nav-cta:hover { background: #3a7ae0 !important; }

/* ── Language Switcher ── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 3px;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 4px 9px;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}

.lang-btn:hover { color: rgba(255,255,255,0.85); }

.lang-btn--active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.lang-sep {
    color: rgba(255,255,255,0.2);
    font-size: 0.7rem;
    user-select: none;
}

/* Mobile language switcher */
.mobile-lang-switcher {
    display: flex;
    gap: 8px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-lang-switcher .lang-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: rgba(255,255,255,0.65);
}

.mobile-lang-switcher .lang-btn--active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.mobile-lang-switcher .lang-sep { display: none; }

/* ── Hamburger ── */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav ── */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-navy);
    z-index: 1000;
    padding: calc(var(--nav-h) + 24px) 32px 40px;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    font-weight: 400;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    display: block;
    transition: color 0.2s;
}

.mobile-nav-link:hover { color: #fff; }

.mobile-nav-cta {
    margin-top: 24px;
    color: var(--accent) !important;
    font-weight: 600;
    border: none !important;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
    padding: calc(var(--nav-h) + 60px) 32px 80px;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 40%, rgba(75, 139, 245, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 20% 70%, rgba(0, 212, 170, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(75, 139, 245, 0.05) 0%, transparent 60%);
    animation: mesh-shift 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes mesh-shift {
    0%   { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.05); }
}

.hero-content {
    position: relative;
    max-width: 820px;
    z-index: 1;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(75, 139, 245, 0.2);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 32px;
}

.hero-headline {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-scroll-hint span {
    display: block;
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    position: relative;
}

.hero-scroll-hint span::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
    animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50%       { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ── Section Common ── */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Services ── */
.services-section {
    background: var(--bg-navy);
    padding: 100px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 36px 32px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    border-color: rgba(75, 139, 245, 0.25);
    box-shadow: 0 8px 40px rgba(75, 139, 245, 0.08);
    transform: translateY(-3px);
}

.service-card--ai {
    border-color: rgba(0, 212, 170, 0.12);
}

.service-card--ai:hover {
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 8px 40px rgba(0, 212, 170, 0.08);
}

.service-card-ai-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--teal-glow);
    border: 1px solid rgba(0,212,170,0.2);
    padding: 3px 10px;
    border-radius: 100px;
}

.service-icon {
    width: 44px;
    height: 44px;
    color: var(--accent);
    margin-bottom: 24px;
}

.service-card--ai .service-icon { color: var(--teal); }

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

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tags li {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

/* ── About ── */
.about-section {
    background: var(--bg-light);
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text { opacity: 0; transform: translateY(20px); }
.about-stack { opacity: 0; transform: translateY(20px); }

.about-text.visible, .about-stack.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-stack.visible { transition-delay: 0.15s; }

.about-text .section-tag { color: #3a7ae0; }

.about-text h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #0A1628;
    line-height: 1.25;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 0.95rem;
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text .btn-primary--dark { margin-top: 8px; }

.stack-group {
    margin-bottom: 28px;
}

.stack-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8899AA;
    margin-bottom: 12px;
}

.stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 6px;
    white-space: nowrap;
}

.badge--blue {
    color: #2563EB;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.badge--slate {
    color: #475569;
    background: rgba(71, 85, 105, 0.08);
    border: 1px solid rgba(71, 85, 105, 0.18);
}

.badge--teal {
    color: #0D9488;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.18);
}

/* ── Contact ── */
.contact-section {
    background: var(--bg-dark);
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section-header--light h2 { color: #fff; }

.section-tag--dim { color: rgba(75,139,245,0.8); }

.section-sub--dim { color: var(--text-muted); }

.contact-form {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 48px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group--full { margin-bottom: 20px; }

.form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A8FA8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group select option { background: #0D1B30; color: var(--text); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(75,139,245,0.5);
    background: rgba(75,139,245,0.04);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Button loading state */
.btn-loading {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-primary.loading .btn-label { display: none; }
.btn-primary.loading .btn-loading { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

.form-status--success { color: var(--teal); }
.form-status--error { color: #FC8181; }

/* reCAPTCHA — hide the floating badge; disclosure text is shown in the form instead */
.grecaptcha-badge { visibility: hidden; }

.recaptcha-notice {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    margin-top: 12px;
    line-height: 1.5;
}
.recaptcha-notice a { color: rgba(255,255,255,0.5); text-decoration: underline; }
.recaptcha-notice a:hover { color: rgba(255,255,255,0.75); }

/* Honeypot — must be visually hidden but NOT display:none (bots ignore those) */
.oh-no-honey {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    z-index: -1;
}

/* ── Footer ── */
.footer {
    background: var(--bg-navy);
    border-top: 1px solid var(--border);
    padding: 28px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-logo {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: -0.01em;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .hero { padding: calc(var(--nav-h) + 40px) 24px 60px; }

    .section-container { padding: 0 24px; }

    .services-section,
    .about-section,
    .contact-section { padding: 72px 0; }

    .section-header { margin-bottom: 40px; }

    .contact-form {
        padding: 32px 24px;
    }

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

    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 1.85rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
    .footer-inner { flex-direction: column; text-align: center; }
}
