/* =========================
   MAGNORIX DESIGN SYSTEM
========================= */

:root {
    --bg-primary: #000000;
    --bg-surface: #131313;
    --bg-surface-light: #1f1f1f;

    --text-primary: #e2e2e2;
    --text-secondary: #c7c4d7;
    --text-muted: #908fa0;

    --accent-primary: #c0c1ff;
    --accent-primary-dark: #07006c;

    --border-light: rgba(255,255,255,0.08);

    --glass-bg: rgba(15, 23, 42, 0.6);

    --container-width: 1200px;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* =========================
   GLOBAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* =========================
   TYPOGRAPHY
========================= */

h1 {
    font-size: 72px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 700;
}

h2 {
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
}

h3 {
    font-size: 30px;
    line-height: 1.3;
    font-weight: 600;
}

p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   LAYOUT
========================= */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 64px;
    padding-right: 64px;
}

.section {
    padding-top: 120px;
    padding-bottom: 120px;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;

    background: rgba(19,19,19,0.6);
    backdrop-filter: blur(30px);

    border-bottom: 1px solid var(--border-light);
}

.navbar-inner {
    height: 100%;
    max-width: var(--container-width);

    margin: 0 auto;
    padding: 0 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links .active {
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 4px;
}

/* =========================
   LOGO
========================= */

.logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* =========================
   GLASS COMPONENTS
========================= */

.glass-card {
    background: var(--glass-bg);

    backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: var(--radius-lg);

    transition: var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-4px);

    border-color: rgba(255,255,255,0.14);
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    text-align: center;

    padding-top: 80px;
}

.hero-content {
    max-width: 1000px;
    z-index: 2;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;

    border-radius: 999px;

    background: rgba(192,193,255,0.08);

    border: 1px solid rgba(192,193,255,0.15);

    color: var(--accent-primary);

    margin-bottom: 32px;
}

.hero-description {
    max-width: 700px;
    margin: 32px auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;

    margin-top: 48px;
}

/* =========================
   EFFECTS
========================= */

.indigo-glow {
    position: absolute;

    width: 400px;
    height: 400px;

    background: radial-gradient(
        circle,
        rgba(99,102,241,0.15) 0%,
        rgba(0,0,0,0) 70%
    );

    filter: blur(60px);

    z-index: 0;
}

.edge-light {
    border: 1px solid;
    border-image-source: linear-gradient(
        135deg,
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0.04) 100%
    );
    border-image-slice: 1;
}

/* =========================
   UTILITIES
========================= */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-24 {
    margin-top: 24px;
}

.mt-48 {
    margin-top: 48px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-48 {
    margin-bottom: 48px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .container,
    .navbar-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    h1 {
        font-size: 42px;
        line-height: 1.15;
    }

    h2 {
        font-size: 32px;
    }

    .nav-links {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

/* =========================
   PRIMARY BUTTON ANIMATION
========================= */

.btn-primary {

    position: relative;

    overflow: hidden;
}

.btn-primary::before {

    content: "";

    position: absolute;

    top: -2px;
    left: -150%;

    width: 120%;
    height: calc(100% + 4px);

    background: linear-gradient(
        90deg,
        transparent,
        rgba(192,193,255,0.7),
        rgba(135,145,255,0.95),
        rgba(192,193,255,0.7),
        transparent
    );

    animation: borderSweep 5s linear infinite;

    pointer-events: none;

    opacity: 0.9;

    filter: blur(6px);
}

@keyframes borderSweep {

    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}