/* ==========================================
   NO LATENCY LEARNING ACADEMY - Main Styles
   ========================================== */

/* CSS Custom Properties */
:root {
    --primary-purple: #7C3AED;
    --primary-purple-dark: #6D28D9;
    --primary-purple-light: #8B5CF6;
    --secondary-purple: #5B21B6;
    --light-purple: #EDE9FE;
    --lighter-purple: #F5F3FF;
    --accent-purple: #A78BFA;

    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;

    --white: #FFFFFF;
    --off-white: #F9FAFB;
    --border-color: #E5E7EB;

    --success-green: #10B981;
    --warning-orange: #F59E0B;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --transition: all 0.3s ease;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    opacity: 0;
}

body.ready {
    opacity: 1;
    transition: opacity 0.12s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-purple);
    color: var(--white);
    border-color: var(--primary-purple);
}

.btn-primary:hover {
    background-color: var(--primary-purple-dark);
    border-color: var(--primary-purple-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-purple);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    padding: 10px 20px;
    font-size: 13px;
}

.btn-outline-dark:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

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

.btn-white:hover {
    background-color: var(--off-white);
    transform: translateY(-1px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* ==========================================
   PROMO BANNER
   ========================================== */
.promo-banner {
    background: linear-gradient(135deg, #1e1b4b, #4c1d95, #7c3aed);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1100;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-badge {
    width: 48px;
    height: 48px;
    background-color: var(--primary-purple);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.promo-text {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
}

.sparkle {
    color: #c4b5fd;
    font-size: 12px;
}

.promo-btn {
    background-color: #FFFFFF;
    color: var(--primary-purple);
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #FFFFFF;
}

.promo-btn:hover {
    background-color: #f5f3ff;
    transform: translateY(-1px);
}

.promo-btn .arrow {
    font-size: 14px;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    background: #7C3AED !important;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header .nav-link {
    color: #FFFFFF !important;
}

.header .logo-img {
    height: 50px !important;
    filter: brightness(0) invert(1) !important;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1) !important;
}

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

.nav-link {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--white);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 200px;
    justify-content: flex-end;
}

.nav-actions .nav-link {
    font-weight: 500;
}

.nav-actions .btn-outline-white {
    padding: 8px 20px;
}

/* ---- User Dropdown (logged-in state) ---- */

.nav-user-dropdown {
    position: relative;
}

.nav-user-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    padding: 5px 16px 5px 5px;
    cursor: pointer;
    transition: var(--transition);
    color: #fff;
    font-family: var(--font-family);
    font-size: 14px;
}

.nav-user-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-user-toggle.open {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
}

/* Credit Badge in Navbar */
.nav-credit-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 4px 12px 4px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-right: 10px;
    white-space: nowrap;
    min-width: 72px;
}

.nav-credit-badge svg {
    opacity: 0.85;
    flex-shrink: 0;
}

.nav-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.nav-user-name {
    font-weight: 600;
    white-space: nowrap;
}

.nav-user-chevron {
    transition: transform 0.25s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.nav-user-toggle.open .nav-user-chevron {
    transform: rotate(180deg);
}

.nav-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
    padding: 6px;
    border: 1px solid var(--border-color);
}

.nav-user-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    background: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

.nav-user-menu-item:hover {
    background: var(--lighter-purple);
    color: var(--primary-purple);
}

.nav-user-menu-item svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.nav-user-menu-item:hover svg {
    opacity: 1;
    stroke: var(--primary-purple);
}

.nav-user-logout {
    border-top: 1px solid var(--border-color);
    margin-top: 2px;
    padding-top: 11px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.nav-user-logout:hover {
    background: #FEF2F2;
    color: #DC2626;
}

.nav-user-logout:hover svg {
    stroke: #DC2626;
}

/* ---- Labs Nav Dropdown ---- */

.nav-labs-dropdown {
    position: relative;
}

.nav-labs-dropdown > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-labs-chevron {
    transition: transform 0.25s ease;
    opacity: 0.7;
}

.nav-labs-dropdown:hover .nav-labs-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-labs-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px) scale(0.97);
    min-width: 220px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
    padding: 6px;
    border: 1px solid var(--border-color);
}

.nav-labs-dropdown:hover .nav-labs-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.nav-labs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-labs-item:hover {
    background: var(--lighter-purple);
    color: var(--primary-purple);
}

.nav-labs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--domain-color);
    flex-shrink: 0;
}

.nav-labs-icon {
    flex-shrink: 0;
}

.nav-labs-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 6px;
}

.nav-labs-all {
    color: var(--primary-purple);
    font-weight: 600;
}

@media (max-width: 768px) {
    .nav-labs-chevron { display: none; }
    .nav-labs-menu { display: none; }
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--white);
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    opacity: 0.9;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight {
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    z-index: -1;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 28px;
    max-width: 100%;
    font-weight: 400;
    letter-spacing: 0.1px;
}

.hero-btn {
    padding: 14px 32px;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.robot-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.robot-img {
    max-width: 380px;
    max-height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.hero-chat-card {
    position: absolute;
    top: 5%;
    right: -5%;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    z-index: 2;
}

.chat-icon {
    width: 40px;
    height: 40px;
    background-color: var(--light-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: var(--primary-purple);
}

.chat-text {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.4;
}

.hero-chat-card .btn-small {
    background-color: var(--primary-purple);
    color: var(--white);
    width: 100%;
}

.hero-labs-badge {
    position: absolute;
    bottom: 10%;
    right: -5%;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.labs-count {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
}

.labs-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}

.labs-subtext {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

/* ==========================================
   SECTIONS COMMON
   ========================================== */
.section {
    padding: 80px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 12px;
}

.section-tag.students-counter {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    padding: 10px 28px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================
   LABS CAROUSEL
   ========================================== */
.labs-section {
    background-color: var(--white);
}

.labs-section .section-subtitle {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
    max-width: 640px;
}

.beginners-section {
    background-color: var(--lighter-purple);
}

.beginners-section .section-subtitle {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
    max-width: 640px;
}

.labs-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
    background-color: var(--primary-purple);
    color: var(--white);
    border-color: var(--primary-purple);
}

.labs-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.labs-carousel-track::-webkit-scrollbar {
    display: none;
}

.lab-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    flex: 0 0 calc(33.333% - 16px);
    min-width: 320px;
    scroll-snap-align: start;
}

.lab-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.lab-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.lab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lab-progress {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 4;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--primary-purple);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 126;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-ring-fill.beginner {
    stroke: var(--success-green);
}

.progress-text {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.lab-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.lab-badge.advanced {
    background-color: var(--primary-purple);
    color: var(--white);
}

.lab-badge.beginner {
    background-color: var(--success-green);
    color: var(--white);
}

.lab-badge.intermediate {
    background-color: var(--warning-orange);
    color: var(--white);
}

.hp-enrolled-pill {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.lab-content {
    padding: 20px;
}

.lab-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lab-description {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* ==========================================
   TECHNOLOGY SECTION
   ========================================== */
.tech-section {
    background-color: var(--white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tech-card {
    text-align: center;
}

.tech-image {
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.tech-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.tech-card:hover .tech-image img {
    transform: scale(1.05);
}

.tech-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ==========================================
   NEWSLETTER SECTION
   ========================================== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,50 C360,100 720,0 1080,50 C1260,75 1380,75 1440,50 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
}

.newsletter-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.newsletter-image {
    position: relative;
}

.newsletter-image img {
    max-width: 280px;
    border-radius: var(--radius-lg);
}

.newsletter-content {
    color: var(--white);
}

.newsletter-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    display: block;
    margin-bottom: 8px;
}

.newsletter-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-terms {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
    background-color: var(--white);
    color: var(--primary-purple);
    border-color: var(--white);
    padding: 14px 28px;
}

.newsletter-btn:hover {
    background-color: var(--off-white);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--secondary-purple);
    padding: 60px 0 24px;
    color: var(--white);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1) !important;
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--white);
    color: var(--primary-purple);
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

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

.footer-links ul li a {
    font-size: 14px;
    opacity: 0.85;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    padding-left: 4px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-icon svg {
    fill: var(--accent-purple);
}

.footer-contact ul li a,
.footer-contact ul li span {
    opacity: 0.85;
}

.footer-contact ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.75;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 40px;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .lab-card {
        flex: 0 0 calc(50% - 12px);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .promo-banner {
        padding: 12px 16px;
        gap: 16px;
    }

    .promo-badge {
        width: 40px;
        height: 40px;
        font-size: 8px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-purple);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-actions:not(:has(.nav-user-dropdown)) {
        display: none;
    }

    .nav-actions:has(.nav-user-dropdown) {
        display: flex;
    }

    .nav-user-name {
        display: none;
    }

    .nav-user-toggle {
        padding: 4px 10px 4px 4px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        margin: 0 auto 28px;
    }

    .hero-right {
        display: none;
    }

    .hero-chat-card {
        position: relative;
        top: 0;
        right: 0;
        display: none;
    }

    .hero-labs-badge {
        position: relative;
        bottom: 0;
        right: 0;
        display: inline-block;
        margin-top: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .lab-card {
        flex: 0 0 calc(100% - 40px);
        min-width: 280px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tech-image {
        height: 180px;
    }

    .newsletter-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-image {
        display: none;
    }

    .newsletter-title {
        font-size: 26px;
    }

    .newsletter-form {
        flex-direction: column;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }
}

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

    .promo-content {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 22px;
    }

    .newsletter-title {
        font-size: 22px;
    }
}
