/* ──────────────────────────────────────────
   TOKENS
────────────────────────────────────────── */
:root {
    --blue:        #2563eb;
    --blue-dark:   #1d4ed8;
    --blue-light:  #dbeafe;
    --blue-glow:   rgba(37, 99, 235, 0.15);
    --navy:        #0f172a;
    --gray-700:    #334155;
    --gray-500:    #64748b;
    --gray-300:    #cbd5e1;
    --gray-200:    #e2e8f0;
    --gray-100:    #f1f5f9;
    --gray-50:     #f8fafc;
    --white:       #ffffff;

    --font-head:   'Plus Jakarta Sans', sans-serif;
    --font-body:   'Inter', sans-serif;

    --radius:      12px;
    --radius-lg:   20px;
    --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:   0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg:   0 12px 40px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
    --shadow-blue: 0 8px 32px rgba(37,99,235,.25);

    --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--navy);
    background: var(--white);
    overflow-x: hidden;
}

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

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

ul { list-style: none; }

h1,h2,h3 { font-family: var(--font-head); line-height: 1.1; font-weight: 800; }

p { line-height: 1.7; color: var(--gray-700); }

/* ──────────────────────────────────────────
   LAYOUT HELPERS
────────────────────────────────────────── */
.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ──────────────────────────────────────────
   BUTTONS
────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    padding: 14px 28px;
    transition: all 0.2s var(--ease-out);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(37,99,235,.35);
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--gray-200);
}
.btn-ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.875rem;
    background: var(--blue);
    color: var(--white);
    box-shadow: var(--shadow-blue);
}
.btn-sm:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.btn-full { width: 100%; justify-content: center; }

.btn-submit { align-self: flex-end; }

/* ──────────────────────────────────────────
   NAVIGATION
────────────────────────────────────────── */
#nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s;
}

#nav.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--gray-200);
}

.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--navy);
    letter-spacing: -0.03em;
}
.logo span { color: var(--blue); }

.nav-links {
    display: flex;
    gap: 36px;
    margin-left: auto;
}
.nav-links a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-500);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }

.nav-cta { margin-left: 8px; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ──────────────────────────────────────────
   SECTION HEADER COMPONENTS
────────────────────────────────────────── */
.eyebrow-label {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}
.eyebrow-label.light { color: rgba(37,99,235,.8); }

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}
.section-head h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 16px; }
.section-desc { font-size: 1.05rem; color: var(--gray-500); }

/* ──────────────────────────────────────────
   HERO
────────────────────────────────────────── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
}

/* Ambient blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    will-change: transform;
}
.b1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,.12) 0%, transparent 70%);
    top: -200px; left: -150px;
    animation: drift 14s ease-in-out infinite alternate;
}
.b2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(124,58,237,.08) 0%, transparent 70%);
    top: -100px; right: -100px;
    animation: drift 18s ease-in-out infinite alternate-reverse;
}
.b3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,.07) 0%, transparent 70%);
    bottom: 0; right: 20%;
    animation: drift 12s ease-in-out infinite alternate;
}
.b4 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,.1) 0%, transparent 70%);
    top: -100px; right: -100px;
    animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 30px) scale(1.06); }
}

.hero-inner {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 140px 32px 80px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.eyebrow-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(37,99,235,.2);
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 3px rgba(37,99,235,.2); }
    50%      { box-shadow: 0 0 0 6px rgba(37,99,235,.08); }
}

.hero-text h1 {
    font-size: clamp(3rem, 5.5vw, 5rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--navy);
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
}

.hstat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hstat strong {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}
.hstat .unit {
    font-size: 1.2rem;
    color: var(--blue);
}
.hstat span:last-child {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hstat-sep {
    width: 1px;
    height: 36px;
    background: var(--gray-200);
    flex-shrink: 0;
}

/* ── Tech Graphic ── */
.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tg {
    position: relative;
    width: 420px;
    height: 420px;
}

.tg-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.r1 {
    width: 140px; height: 140px;
    border: 1.5px solid rgba(37,99,235,.35);
    animation: ring-pulse 4s ease-in-out infinite;
}
.r2 {
    width: 240px; height: 240px;
    border: 1px dashed rgba(37,99,235,.2);
    animation: ring-spin 30s linear infinite;
}
.r3 {
    width: 360px; height: 360px;
    border: 1px solid rgba(37,99,235,.1);
    animation: ring-pulse 6s ease-in-out infinite 1s;
}

@keyframes ring-pulse {
    0%,100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
    50%      { opacity: 0.6; transform: translate(-50%,-50%) scale(1.03); }
}
@keyframes ring-spin {
    from { transform: translate(-50%,-50%) rotate(0deg); }
    to   { transform: translate(-50%,-50%) rotate(360deg); }
}

.tg-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 88px; height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 10px rgba(37,99,235,.1), var(--shadow-blue);
}
.tg-core span {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--white);
    letter-spacing: -0.03em;
}

.tg-badge {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(calc(-50% + var(--dx,0px)), calc(-50% + var(--dy,0px)));
    background: var(--white);
    border: 1.5px solid rgba(37,99,235,.18);
    border-radius: 50px;
    padding: 8px 18px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    animation: badge-float 4s ease-in-out infinite;
    animation-delay: var(--del, 0s);
}
.tg-badge::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--blue);
    margin-right: 7px;
    vertical-align: middle;
    opacity: 0.7;
}

@keyframes badge-float {
    0%,100% { transform: translate(calc(-50% + var(--dx,0px)), calc(-50% + var(--dy,0px))); }
    50%      { transform: translate(calc(-50% + var(--dx,0px)), calc(-50% + var(--dy,0px) - 10px)); }
}

/* ── Scroll hint ── */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-300);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1;
    transition: color 0.2s;
}
.scroll-hint:hover { color: var(--blue); }
.scroll-line {
    width: 1px; height: 44px;
    background: linear-gradient(to bottom, transparent, currentColor);
    animation: scroll-drop 2s ease-in-out infinite;
}
@keyframes scroll-drop {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ──────────────────────────────────────────
   SERVICES
────────────────────────────────────────── */
#services {
    background: var(--gray-50);
    padding: 120px 0;
}

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

.scard {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}
.scard:hover {
    border-color: rgba(37,99,235,.3);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(37,99,235,.08);
    transform: translateY(-4px);
}

.scard-icon {
    width: 52px; height: 52px;
    background: var(--blue-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--blue);
    transition: background 0.2s, transform 0.2s;
}
.scard:hover .scard-icon {
    background: var(--blue);
    color: var(--white);
    transform: scale(1.05);
}
.scard-icon svg { width: 26px; height: 26px; }

.scard h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--navy);
}

.scard p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.scard-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.scard-tags span {
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-light);
    border-radius: 50px;
    padding: 4px 12px;
    letter-spacing: 0.03em;
}

/* ──────────────────────────────────────────
   ABOUT
────────────────────────────────────────── */
#about {
    background: var(--white);
    padding: 120px 0;
}

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

.about-text h2 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    margin-bottom: 24px;
    margin-top: 12px;
}

.about-text p {
    font-size: 0.98rem;
    margin-bottom: 18px;
}
.about-text p:last-of-type { margin-bottom: 32px; }

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tech-pills span {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 6px 14px;
    transition: all 0.2s;
}
.tech-pills span:hover {
    background: var(--blue-light);
    border-color: rgba(37,99,235,.3);
    color: var(--blue);
}

/* ── Stat cards ── */
.about-cards {
    position: relative;
    height: 380px;
}

.acard {
    position: absolute;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
    width: 260px;
}
.acard:hover { box-shadow: var(--shadow-lg); }

.acard strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 10px;
}
.acard p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0;
}

.ac1 {
    top: 0; left: 0;
    transform: rotate(-3deg);
    z-index: 1;
}
.ac2 {
    top: 100px; left: 60px;
    transform: rotate(1.5deg);
    z-index: 2;
}
.ac3 {
    top: 210px; left: 20px;
    transform: rotate(-1deg);
    z-index: 3;
}

.ac1:hover { transform: rotate(0deg) scale(1.02); z-index: 10; }
.ac2:hover { transform: rotate(0deg) scale(1.02); z-index: 10; }
.ac3:hover { transform: rotate(0deg) scale(1.02); z-index: 10; }

/* ──────────────────────────────────────────
   CONTACT
────────────────────────────────────────── */
#contact {
    position: relative;
    background: var(--gray-50);
    padding: 120px 0;
    overflow: hidden;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    margin-bottom: 20px;
    margin-top: 12px;
}
.contact-info > p {
    font-size: 0.98rem;
    margin-bottom: 36px;
}

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

.clink {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: color 0.2s, transform 0.2s;
}
.clink:not(.clink-loc):hover {
    color: var(--blue);
    transform: translateX(4px);
}
.clink svg {
    width: 20px; height: 20px;
    color: var(--blue);
    flex-shrink: 0;
}
.clink-loc { cursor: default; }

/* ── Form ── */
.contact-form {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fgroup {
    position: relative;
}

.fgroup input,
.fgroup textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--navy);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px 16px 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    resize: none;
    appearance: none;
}

.fgroup input:focus,
.fgroup textarea:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.fgroup label {
    position: absolute;
    top: 14px; left: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-500);
    transition: all 0.18s var(--ease-out);
    pointer-events: none;
}

.fgroup input:focus ~ label,
.fgroup input:not(:placeholder-shown) ~ label,
.fgroup textarea:focus ~ label,
.fgroup textarea:not(:placeholder-shown) ~ label {
    top: 7px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 0.03em;
}

.opt {
    font-weight: 400;
    color: var(--gray-300);
}

.form-ok {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 14px 18px;
    text-align: center;
}

/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
footer {
    background: var(--navy);
    padding: 56px 32px;
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

footer .logo { color: var(--white); font-size: 1.6rem; }
footer .logo span { color: var(--blue); }

footer p {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
}

.footer-sub {
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,.35) !important;
}

/* ──────────────────────────────────────────
   SCROLL REVEAL
────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.svc-grid .scard:nth-child(2) { transition-delay: 0.1s; }
.svc-grid .scard:nth-child(3) { transition-delay: 0.2s; }
.svc-grid .scard:nth-child(4) { transition-delay: 0.3s; }

/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
    }
    .hero-eyebrow { justify-content: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-graphic { display: none; }

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

    .about-wrap {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .about-cards { height: 320px; }
    .ac1 { left: 0; }
    .ac2 { left: 40px; }
    .ac3 { left: 10px; }

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

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

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(12px);
        padding: 24px 32px 32px;
        gap: 24px;
        border-bottom: 1px solid var(--gray-200);
        z-index: 99;
    }
    .nav-links.open a { font-size: 1.1rem; color: var(--navy); }

    .wrap { padding: 0 20px; }
    #services, #about, #contact { padding: 80px 0; }

    .contact-form { padding: 28px 24px; }
    .about-cards { height: auto; position: static; display: flex; flex-direction: column; gap: 16px; }
    .acard { position: static; width: 100%; transform: none !important; }
}
