/* =========================================================
   Web Lynix Orbit — Global Styles
   Black & White · Glassmorphism · Modern
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
    /* Colors */
    --color-bg: #050505;
    --color-bg-soft: #0d0d0d;
    --color-surface: rgba(255, 255, 255, 0.04);
    --color-surface-hover: rgba(255, 255, 255, 0.07);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-strong: rgba(255, 255, 255, 0.18);
    --color-text: #f5f5f5;
    --color-text-muted: rgba(245, 245, 245, 0.55);
    --color-text-faint: rgba(245, 245, 245, 0.35);
    --color-white: #ffffff;
    --color-black: #000000;
    --color-error: #ff6b6b;
    --color-success: #4ade80;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.08);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input {
    font-family: inherit;
}

/* ---------- Animated Background ---------- */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s var(--ease) infinite;
}

.orb-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
    top: -120px;
    left: -120px;
    animation-duration: 22s;
}

.orb-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-duration: 28s;
    animation-direction: reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(180, 180, 180, 0.4), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 25s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -40px) scale(1.1); }
    50% { transform: translate(-40px, 50px) scale(0.95); }
    75% { transform: translate(30px, 30px) scale(1.05); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 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%);
}

/* ---------- Glass Utility ---------- */
.glass {
    background: var(--color-surface);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-glass);
}

/* ---------- Logo Mark ---------- */
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--color-white);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

.logo-mark svg {
    width: 100%;
    height: 100%;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-black);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-strong);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Button loading spinner */
.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-top-color: var(--color-black);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn-text {
    opacity: 0.4;
}

.btn.is-loading .btn-spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Navigation (Landing) ---------- */
.nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 5vw;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.brand-text strong {
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5vw 60px;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-family: var(--font-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 28px;
    color: var(--color-text-muted);
    animation: fadeUp 0.8s var(--ease) both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeUp 0.9s var(--ease) 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #888888 60%, #444444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.65;
    animation: fadeUp 1s var(--ease) 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 1.1s var(--ease) 0.3s both;
}

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 80px;
}

.feature-card {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease);
    animation: fadeUp 0.8s var(--ease) both;
}

.feature-card:nth-child(1) { animation-delay: 0.4s; }
.feature-card:nth-child(2) { animation-delay: 0.5s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-glass), var(--shadow-glow);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-white);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 40px 5vw;
    color: var(--color-text-faint);
    font-size: 0.88rem;
    border-top: 1px solid var(--color-border);
    margin-top: 60px;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav {
        padding: 18px 5vw;
    }

    .nav-actions .btn-ghost {
        display: none;
    }

    .hero {
        padding: 50px 5vw 40px;
    }

    .features {
        margin-top: 50px;
    }
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(255, 255, 255, 0.25);
    color: var(--color-white);
}