:root {
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --primary-dark: #4834C0;
    --secondary: #00D2FF;
    --teal: #38BDF8;
    --accent: #FF6B6B;

    --bg-dark:   #07071A;
    --bg-dark-2: #0D0D28;
    --bg-dark-3: #131336;
    --surface:   #1A1A44;
    --surface-2: #21215A;

    --text:       #E8E8F5;
    --text-muted: #9090BB;
    --text-light: #C0C0DD;

    --border:        rgba(108, 92, 231, 0.22);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --glow:   rgba(108, 92, 231, 0.35);
    --glow-2: rgba(0, 210, 255, 0.25);

    --shadow:    rgba(0, 0, 0, 0.4);
    --shadow-lg: rgba(0, 0, 0, 0.6);

    /* Legacy aliases */
    --primary-purple: #6C5CE7;
    --ink:       #E8E8F5;
    --bg-light:  #0D0D28;
    --bg-white:  #07071A;
    --text-dark: #E8E8F5;
    --text-gray: #9090BB;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(7, 7, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    display: inline-flex;
    align-items: baseline;
    line-height: 1.4;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 500;
    font-size: 28px;
    letter-spacing: -0.02em;
    cursor: pointer;
    text-decoration: none;
}

a.logo {
    text-decoration: none;
}

.logo-small {
    display: inline-flex;
    align-items: baseline;
    line-height: 1.4;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.vowel {
    position: relative;
    top: 0.12em;
}

.grad {
    background: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 55%, #00D2FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.08em;
    display: inline-block;
}

.ink {
    color: var(--ink);
}

.prompt {
    margin-right: 0.2ch;
}

.caret {
    display: inline-block;
    width: 0.55ch;
    height: 1em;
    margin-left: 0.12em;
    background: var(--primary-light);
    animation: blink 1s steps(1) infinite;
    transform: translateY(0.08em);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.language-selector {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.lang-btn {
    padding: 6px 0;
    min-width: 38px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'JetBrains Mono', monospace;
}

.lang-btn:hover {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* ===== BUTTONS (NexaDigital style) ===== */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8B5CF6, var(--secondary));
    opacity: 0;
    transition: opacity 0.4s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.6);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary i {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

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

.btn-primary i,
.btn-secondary i {
    transition: transform 0.3s;
}

.btn-primary:hover i,
.btn-secondary:hover i {
    transform: translateX(4px);
}

.btn-nav {
    min-width: 140px;
    justify-content: center;
}

.hero {
    padding: 140px 0 80px;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbPulse 10s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbPulse 14s ease-in-out infinite reverse;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1) translate(0, 0); }
    33% { transform: scale(1.15) translate(20px, -20px); }
    66% { transform: scale(0.9) translate(-15px, 15px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--ink);
}

.gradient-text {
    background: linear-gradient(135deg, #6C5CE7 0%, #00D2FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 400px;
}

.neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    opacity: 1;
}

.floating-card {
    position: absolute;
    background: var(--surface);
    padding: 20px 28px;
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    width: 24px;
    height: 24px;
    color: var(--primary-purple);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-16px) rotate(1deg);
    }
    66% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--ink);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
}

.services {
    padding: 80px 0;
}

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

.service-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

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

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    width: 30px;
    height: 30px;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ink);
}

.service-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-link i {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.service-link:hover i {
    transform: translateX(4px);
}

.features {
    padding: 80px 0;
    background: var(--bg-dark-2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 24px var(--glow);
}

.feature-icon i {
    width: 36px;
    height: 36px;
    color: var(--teal);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
}

.feature-description {
    color: var(--text-gray);
    line-height: 1.7;
}

.cta-section {
    padding: 100px 0;
    background: linear-gradient(160deg, var(--bg-dark-2) 0%, var(--surface) 60%, var(--bg-dark-2) 100%);
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.2) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}


.contact {
    padding: 80px 0;
    background: var(--bg-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--surface);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.18);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-item i {
    width: 24px;
    height: 24px;
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 4px;
}

.info-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.info-item a {
    color: var(--teal);
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.footer {
    background: #04040F;
    color: var(--text);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-tagline {
    color: var(--text-muted);
    margin-top: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--teal);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    will-change: transform;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav {
        flex-direction: column;
        width: 100%;
    }
    
    .language-selector {
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .cta-title {
        font-size: 32px;
    }
}

/* ===== Section Badge ===== */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-badge i {
    width: 13px;
    height: 13px;
}

/* ===== Service Features ===== */
.service-features {
    list-style: none;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.service-features li i {
    width: 15px;
    height: 15px;
    color: var(--teal);
    flex-shrink: 0;
}

/* ===== Scroll Animation ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CTA + Contact Section ===== */
.cta-contact {
    padding: 100px 0;
    background: linear-gradient(160deg, var(--bg-dark-2) 0%, var(--surface) 50%, var(--bg-dark-2) 100%);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cta-text h2 {
    font-size: 48px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.15;
}

.cta-text > p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.75;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cta-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 16px;
}

.cta-feat i {
    width: 20px;
    height: 20px;
    color: var(--teal);
    flex-shrink: 0;
}

.cta-form-wrapper {
    background: var(--bg-dark-3);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 44px 40px;
}

.cta-form h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 28px;
}

.cta-form .form-group {
    margin-bottom: 16px;
    gap: 0;
}

.cta-form select {
    width: 100%;
    padding: 14px 16px;
    padding-right: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239090BB' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.cta-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.18);
}

.cta-form select option {
    background: var(--surface-2);
    color: var(--text);
}

.btn-full {
    width: 100%;
    display: block;
    text-align: center;
    padding: 16px;
    font-size: 17px;
    margin-top: 8px;
    box-sizing: border-box;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 14px;
}

.form-note i {
    width: 14px;
    height: 14px;
    color: var(--teal);
    flex-shrink: 0;
}

@media (max-width: 968px) {
    .cta-contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .cta-text h2 {
        font-size: 36px;
    }
}
