@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-body: #0b1437;
    --bg-dark: #060d2e;
    --bg-card: #111c44;
    --bg-card-hover: #162050;
    --bg-input: #0b1437;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --text-white: #ffffff;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(59,130,246,0.4);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(11, 20, 55, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled { padding: 0.6rem 0; background: rgba(6, 13, 46, 0.95); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand svg { width: 32px; height: 32px; }

.nav-brand .brand-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--blue-400);
    border-radius: 50%;
    margin-left: 2px;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--blue-400);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-menu a:hover, .nav-menu a.active { color: var(--text-white); }
.nav-menu a:hover::before, .nav-menu a.active::before { width: 100%; }

.nav-cta-btn {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white) !important;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-cta-btn:hover {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}

.nav-cta-btn::before { display: none !important; }

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

.mobile-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-light);
    border-radius: 1px;
    transition: var(--transition);
}

/* ====== HERO ====== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 70%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 500px; height: 500px;
    top: -150px; right: -100px;
    background: rgba(59,130,246,0.12);
}

.hero-glow-2 {
    width: 400px; height: 400px;
    bottom: -100px; left: -50px;
    background: rgba(99,102,241,0.08);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content { max-width: 580px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue-400);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-badge-dot {
    width: 6px; height: 6px;
    background: var(--blue-400);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: var(--text-white);
    margin-bottom: 1.25rem;
}

.hero h1 .text-gradient {
    background: linear-gradient(135deg, var(--blue-400), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 460px;
    line-height: 1.7;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.75rem;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: var(--text-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59,130,246,0.35);
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.12);
}

.btn-outline:hover {
    border-color: var(--blue-400);
    color: var(--blue-400);
    transform: translateY(-2px);
}

/* Hero visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-orbit {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
    position: relative;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(59,130,246,0.08);
    border-radius: 50%;
    animation: spin 35s linear infinite;
}

.orbit-ring:nth-child(1) { inset: 5%; }
.orbit-ring:nth-child(2) { inset: 20%; animation-direction: reverse; animation-duration: 28s; border-color: rgba(99,102,241,0.08); }
.orbit-ring:nth-child(3) { inset: 35%; animation-duration: 22s; }

.orbit-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 72px; height: 72px;
    background: rgba(59,130,246,0.1);
    border: 2px solid rgba(59,130,246,0.25);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(59,130,246,0.2);
}

.orbit-center svg { width: 32px; height: 32px; color: var(--blue-400); }

.orbit-node {
    position: absolute;
    width: 44px; height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: var(--transition);
}

.orbit-node:hover { border-color: var(--blue-400); transform: scale(1.1); }

.orbit-node svg { width: 20px; height: 20px; color: var(--blue-400); }

.orbit-node:nth-child(5) { top: 2%; left: 50%; transform: translateX(-50%); }
.orbit-node:nth-child(6) { top: 22%; right: 4%; }
.orbit-node:nth-child(7) { bottom: 22%; right: 4%; }
.orbit-node:nth-child(8) { bottom: 2%; left: 50%; transform: translateX(-50%); }
.orbit-node:nth-child(9) { bottom: 22%; left: 4%; }
.orbit-node:nth-child(10) { top: 22%; left: 4%; }

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

/* ====== STATS ====== */
.stats-section {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue-400), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ====== SECTIONS ====== */
.section { padding: 6rem 0; }
.section-dark { background: var(--bg-dark); }

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue-400);
    margin-bottom: 1rem;
}

.section-tag::before, .section-tag::after {
    content: '';
    width: 16px; height: 1px;
    background: var(--blue-500);
    opacity: 0.5;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ====== SERVICE CARDS ====== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(59,130,246,0.25);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.service-card:hover::after { opacity: 1; }

.svc-icon {
    width: 48px; height: 48px;
    background: rgba(59,130,246,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.svc-icon svg { width: 24px; height: 24px; color: var(--blue-400); }

.service-card:hover .svc-icon {
    background: var(--blue-500);
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.service-card:hover .svc-icon svg { color: white; }

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.svc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 1rem;
}

.svc-tag {
    padding: 3px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
}

/* ====== ABOUT ====== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-feat {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.about-feat:hover { border-color: var(--border-hover); }

.about-feat h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.about-feat p { font-size: 0.8rem; color: var(--text-dim); margin: 0; }

/* Terminal */
.terminal {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.td-red { background: #ef4444; }
.td-yellow { background: #f59e0b; }
.td-green { background: #22c55e; }

.terminal-title {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    margin-left: 8px;
}

.terminal-body {
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 2;
    color: var(--text-muted);
}

.t-prompt { color: var(--blue-400); }
.t-cmd { color: var(--text-light); }
.t-output { color: var(--text-dim); padding-left: 1rem; display: block; }
.t-ok { color: #22c55e; }
.t-cursor {
    display: inline-block;
    width: 7px; height: 14px;
    background: var(--blue-400);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ====== PARTNERS ====== */
.partners-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.partner-item {
    padding: 1.5rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dim);
    transition: var(--transition);
    text-align: center;
    min-width: 200px;
}

.partner-item:hover {
    border-color: var(--border-hover);
    color: var(--text-light);
    transform: translateY(-2px);
}

.partner-item span {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ====== CTA ====== */
.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.cta-box p {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 2rem;
}

/* ====== CONTACT ====== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ci-icon {
    width: 44px; height: 44px;
    background: rgba(59,130,246,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ci-icon svg { width: 20px; height: 20px; color: var(--blue-400); }

.ci-text h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-white); margin-bottom: 2px; }
.ci-text p { font-size: 0.85rem; color: var(--text-muted); }

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

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

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font);
    font-size: 0.875rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

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

.btn-submit {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}

/* ====== PAGE HEADER ====== */
.page-hero {
    padding: 9rem 0 4rem;
    text-align: center;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px;
    background: rgba(59,130,246,0.06);
    filter: blur(100px);
    border-radius: 50%;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
    position: relative;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    position: relative;
}

/* ====== ALERTS ====== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.alert-ok { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #22c55e; }
.alert-err { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #ef4444; }

/* ====== FOOTER ====== */
.footer {
    padding: 4rem 0 2rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand p { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.75rem; max-width: 280px; }

.footer h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer ul li { margin-bottom: 0.5rem; }
.footer ul li a { font-size: 0.85rem; color: var(--text-dim); }
.footer ul li a:hover { color: var(--blue-400); padding-left: 3px; }

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ====== ANIMATIONS ====== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
        gap: 1rem;
    }
    .mobile-toggle { display: flex; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 4rem 0; }
    .section-header h2 { font-size: 1.75rem; }
    .about-features { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }
    .cta-box { padding: 2.5rem 1.5rem; }
    .partners-grid { gap: 1rem; }
    .partner-item { min-width: 150px; padding: 1rem 1.5rem; font-size: 1.1rem; }
}
