/* ═══════════════════════════════════════════════════════════════════
   JCodes Technology — Corporate Design System
   Clean · Professional · Light · Trustworthy
   ═══════════════════════════════════════════════════════════════════ */

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

/* ─── Design Tokens ───────────────────────────────────────────── */
:root {
    --white:        #ffffff;
    --gray-50:      #f8f9fb;
    --gray-100:     #f0f2f5;
    --gray-200:     #e2e5eb;
    --gray-300:     #cdd1da;
    --gray-400:     #9ca3b4;
    --gray-500:     #6b7280;
    --gray-600:     #4b5563;
    --gray-800:     #1f2937;
    --gray-900:     #111827;

    --navy:         #0c1a3a;
    --navy-light:   #132044;
    --navy-700:     #1e3a5f;

    --blue:         #1a56db;
    --blue-hover:   #1648b8;
    --blue-light:   #e8f0fe;
    --blue-50:      #f0f5ff;

    --green-light:  #ecfdf5;
    --green:        #059669;
    --amber-light:  #fffbeb;
    --amber:        #b45309;

    --radius:       10px;
    --radius-sm:    6px;
    --radius-lg:    14px;
    --max-w:        1140px;

    --shadow-sm:    0 1px 2px rgba(0,0,0,0.05);
    --shadow:       0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:    0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg:    0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.03);

    --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── Base ────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

a { color: var(--blue); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--blue-hover); }

/* ─── Header ──────────────────────────────────────────────────── */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}
nav {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}

/* ─── Logo ────────────────────────────────────────────────────── */
.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none !important;
}
.logo:hover { text-decoration: none; }
.logo-mark { flex-shrink: 0; }
.logo-text {
    font-weight: 700; font-size: 16px; color: var(--gray-900);
    letter-spacing: -0.02em;
}

/* ─── Nav Links ───────────────────────────────────────────────── */
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    color: var(--gray-500); font-size: 14px; font-weight: 500;
    text-decoration: none; transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--gray-900); }

.nav-cta {
    background: var(--navy) !important; color: var(--white) !important;
    padding: 8px 20px; border-radius: var(--radius-sm);
    font-size: 14px !important; font-weight: 600 !important;
    transition: all 0.2s var(--ease) !important;
}
.nav-cta:hover {
    background: var(--navy-light) !important;
    text-decoration: none !important;
}

.mobile-toggle {
    display: none; background: none; border: none;
    cursor: pointer; color: var(--gray-600); padding: 4px;
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: var(--radius-sm);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px; font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s var(--ease);
    cursor: pointer; border: none;
}
.btn-primary {
    background: var(--navy); color: var(--white);
    box-shadow: var(--shadow);
}
.btn-primary:hover {
    background: var(--navy-light); color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.btn-outline {
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
}
.btn-outline:hover {
    color: var(--gray-900);
    border-color: var(--gray-300);
    background: var(--gray-50);
    transform: translateY(-1px);
}

/* ─── Section Primitives ──────────────────────────────────────── */
section { padding: 96px 0; }

.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }
.section-header--center .section-sub { margin-inline: auto; }

.section-eyebrow {
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--blue);
    margin-bottom: 10px;
}
section h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800; letter-spacing: -0.025em;
    line-height: 1.2; color: var(--gray-900);
}
.section-sub {
    margin-top: 12px; font-size: 16px;
    color: var(--gray-500); max-width: 500px;
    line-height: 1.7;
}

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
    padding: 0;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        linear-gradient(135deg, var(--blue-50) 0%, var(--white) 40%, var(--gray-50) 100%);
    z-index: 0;
}
.hero-bg::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    top: -120px; right: -100px;
    background: radial-gradient(circle, rgba(26, 86, 219, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-bg::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    bottom: -80px; left: -60px;
    background: radial-gradient(circle, rgba(12, 26, 58, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    position: relative; z-index: 1;
    padding: 100px 0 0;
}
.hero-content {
    max-width: 640px;
    padding-bottom: 64px;
}
.hero-eyebrow {
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--blue);
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 800; line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--gray-900);
}
.hero h1 em {
    font-style: normal;
    color: var(--blue);
}
.hero-sub {
    margin-top: 20px; font-size: 18px;
    color: var(--gray-500);
    line-height: 1.7; max-width: 520px;
}
.hero-actions {
    margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap;
}

/* Stats bar */
.hero-stats-bar {
    display: flex;
    border-top: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-stats-bar .stat {
    flex: 1;
    padding: 28px 32px;
    border-right: 1px solid var(--gray-200);
}
.hero-stats-bar .stat:last-child { border-right: none; }
.hero-stats-bar .stat strong {
    display: block;
    font-size: 28px; font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}
.hero-stats-bar .stat span {
    font-size: 13px; font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase; letter-spacing: 0.04em;
}

/* ─── Services ────────────────────────────────────────────────── */
.services { background: var(--white); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.service-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all 0.25s var(--ease);
}
.service-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.service-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--radius);
    background: var(--blue-light);
    color: var(--blue);
    margin-bottom: 18px;
}
.service-card h3 {
    font-size: 18px; font-weight: 700;
    margin-bottom: 8px; color: var(--gray-900);
    letter-spacing: -0.01em;
}
.service-card p {
    font-size: 14.5px; color: var(--gray-500);
    line-height: 1.7;
}

/* ─── Tech Stack ──────────────────────────────────────────────── */
.tech {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}
.tech-tags {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center;
}
.tech-tags span {
    padding: 8px 18px; border-radius: 100px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    font-size: 13px; font-weight: 600;
    color: var(--gray-600);
    transition: all 0.2s var(--ease);
    cursor: default;
}
.tech-tags span:hover {
    color: var(--blue);
    border-color: var(--blue);
    background: var(--blue-light);
}

/* ─── Products ────────────────────────────────────────────────── */
.products { background: var(--white); }
.products-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.product-card {
    position: relative; padding: 28px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    display: flex; flex-direction: column; gap: 12px;
    transition: all 0.25s var(--ease);
}
.product-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.product-badge {
    position: absolute; top: 16px; right: 16px;
    padding: 4px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-live {
    background: var(--green-light); color: var(--green);
}
.badge-soon {
    background: var(--amber-light); color: var(--amber);
}

.product-header h3 {
    font-size: 19px; font-weight: 700; color: var(--gray-900);
    letter-spacing: -0.01em;
}
.product-url { font-size: 13px; color: var(--gray-400); }
.product-card > p {
    font-size: 14px; color: var(--gray-500);
    line-height: 1.7; flex: 1;
}
.product-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.product-tech span {
    padding: 3px 10px; border-radius: var(--radius-sm);
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    font-size: 12px; font-weight: 600;
    color: var(--gray-500);
}
.product-link {
    font-size: 14px; font-weight: 600;
    color: var(--blue);
}
.product-link:hover { color: var(--blue-hover); }
.product-link--muted { color: var(--gray-400); }

/* ─── About ───────────────────────────────────────────────────── */
.about {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}
.about-content {
    display: grid; grid-template-columns: 1.5fr 1fr;
    gap: 56px;
}
.about-text h2 { margin-bottom: 6px; }
.about-text p {
    font-size: 15px; color: var(--gray-500);
    line-height: 1.8; margin-top: 16px;
}
.about-text p:first-of-type { margin-top: 0; }

.about-details { display: flex; flex-direction: column; gap: 12px; }
.about-item {
    padding: 16px 20px; border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all 0.2s var(--ease);
}
.about-item:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow);
}
.about-item strong {
    display: block; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--gray-400); margin-bottom: 3px;
}
.about-item span {
    font-size: 15px; font-weight: 600; color: var(--gray-900);
}

/* ─── Contact ─────────────────────────────────────────────────── */
.contact { background: var(--white); }
.contact-cards {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.contact-card {
    text-align: center; padding: 32px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    transition: all 0.25s var(--ease);
    text-decoration: none !important;
    color: var(--gray-800) !important;
    cursor: default;
}
a.contact-card { cursor: pointer; }
.contact-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.contact-card-icon {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: var(--radius);
    background: var(--blue-light);
    color: var(--blue);
    margin-bottom: 4px;
}
.contact-card strong {
    display: block;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--gray-400);
}
.contact-card span {
    font-size: 14px; font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s var(--ease);
}
a.contact-card:hover span { color: var(--blue); }

/* ─── Footer ──────────────────────────────────────────────────── */
footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 56px 0 32px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 44px;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand p {
    margin-top: 12px; font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong {
    font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 4px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.6); font-size: 14px;
    text-decoration: none;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    margin-top: 44px; padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px; color: rgba(255, 255, 255, 0.3);
}

/* ─── Legal Pages ─────────────────────────────────────────────── */
.legal { padding: 60px 0 80px; }
.legal h1 {
    font-size: 36px; font-weight: 800;
    margin-bottom: 8px; letter-spacing: -0.025em;
    color: var(--gray-900);
}
.legal-updated { font-size: 14px; color: var(--gray-500); margin-bottom: 40px; }
.legal h2 {
    font-size: 20px; font-weight: 700;
    margin-top: 32px; margin-bottom: 12px;
    color: var(--gray-900);
}
.legal p { font-size: 15px; color: var(--gray-500); line-height: 1.8; margin-bottom: 12px; }
.legal ul { padding-left: 24px; margin-bottom: 16px; }
.legal li { font-size: 15px; color: var(--gray-500); line-height: 1.8; margin-bottom: 4px; }
.legal a { color: var(--blue); }
.legal-company {
    margin-top: 48px; padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    font-size: 14px; color: var(--gray-400);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: 1fr 1fr; }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute;
        top: 64px; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px 24px; gap: 16px;
        border-bottom: 1px solid var(--gray-200);
    }
    .nav-links.open { display: flex; }
    .nav-cta { align-self: flex-start; }
    .mobile-toggle { display: block; }

    .hero-inner { padding-top: 64px; }
    .hero-content { padding-bottom: 40px; }
    .hero h1 { font-size: clamp(30px, 8vw, 44px); }
    .hero-sub { font-size: 16px; }
    .hero-stats-bar { flex-direction: column; }
    .hero-stats-bar .stat {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        padding: 20px 24px;
    }
    .hero-stats-bar .stat:last-child { border-bottom: none; }

    .services-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .about-content { grid-template-columns: 1fr; gap: 32px; }
    .contact-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    section { padding: 72px 0; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .contact-cards { grid-template-columns: 1fr; }
}
