/* ================================================
   LEXCODE SNIPET — style.css (Landing Page)
   Dark Professional Theme
   ================================================ */

/* ------------------------------------------------
   CSS Variables & Reset
------------------------------------------------ */
:root {
    /* Colors */
    --bg-primary:      #0d0d0d;
    --bg-secondary:    #111111;
    --bg-card:         #181818;
    --bg-elevated:     #1e1e1e;
    --bg-glass:        rgba(24, 24, 24, 0.72);
    --bg-overlay:      rgba(13, 13, 13, 0.80);

    /* Borders */
    --border:          rgba(255, 255, 255, 0.07);
    --border-soft:     rgba(255, 255, 255, 0.10);
    --border-hover:    rgba(255, 255, 255, 0.18);
    --border-accent:   rgba(59, 130, 246, 0.35);

    /* Text */
    --text-primary:    #f0f0f0;
    --text-secondary:  #a3a3a3;
    --text-muted:      #5a5a5a;

    /* Accent */
    --accent:          #3b82f6;
    --accent-bright:   #60a5fa;
    --accent-glow:     rgba(59, 130, 246, 0.15);
    --accent-glow-md:  rgba(59, 130, 246, 0.25);

    /* Radius */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-xl:   22px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   220ms ease;
    --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.4);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg:    0 8px 40px rgba(0,0,0,0.6);
    --shadow-accent: 0 0 20px rgba(59, 130, 246, 0.2);
    --shadow-glow:   0 0 40px rgba(59, 130, 246, 0.15);

    /* Navbar height */
    --nav-h: 64px;

    /* Fonts */
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    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; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ------------------------------------------------
   ANIMATIONS
------------------------------------------------ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 0.8; transform: scale(1.05); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease both;
    animation-delay: var(--delay, 0ms);
}
.animate-scale {
    animation: scaleIn 0.5s ease both;
    animation-delay: var(--delay, 0ms);
}


/* ------------------------------------------------
   NAVBAR
------------------------------------------------ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(13, 13, 13, 0.65);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--border-soft);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}
.navbar.scrolled {
    background: rgba(13, 13, 13, 0.92);
    box-shadow: 0 1px 24px rgba(0,0,0,0.6);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    user-select: none;
}
.nav-logo-icon {
    color: var(--accent);
    font-size: 22px;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.nav-logo-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}
.logo-lex    { color: var(--text-primary); }
.logo-snipet { color: var(--accent-bright); }

/* Desktop nav menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    position: relative;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}
.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Burger button */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    padding: 4px;
    cursor: pointer;
    background: transparent;
    border: none;
}
.burger-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-smooth), opacity var(--transition-fast), background var(--transition-fast);
}
.burger.open .burger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
    background: var(--text-primary);
}
.burger.open .burger-line:nth-child(2) {
    opacity: 0;
}
.burger.open .burger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
    background: var(--text-primary);
}

/* Mobile dropdown */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(15, 15, 15, 0.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 12px 0 16px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
    max-height: 300px;
}
.mobile-link {
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast), padding-left var(--transition-base);
    border-left: 2px solid transparent;
}
.mobile-link:hover,
.mobile-link.active {
    color: var(--text-primary);
    padding-left: 36px;
    border-left-color: var(--accent);
}


/* ------------------------------------------------
   HERO SECTION
------------------------------------------------ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--nav-h) 24px 80px;
    overflow: hidden;
}

/* Hero Background */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Grid pattern */
.bg-grid {
    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: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 90%);
}

/* Glow orbs */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse-glow 6s ease-in-out infinite;
}
.glow-blue {
    width: 600px; height: 600px;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    animation-delay: 0s;
}
.glow-center {
    width: 400px; height: 400px;
    bottom: 0; right: 20%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    animation-delay: 3s;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}
.hero-badge .material-symbols-outlined {
    font-size: 15px;
    color: var(--accent);
    font-variation-settings: 'FILL' 0, 'wght' 300;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 20px;
}
.title-lex    { color: var(--text-primary); }
.title-snipet { color: var(--accent-bright); }
.title-icon {
    display: inline;
    font-size: 0.65em;
    vertical-align: middle;
    color: var(--accent);
    font-variation-settings: 'FILL' 0, 'wght' 200;
    margin-left: 8px;
    position: relative;
    top: -2px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.75;
}
.br-desktop { display: block; }

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero code decoration */
.hero-code-deco {
    margin-top: 56px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 20px;
    display: inline-block;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    animation: float 4s ease-in-out infinite;
}
.code-tag   { color: #569cd6; }
.code-var   { color: #9cdcfe; }
.code-op    { color: var(--text-muted); }
.code-fn    { color: #dcdcaa; }
.code-punct { color: var(--text-muted); }


/* ------------------------------------------------
   BUTTONS
------------------------------------------------ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: -0.01em;
    transition: all var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(8px);
}
.btn-primary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.2), 0 4px 16px rgba(0,0,0,0.4);
    transform: translateY(-2px) scale(1.02);
    color: #fff;
}
.btn-primary .material-symbols-outlined {
    font-size: 18px;
    font-variation-settings: 'FILL' 0, 'wght' 300;
}
.btn-emoji { font-size: 16px; line-height: 1; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: var(--radius-lg);
    background: transparent;
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
}
.btn-outline:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
    transform: translateY(-1px);
}
.btn-outline .material-symbols-outlined {
    font-size: 16px;
    font-variation-settings: 'FILL' 0, 'wght' 300;
    transition: transform var(--transition-smooth);
}
.btn-outline:hover .material-symbols-outlined {
    transform: translateY(3px);
}


/* ------------------------------------------------
   STATS SECTION
------------------------------------------------ */
.stats-section {
    padding: 0 0 80px;
}

.stats-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.stat-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 32px 24px;
    transition: background var(--transition-fast);
}
.stat-card:hover {
    background: rgba(59, 130, 246, 0.04);
}

.stat-number {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}
.stat-accent { color: var(--accent-bright); }

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.stat-divider {
    width: 1px;
    height: 64px;
    background: var(--border);
    flex-shrink: 0;
}


/* ------------------------------------------------
   SECTION HEADER
------------------------------------------------ */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 12px;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    background: rgba(59, 130, 246, 0.06);
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.75;
}


/* ------------------------------------------------
   FEATURES SECTION
------------------------------------------------ */
.features-section {
    padding: 80px 0;
    position: relative;
}

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

.feature-card {
    position: relative;
    padding: 36px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow-md), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), var(--shadow-glow);
}
.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}
.feature-card:hover .feature-icon-wrap {
    background: rgba(59, 130, 246, 0.18);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
}
.feature-icon-wrap .material-symbols-outlined {
    font-size: 22px;
    color: var(--accent-bright);
    font-variation-settings: 'FILL' 0, 'wght' 300;
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ------------------------------------------------
   CONTACT SECTION
------------------------------------------------ */
.contact-section {
    padding: 80px 0;
}

.contact-box {
    position: relative;
    text-align: center;
    padding: 64px 48px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    overflow: hidden;
}

.contact-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 4px 12px;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    background: rgba(59, 130, 246, 0.06);
}
.contact-badge .material-symbols-outlined {
    font-size: 14px;
    font-variation-settings: 'FILL' 0, 'wght' 300;
}

.contact-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.contact-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}


/* ------------------------------------------------
   FOOTER
------------------------------------------------ */
.footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
    background: var(--bg-secondary);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    margin-top: 12px;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links li a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast), padding-left var(--transition-base);
    display: inline-block;
}
.footer-links li a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-credit {
    font-size: 13px;
    color: var(--text-muted);
}

.heart {
    color: #ef4444;
    display: inline-block;
    animation: pulse-glow 2s ease-in-out infinite;
}


/* ------------------------------------------------
   RESPONSIVE — Tablet
------------------------------------------------ */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* ------------------------------------------------
   RESPONSIVE — Mobile
------------------------------------------------ */
@media (max-width: 640px) {
    :root { --nav-h: 58px; }

    .nav-menu  { display: none; }
    .burger    { display: flex; }
    .mobile-menu { display: flex; }

    .hero { padding: calc(var(--nav-h) + 24px) 20px 60px; }
    .br-desktop { display: none; }

    .hero-title { letter-spacing: -0.03em; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary,
    .btn-outline { width: 100%; justify-content: center; }

    .hero-code-deco { font-size: 11px; padding: 8px 14px; }

    .stats-section { padding: 0 0 56px; }
    .stats-wrapper { flex-direction: column; border-radius: var(--radius-lg); }
    .stat-divider { width: 80%; height: 1px; }
    .stat-card { padding: 24px 16px; }

    .features-section { padding: 56px 0; }
    .features-grid { grid-template-columns: 1fr; gap: 14px; }
    .feature-card { padding: 28px 22px; }

    .contact-section { padding: 56px 0; }
    .contact-box { padding: 40px 24px; }

    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand { grid-column: auto; }

    .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
