/* ============================================
   NeuTherX — Styles
   ============================================ */

:root {
    --bg-primary: #070b12;
    --bg-secondary: #0b1018;
    --bg-card: #101824;
    --bg-card-hover: #162030;
    --text-primary: #e2eaf2;
    --text-secondary: #8a9ab0;
    --text-muted: #586880;
    --accent-1: #2e7dca;
    --accent-2: #3b9fd4;
    --accent-3: #48b8c4;
    --gradient-main: linear-gradient(135deg, #1a5fa0, #2e7dca, #3ea8b8);
    --gradient-glow: linear-gradient(135deg, rgba(26,95,160,0.15), rgba(46,125,202,0.15), rgba(62,168,184,0.15));
    --border-color: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }

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

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
}
.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-main);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    background: var(--gradient-main);
    color: #fff !important;
}
.nav-cta::after { display: none !important; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('1.jpg') center center / cover no-repeat;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(7, 11, 18, 0.72) 0%,
        rgba(7, 11, 18, 0.60) 30%,
        rgba(7, 11, 18, 0.75) 70%,
        rgba(7, 11, 18, 0.95) 100%
    );
    z-index: 1;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    z-index: 2;
}
.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-1);
    top: -200px;
    right: -100px;
    opacity: 0.15;
}
.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-2);
    bottom: -100px;
    left: -100px;
    opacity: 0.12;
}
.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-3);
    top: 40%;
    left: 50%;
    opacity: 0.08;
}
#neuralCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 820px;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    background: rgba(26,95,160,0.12);
    border: 1px solid rgba(26,95,160,0.25);
    color: var(--accent-1);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 36px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 24px rgba(26,95,160,0.25);
}
.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(26,95,160,0.4);
    transform: translateY(-2px);
}
.btn-outline {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-full { width: 100%; }
.hero-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 160px;
    line-height: 1.5;
}
.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border-color);
}

/* ---- Sections ---- */
.section {
    padding: 100px 0;
    position: relative;
}
.section-dark {
    background: var(--bg-secondary);
}

/* Technology section image background */
#technology {
    background: none;
    overflow: hidden;
}
#technology::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('2.png') center center / cover no-repeat;
    z-index: 0;
}
#technology::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(11, 16, 24, 0.92) 0%,
        rgba(11, 16, 24, 0.78) 30%,
        rgba(11, 16, 24, 0.78) 70%,
        rgba(11, 16, 24, 0.94) 100%
    );
    z-index: 0;
}
#technology > .container {
    position: relative;
    z-index: 1;
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}
.section-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    background: rgba(26,95,160,0.1);
    color: var(--accent-1);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 16px;
}

/* ---- Mission ---- */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.mission-text .lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.8;
}
.mission-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.mission-problems {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.problem-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.problem-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}
.problem-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    color: var(--accent-1);
}
.problem-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.problem-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Platform Flow ---- */
.platform-flow {
    display: flex;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 16px;
}
.flow-step {
    flex: 1;
    min-width: 220px;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}
.flow-step:hover {
    border-color: var(--accent-1);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(26,95,160,0.1);
}
.flow-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-3);
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.flow-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-2);
    margin-bottom: 16px;
}
.flow-step h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.flow-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.flow-connector {
    display: flex;
    align-items: center;
    padding: 0 8px;
    flex-shrink: 0;
    color: var(--text-muted);
    margin-top: 60px;
}
.flow-connector svg {
    width: 40px;
    height: 20px;
}

/* ---- Solutions ---- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.solution-card {
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-align: center;
}
.solution-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(26,95,160,0.08);
}
.solution-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-glow);
    border-radius: var(--radius-md);
    color: var(--accent-1);
}
.solution-icon-wrap svg {
    width: 36px;
    height: 36px;
}
.solution-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.solution-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Team ---- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.team-card {
    padding: 40px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}
.team-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}
.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}
.team-role {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}
.team-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.team-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- IP Section ---- */
.ip-section {
    padding: 60px 0;
}
.ip-content {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.ip-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    color: var(--accent-2);
}
.ip-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.ip-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---- Contact ---- */
#contact {
    background: none;
    overflow: hidden;
}
#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('foot.png') center bottom / cover no-repeat;
    z-index: 0;
}
#contact::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(11, 16, 24, 0.95) 0%,
        rgba(11, 16, 24, 0.82) 50%,
        rgba(11, 16, 24, 0.88) 100%
    );
    z-index: 0;
}
#contact > .container {
    position: relative;
    z-index: 1;
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.contact-info h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 32px;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent-1);
}
.contact-domains {
    display: flex;
    gap: 12px;
}
.domain-link {
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-hover);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-3);
    transition: var(--transition);
}
.domain-link:hover {
    background: rgba(6,182,212,0.08);
    border-color: var(--accent-3);
}
.contact-form-wrap {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.form-group {
    margin-bottom: 16px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(26,95,160,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ---- Footer ---- */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('foot.png') center bottom / cover no-repeat;
    opacity: 0.12;
    z-index: 0;
}
.footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
}
.footer-logo .logo-mark {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
}
.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }

/* ---- Animations ---- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .mission-grid { grid-template-columns: 1fr; gap: 40px; }
    .platform-flow { flex-wrap: wrap; gap: 16px; }
    .flow-connector { display: none; }
    .flow-step { min-width: calc(50% - 8px); flex: none; }
    .solutions-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        border-left: 1px solid var(--border-color);
        transition: var(--transition);
    }
    .nav-links.open { right: 0; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 24px; align-items: flex-start; }
    .stat-divider { width: 48px; height: 1px; }
    .flow-step { min-width: 100%; }
    .solutions-grid,
    .team-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .ip-content { flex-direction: column; text-align: center; padding: 32px 24px; }
    .footer-content { flex-direction: column; gap: 16px; text-align: center; }
    .hero-actions { flex-direction: column; }
    .btn-full { width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 64px 0; }
    .mission-problems { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }
    .contact-domains { flex-direction: column; }
}
