:root {
    --primary: #00E4C8;
    --primary-dark: #00B8A3;
    --secondary: #6B4FFF;
    --accent: #FF3D71;
    --bg: #0A0A0F;
    --bg-elevated: #13131A;
    --bg-card: #1A1A24;
    --bg-gradient: linear-gradient(135deg, #0A0A0F 0%, #13131A 50%, #1A1A24 100%);
    --text: #FAFBFC;
    --text-secondary: #A0A4B8;
    --text-muted: #6B7087;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(0,228,200,0.3);
    --glow: rgba(0,228,200,0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(107, 79, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 228, 200, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

::selection {
    background: var(--primary);
    color: white;
}

#neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.display {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    font-family: 'Space Grotesk', sans-serif;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
}

.logo-mark {
    width: 42px;
    height: 42px;
}

.logo-mark svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-family: 'Space Grotesk', sans-serif;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 48px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.25s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--primary);
    color: var(--bg);
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 0 var(--glow);
}

.nav-cta:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 0 32px var(--glow), 0 12px 32px rgba(0, 228, 200, 0.25);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 0 120px;
    position: relative;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
    padding: 10px 20px;
    background: rgba(0, 228, 200, 0.08);
    border: 1px solid rgba(0, 228, 200, 0.2);
    border-radius: 100px;
}

.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.35s forwards;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero h1 .gradient-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.5;
    border-radius: 2px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.65;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.65s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg);
    box-shadow: 0 8px 24px rgba(0, 228, 200, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 228, 200, 0.35), 0 0 32px var(--glow);
}

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

.btn-ghost {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 228, 200, 0.15);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.8s ease 1s forwards;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 16px;
    background: var(--primary);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(200%); }
    100% { transform: translateY(200%); }
}

/* Section styling */
section {
    padding: 140px 0;
    position: relative;
}

.section-header {
    margin-bottom: 80px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 24px;
    padding: 8px 18px;
    background: rgba(0, 228, 200, 0.08);
    border: 1px solid rgba(0, 228, 200, 0.2);
    border-radius: 100px;
}

.section-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    max-width: 700px;
    line-height: 1.15;
}

.section-title .gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-content p:last-of-type {
    margin-bottom: 0;
}

.feature-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3), 0 0 48px var(--glow);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 24px 24px 0 0;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 228, 200, 0.2) 0%, rgba(107, 79, 255, 0.2) 100%);
    border: 2px solid rgba(0, 228, 200, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
    transform: rotate(5deg) scale(1.05);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary);
    transition: stroke 0.4s ease;
}

.feature-card:hover .feature-icon svg {
    stroke: var(--bg);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.98rem;
}

/* Platform Section */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.platform-card {
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 228, 200, 0.05) 0%, rgba(107, 79, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.platform-card:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 32px rgba(0, 228, 200, 0.1);
}

.platform-card:hover::before {
    opacity: 1;
}

.platform-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
    opacity: 0.6;
    position: relative;
    z-index: 1;
}

.platform-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.platform-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
}

.contact-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.contact-item-value {
    font-size: 1.1rem;
    color: var(--text);
}

.contact-item-value a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.25s ease;
    font-weight: 500;
}

.contact-item-value a:hover {
    color: var(--text);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 28px;
}

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

.form-group {
    margin-bottom: 24px;
}

.form-group.full {
    grid-column: 1 / -1;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 228, 200, 0.03);
    box-shadow: 0 0 0 4px rgba(0, 228, 200, 0.08);
}

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

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg);
    padding: 16px 32px;
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-submit:hover::before {
    opacity: 1;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 228, 200, 0.35), 0 0 32px var(--glow);
}

.form-submit:active {
    transform: translateY(-1px);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: rgba(0, 228, 200, 0.1);
    border: 1px solid rgba(0, 228, 200, 0.3);
    color: var(--primary);
    display: block;
}

.form-status.error {
    background: rgba(255, 61, 113, 0.1);
    border: 1px solid rgba(255, 61, 113, 0.3);
    color: var(--accent);
    display: block;
}

/* Footer */
footer {
    padding: 48px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav { padding: 20px 0; }
    .nav-links { display: none; }
    .hero { padding: 140px 0 100px; }
    .platform-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .scroll-indicator { display: none; }
}
