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

:root {
    --bg-color: #050505;
    --accent-primary: #6d28d9;
    --accent-secondary: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.1);
    --card-bg: #0f172a;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --h1: clamp(2.5rem, 6vw, 4.5rem);
    --h2: clamp(1.8rem, 4vw, 3rem);
    --h3: clamp(1.4rem, 2.5vw, 2rem);
    --text-base: clamp(0.95rem, 1.2vw, 1.15rem);
    --font-expert: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    font-size: var(--text-base);
    overflow-x: hidden;
}

h1, h2, h3, h4, .heading-font {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Glassmorphism Wrapper */
.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(109, 40, 217, 0.15);
}

.glow-card {
    position: relative;
    overflow: hidden;
}

.glow-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transition: var(--transition);
}

.glow-card:hover::before {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
    transform: scale(1.3);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    section { padding: 8rem 0; }
}

/* Navigation - Mobile Friendly Setup */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin: 1rem 1.5rem;
    position: sticky;
    top: 1rem;
    z-index: 1000;
}

.links {
    display: none; /* Hide on mobile by default */
}
@media (min-width: 992px) {
    .links { display: flex; gap: 2rem; align-items: center; }
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
nav a:hover { color: var(--text-main); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--glass-hover);
    border-color: var(--accent-secondary);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 991px) {
    .mobile-toggle { display: block; }
    .hide-mobile { display: none; }
    .links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid var(--glass-border);
        border-bottom: 1px solid var(--glass-border);
    }
    .links.active { display: flex; }
}

/* Typography */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: var(--h2);
    margin-bottom: 2rem;
    line-height: 1.1;
}
@media (min-width: 768px) {
    .section-title { margin-bottom: 3rem; }
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.badge-primary {
    background: rgba(109, 40, 217, 0.15);
    border: 1px solid var(--accent-primary);
    color: #c4b5fd;
}

.badge-secondary {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid var(--accent-secondary);
    color: #67e8f9;
}

/* Grids - Optimized for Mobile First */
.grid-2, .grid-3, .grid-4 { 
    display: grid; 
    gap: 1.5rem; 
    grid-template-columns: 1fr; 
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

/* Hero Elements */
.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    gap: 3rem;
    text-align: center;
    padding-top: 2rem;
}
@media (min-width: 992px) {
    .hero-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        text-align: left;
        gap: 6rem;
    }
    .hero-content {
        max-width: 100%;
        position: relative;
        z-index: 10;
    }
    .hero-visual {
        width: 100%;
        max-width: 500px;
        position: relative;
        z-index: 5;
    }
}

.hero-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vw;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.2) 0%, transparent 60%);
    filter: blur(90px);
    z-index: -1;
    pointer-events: none;
}
@media (min-width: 768px) {
    .hero-gradient { width: 50vw; height: 50vw; }
}

/* Interactive Cards */
.feature-card {
    padding: 2.5rem 2rem;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    background: rgba(109, 40, 217, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: -webkit-linear-gradient(var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Logo Marquee */
.logo-marquee-section {
    padding: 4rem 0;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.logo-marquee {
    display: flex;
    white-space: nowrap;
    width: 100%;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: logoScroll 40s linear infinite;
    padding: 0 2rem;
}

.logo-track img {
    height: 40px;
    width: auto;
    filter: grayscale(1) brightness(0.8) contrast(1.2);
    opacity: 0.6;
    transition: var(--transition);
}

.logo-track img:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

@keyframes logoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Accordion */
.accordion { width: 100%; }
.accordion-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 0;
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s;
}
@media (min-width: 768px) { .accordion-header { font-size: 1.3rem; } }

.accordion-header:hover { color: var(--accent-secondary); }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
}
.accordion-content p { padding-top: 1rem; }
.accordion-header i { transition: transform 0.3s; }
.accordion-header.active i { transform: rotate(180deg); color: var(--accent-primary); }

/* Animations Utilities */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeInUp 1s ease forwards; }

/* Contact Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}
.whatsapp-widget:hover { 
    transform: scale(1.15) rotate(10deg); 
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

/* Utilities */
.hidden { display: none; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }


.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .section-title { font-size: 3.5rem; }
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge-primary {
    background: rgba(109, 40, 217, 0.1);
    border: 1px solid var(--accent-primary);
    color: #a78bfa;
}

.badge-secondary {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
}

/* Grids */
.grid-2 { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 2rem; grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* Hero Elements */
.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    gap: 2rem;
    text-align: center;
    padding-top: 2rem;
}
@media (min-width: 992px) {
    .hero-wrapper {
        flex-direction: row;
        text-align: left;
        gap: 4rem;
    }
}

.hero-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
}

/* Cards */
.feature-card {
    padding: 2.5rem;
    border-radius: 24px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.feature-card:hover {  transform: translateY(-5px); }
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Accordion (FAQ) */
.accordion {
    width: 100%;
}
.accordion-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 0;
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
}
.accordion-content p {
    padding-top: 1rem;
}
.accordion-header i {
    transition: transform 0.3s;
}
.accordion-header.active i {
    transform: rotate(180deg);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeInUp 1s ease forwards;
}

/* Contact Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition);
}
.whatsapp-widget:hover { transform: scale(1.1); }

/* Utilities */
.hidden { display: none; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

/* Terminal Window */
.terminal-window {
    background: #0d1117;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    font-family: var(--font-expert);
}

.terminal-header {
    background: #161b22;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title {
    margin-left: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #c9d1d9;
    position: relative;
    overflow: hidden;
}

.terminal-body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(109, 40, 217, 0.2);
    box-shadow: 0 0 15px rgba(109, 40, 217, 0.5);
    animation: scanline 4s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(1000%); }
}

.code-keyword { color: #ff7b72; }
.code-func { color: #d2a8ff; }
.code-string { color: #a5d6ff; }
.code-comment { color: #8b949e; }

/* Section Refinements */
.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-expert { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

