/* ========================================
   NEXLOOM — Dark Tech Media Stylesheet
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --primary: #0066FF;
    --primary-light: #3385FF;
    --primary-dark: #0052CC;
    --secondary: #00D4AA;
    --secondary-light: #33DDBB;
    --accent: #7C3AED;
    --accent-light: #9B6BF7;
    --warning: #F59E0B;
    --dark: #0A0E1A;
    --dark-2: #101525;
    --dark-3: #141829;
    --dark-4: #1A1F35;
    --surface: #1E2340;
    --surface-light: #252B4A;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --text: #E2E8F0;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --white: #FFFFFF;
    --light: #F0F4FF;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.15);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --container: 1200px;
    --container-lg: 1400px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--white);
}

/* --- Utilities --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--lg {
    max-width: var(--container-lg);
}

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

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

.section {
    padding: 6rem 0;
}

.section--dark {
    background: var(--dark-2);
}

.section--darker {
    background: var(--dark-3);
}

.section__label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section__label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--primary);
    display: inline-block;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.btn--primary:hover {
    background: var(--primary-light);
    color: var(--white);
    box-shadow: 0 6px 24px rgba(0, 102, 255, 0.45);
    transform: translateY(-2px);
}

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

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(0, 102, 255, 0.05);
}

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

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn--sm {
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
}

.btn--lg {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition);
    background: transparent;
}

.nav--scrolled {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}

.nav__container {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    text-decoration: none;
}

.nav__logo:hover {
    color: var(--white);
}

.nav__logo-icon {
    display: flex;
    align-items: center;
}

.nav__logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav__links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav__link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav__link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.nav__link--active {
    color: var(--white);
    background: rgba(0, 102, 255, 0.1);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle--active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-menu--open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition);
}

.mobile-menu__link:hover {
    color: var(--white);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 5rem;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 14, 26, 0.4) 0%, rgba(10, 14, 26, 0.7) 50%, var(--dark) 100%),
        radial-gradient(ellipse at 30% 50%, rgba(0, 102, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease both;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero__title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s 0.1s ease both;
}

.hero__subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s 0.2s ease both;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s 0.3s ease both;
}

.hero__stats {
    display: flex;
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.8s 0.4s ease both;
}

.hero__stat-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    display: block;
}

.hero__stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.15rem;
}

/* --- Topic Cards --- */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.topic-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--dark-3);
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.topic-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.topic-card__image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.topic-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.topic-card:hover .topic-card__image img {
    transform: scale(1.05);
}

.topic-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--dark-3) 0%, transparent 60%);
}

.topic-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.topic-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.topic-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.topic-card__desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.topic-card__arrow {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    transition: gap var(--transition);
}

.topic-card:hover .topic-card__arrow {
    gap: 0.7rem;
}

/* --- Article Cards --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.article-card {
    background: var(--dark-3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.article-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-card__image img {
    transform: scale(1.05);
}

.article-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    z-index: 1;
}

.article-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.article-card__meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-dim);
}

.article-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.article-card__author strong {
    color: var(--text);
    font-weight: 500;
}

/* Featured Article (large) */
.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--dark-3);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text);
}

.featured-article:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.featured-article__image {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.featured-article__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-article:hover .featured-article__image img {
    transform: scale(1.03);
}

.featured-article__body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-article__badge {
    display: inline-flex;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.featured-article__title {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.featured-article__excerpt {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.featured-article__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* --- Newsletter / CTA Section --- */
.cta-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.cta-section__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        var(--dark-2);
}

.cta-card {
    position: relative;
    z-index: 1;
    background: rgba(30, 35, 64, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-card__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.cta-card__text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-card__form {
    display: flex;
    gap: 0.75rem;
    max-width: 440px;
    margin: 0 auto;
}

.cta-card__form input {
    flex: 1;
    padding: 0.85rem 1.2rem;
    background: var(--dark-3);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

.cta-card__form input:focus {
    outline: none;
    border-color: var(--primary);
}

.cta-card__form input::placeholder {
    color: var(--text-dim);
}

/* --- About / Team --- */
.about-hero {
    position: relative;
    padding: 10rem 0 5rem;
    overflow: hidden;
}

.about-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.about-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--dark) 0%, rgba(10, 14, 26, 0.6) 40%, var(--dark) 100%);
}

.about-hero__content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mission-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}

.mission-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.mission-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
}

.mission-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.mission-card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.team-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-card__image {
    height: 260px;
    overflow: hidden;
}

.team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-card:hover .team-card__image img {
    transform: scale(1.05);
}

.team-card__body {
    padding: 1.5rem;
}

.team-card__name {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.team-card__role {
    font-size: 0.82rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.team-card__bio {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Stats Bar --- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 0;
}

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

.stat-item__value {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-item__label {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* --- Insights Page --- */
.insights-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.insights-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 102, 255, 0.1) 0%, transparent 60%);
}

.insights-hero .container {
    position: relative;
    z-index: 1;
}

.topic-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.topic-filter__btn {
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-heading);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.topic-filter__btn:hover,
.topic-filter__btn--active {
    background: rgba(0, 102, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.3);
    color: var(--primary-light);
}

/* --- Topic Detail Page --- */
.topic-hero {
    position: relative;
    padding: 10rem 0 4rem;
    overflow: hidden;
}

.topic-hero__bg {
    position: absolute;
    inset: 0;
}

.topic-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.topic-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--dark) 0%, rgba(10, 14, 26, 0.5) 50%, var(--dark) 100%);
}

.topic-hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

/* --- Careers Page --- */
.careers-hero {
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.careers-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 102, 255, 0.08) 0%, transparent 50%);
}

.career-tracks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.career-track {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}

.career-track:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.career-track__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.career-track__title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.career-track__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.career-track__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.career-track__tag {
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.career-insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.career-insight-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
}

.career-insight-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.career-insight-card__value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.career-insight-card__label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.career-insight-card__trend {
    font-size: 0.82rem;
    font-weight: 500;
}

.career-insight-card__trend--up {
    color: var(--secondary);
}

.career-insight-card__trend--stable {
    color: var(--warning);
}

/* --- Contact Page --- */
.contact-hero {
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 40% 40%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 60%, rgba(0, 102, 255, 0.08) 0%, transparent 50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-info__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(0, 102, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-info__label {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
}

.contact-info__value {
    color: var(--text);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

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

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

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

.form-success {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.form-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #FCA5A5;
}

.form-errors ul {
    list-style: none;
    padding: 0;
}

.form-errors li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

/* --- Article Detail Page --- */
.article-hero {
    position: relative;
    padding: 10rem 0 4rem;
    overflow: hidden;
}

.article-hero__bg {
    position: absolute;
    inset: 0;
}

.article-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
}

.article-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--dark) 0%, rgba(10, 14, 26, 0.5) 40%, var(--dark) 100%);
}

.article-hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.article-hero__badge {
    display: inline-flex;
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.article-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.article-hero__excerpt {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.article-hero__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-dim);
}

.article-hero__author-info {
    display: flex;
    flex-direction: column;
}

.article-hero__author-info strong {
    color: var(--text);
    font-weight: 500;
}

.article-hero__author-info span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.article-hero__meta-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-dim);
}

/* Article Body */
.article-body {
    padding: 3rem 0 4rem;
}

.article-body__content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
}

.article-body__content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.article-body__content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body__content p {
    margin-bottom: 1.25rem;
}

.article-body__content code {
    background: var(--dark-3);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--secondary);
}

.article-body__content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.article-body__content ul,
.article-body__content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-body__content li {
    margin-bottom: 0.5rem;
}

.article-body__content a {
    color: var(--primary-light);
    text-decoration: underline;
    text-decoration-color: rgba(0, 102, 255, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}

.article-body__content a:hover {
    text-decoration-color: var(--primary);
}

.article-body__footer {
    max-width: 720px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-body__tags {
    display: flex;
    gap: 0.5rem;
}

.article-tag {
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid;
    transition: all var(--transition);
    text-decoration: none;
}

.article-tag:hover {
    opacity: 0.8;
}

.article-body__share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- 404 Page --- */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-page__code {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-page__text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* --- Glassmorphism Utility --- */
.glass {
    background: rgba(30, 35, 64, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
}

/* --- Page Header (generic) --- */
.page-header {
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 102, 255, 0.08) 0%, transparent 60%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article__image {
        min-height: 260px;
    }

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

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

    .career-tracks {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__actions .btn {
        display: none;
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .career-insights {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 2rem 1.5rem;
    }

    .cta-card__form {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2.2rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }
}

/* --- Footer --- */
.footer {
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    padding-top: 4rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer__brand {
    max-width: 300px;
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 1rem;
}

.footer__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer__social-link {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.footer__social-link:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.3);
    color: var(--primary-light);
}

.footer__heading {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 0.6rem;
}

.footer__list a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer__list a:hover {
    color: var(--primary-light);
}

.footer__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer__newsletter {
    display: flex;
    gap: 0.5rem;
}

.footer__newsletter input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.footer__newsletter input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer__newsletter input::placeholder {
    color: var(--text-dim);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-dim);
}

.footer__bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer__bottom-links a {
    color: var(--text-dim);
    font-size: 0.82rem;
}

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