/* The Verge Design System - Trading Website */

:root {
    /* Colors - Dark Mode */
    --bg-dark: #0A0A0A;
    --bg-dark-alt: #111111;
    --bg-card: #1A1A1A;
    --bg-card-alt: #1F1F1F;

    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #6B6B6B;

    --accent-yellow: #FCD303;
    --accent-blue: #0099FF;
    --border-color: #2A2A2A;
    --border-color-alt: #333333;

    /* Gradients */
    --gradient-yellow: linear-gradient(135deg, #FCD303 0%, rgba(252, 211, 3, 0) 100%);
    --gradient-blue: linear-gradient(135deg, #0099FF 0%, rgba(0, 153, 255, 0) 100%);

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-weight-heading: 800;
    --font-weight-body: 400;

    /* Spacing */
    --container-max-width: 1280px;
    --section-padding: 96px 40px;
    --card-padding: 32px;

    /* Border Radius */
    --radius-card: 16px;
    --radius-button: 12px;
}

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

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

/* Grid Pattern Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 100%);
    pointer-events: none;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    position: relative;
}

.nav-logo .tagline {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 6px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius-button);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    color: var(--text-primary);
    background: rgba(252, 211, 3, 0.1);
}

.nav-menu a.active {
    color: var(--bg-dark);
    background: var(--accent-yellow);
    box-shadow: 0 0 20px rgba(252, 211, 3, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 40px;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-yellow);
    opacity: 0.05;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    animation: heroFadeIn 1s ease-out;
}

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

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -4px;
    color: var(--text-primary);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(252, 211, 3, 0.1);
    }
    50% {
        text-shadow: 0 0 30px rgba(252, 211, 3, 0.2);
    }
}

.hero-title .highlight {
    color: var(--accent-yellow);
    display: block;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Introduction Cards */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.intro-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
    border-radius: var(--radius-card);
}

.intro-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(252, 211, 3, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: var(--radius-card);
}

.intro-card:hover::after {
    opacity: 1;
}

.intro-card:hover {
    border-color: rgba(252, 211, 3, 0.5);
    box-shadow: 0 12px 40px rgba(252, 211, 3, 0.2);
    transform: translateY(-8px);
}

.card-icon {
    font-size: 56px;
    margin-bottom: 24px;
    display: inline-block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(252, 211, 3, 0.2));
}

.intro-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.intro-card h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.intro-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

/* Masters Grid */
.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.master-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.master-card:hover {
    border-color: rgba(252, 211, 3, 0.3);
    box-shadow: 0 8px 30px rgba(252, 211, 3, 0.15);
    transform: translateY(-6px);
}

.master-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--bg-dark);
}

.master-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.master-tag {
    font-size: 12px;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-weight: 700;
}

.master-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.content-item {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-yellow);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.content-item:hover::before {
    transform: scaleY(1);
}

.content-item:hover {
    border-color: rgba(252, 211, 3, 0.5);
    box-shadow: 0 12px 40px rgba(252, 211, 3, 0.2);
    transform: translateY(-8px);
}

.content-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: 12px;
    letter-spacing: -2px;
    transition: all 0.3s ease;
}

.content-item:hover .content-number {
    opacity: 0.6;
    transform: scale(1.05);
}

.content-item h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.content-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Quote Section */
.quote-section {
    padding: 120px 40px;
}

.big-quote {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    color: var(--text-primary);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 80px;
}

.big-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -20px;
    font-size: 120px;
    color: var(--accent-yellow);
    opacity: 0.2;
    font-weight: 900;
    line-height: 1;
}

.big-quote footer {
    display: block;
    margin-top: 40px;
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--bg-dark-alt);
    border-top: 1px solid var(--border-color);
    padding: 80px 40px 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.footer-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

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

/* Content Page Layout */
.content-page {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    position: relative;
    z-index: 1;
}

.content-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 40px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    display: block;
    padding: 8px 0;
    border-left: 2px solid transparent;
    padding-left: 16px;
    transition: all 0.3s ease;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--accent-yellow);
    border-left-color: var(--accent-yellow);
}

.content-main {
    flex: 1;
    min-width: 0;
    padding-left: 80px;
}

.article-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -3px;
    color: var(--text-primary);
}

.article-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.article-content {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    margin-top: 80px;
    margin-bottom: 32px;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.article-content h2:first-of-type {
    margin-top: 0;
}

.article-content h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    margin-top: 56px;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.article-content p {
    margin-bottom: 28px;
    color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
    margin: 28px 0;
    padding-left: 32px;
}

.article-content li {
    margin-bottom: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.article-content strong {
    color: var(--accent-yellow);
    font-weight: 700;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-yellow);
    padding: 24px 32px;
    margin: 48px 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-primary);
}

.article-content code {
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent-yellow);
}

.article-content hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 80px 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-yellow);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent-yellow);
    color: var(--bg-dark);
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-card,
.content-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.intro-card:nth-child(1) { animation-delay: 0.1s; }
.intro-card:nth-child(2) { animation-delay: 0.2s; }
.intro-card:nth-child(3) { animation-delay: 0.3s; }

.content-item:nth-child(1) { animation-delay: 0.1s; }
.content-item:nth-child(2) { animation-delay: 0.15s; }
.content-item:nth-child(3) { animation-delay: 0.2s; }
.content-item:nth-child(4) { animation-delay: 0.25s; }
.content-item:nth-child(5) { animation-delay: 0.3s; }
.content-item:nth-child(6) { animation-delay: 0.35s; }
.content-item:nth-child(7) { animation-delay: 0.4s; }
.content-item:nth-child(8) { animation-delay: 0.45s; }
.content-item:nth-child(9) { animation-delay: 0.5s; }
.content-item:nth-child(10) { animation-delay: 0.55s; }

