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

:root {
    --bg: #f8fafc;
    --bg-subtle: #ffffff;
    --primary: #0ca678;
    --primary-glow: rgba(12, 166, 120, 0.1);
    --secondary: #4263eb;
    --text: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --glass: rgba(255, 255, 255, 0.8);
    --nav-height: 80px;
    --radius-lg: 32px;
    --radius-md: 16px;
    --font-mono: 'JetBrains Mono', monospace;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Layout --- */

section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Navigation --- */

header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 99px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.logo-container img {
    height: 60px;
    filter: invert(1);
    transition: transform 0.3s ease;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    z-index: 1001;
    position: relative;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background 0.3s ease;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.active .hamburger::after { transform: rotate(-45deg) translate(5px, -6px); }

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

.nav-menu a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.btn-contact {
    background: var(--text);
    color: var(--bg) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

/* --- Hero --- */

.hero {
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
    padding-top: 140px;
}

.hero-content {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero-tagline {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    display: block;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 3rem;
}

/* --- Terminal Mockup --- */

.terminal-mockup {
    background: #0f172a;
    border-radius: var(--radius-md);
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    animation: float 6s ease-in-out infinite;
}

.terminal-header {
    background: #1e293b;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-1 { background: #ff5f56; }
.dot-2 { background: #ffbd2e; }
.dot-3 { background: #27c93f; }

.terminal-body {
    padding: 24px;
    color: #94a3b8;
    line-height: 1.7;
    overflow-x: auto;
}

.code-keyword { color: #f472b6; }
.code-fn { color: #38bdf8; }
.code-string { color: #4ade80; }
.code-comment { color: #64748b; font-style: italic; }

/* --- Services --- */

.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-wide {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .card-wide {
        grid-column: span 1;
    }
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transform: translateY(-8px);
}

/* --- Process Section --- */

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    margin-bottom: 1.5rem;
}

/* --- USP / Ownership --- */

.usp {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 60px;
}

.code-header-visual {
    background: #f1f5f9;
    padding: 40px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border: 1px solid var(--border);
    max-width: 100%;
    overflow-x: auto;
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
    section { padding: 80px 5%; }
    .hero { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 800px) {
    header { top: 10px; width: 95%; border-radius: 30px; padding: 0 20px; }
    .nav-toggle { display: block; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(20px);
        z-index: 1000;
        padding: 40px;
    }

    .nav-menu.active { right: 0; }
    .nav-menu a { font-size: 1.5rem; }
    
    .process-steps { grid-template-columns: 1fr; }
    .usp { grid-template-columns: 1fr; border: none; padding: 0; }
    .usp-content { padding: 40px 0 !important; text-align: center; }
}

@media (max-width: 480px) {
    section { padding: 60px 20px; }
    .hero h1 { font-size: 2.5rem; }
    .card { padding: 2rem; }
    
    footer .footer-main { flex-direction: column; text-align: center; gap: 2rem; }
    .footer-logo { margin: 0 auto; }
}

footer {
    padding: 60px 5% 40px;
    background: var(--text);
    color: var(--bg);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-logo img {
    height: 60px;
}

/* --- Contact Section --- */

.contact-card-container {
    background: var(--text);
    color: var(--bg);
    padding: 80px;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.btn-submit {
    background: var(--bg);
    color: var(--text);
    padding: 1rem 2rem;
    border-radius: 99px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary);
    color: var(--bg);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.25rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--bg);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* --- WhatsApp Floating Button --- */

.whatsapp-pill {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-pill img {
    width: 20px;
    height: 20px;
}

.wa-status {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

.whatsapp-pill:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

@media (max-width: 800px) {
    .contact-card-container {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
    .whatsapp-pill {
        bottom: 20px;
        right: 20px;
        padding: 0.6rem 1rem;
    }
    .whatsapp-pill span:last-child { display: none; }
}
