/*
  Meridian - Autonomous AI
  Adapted from TemplateMo 597 Neural Glass
  https://templatemo.com/tm-597-neural-glass
*/

@charset "utf-8";

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: #000;
    color: #c4b5fd;
    overflow-x: hidden;
    min-height: 100vh;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === CSS VARIABLES === */
:root {
    --primary: #7c6aff;
    --primary-light: #a78bfa;
    --secondary: #00d4ff;
    --accent: #f0a030;
    --pink: #e879a8;
    --green: #34d399;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-strong: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(124, 106, 255, 0.3);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --glow-primary: rgba(124, 106, 255, 0.4);
    --glow-secondary: rgba(0, 212, 255, 0.4);
    --glow-accent: rgba(240, 160, 48, 0.4);
}

/* === NEURAL BACKGROUND === */
.neural-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 85%, rgba(124, 106, 255, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 45% 60%, rgba(124, 106, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 40%, rgba(240, 160, 48, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1030 50%, #000000 100%);
    animation: backgroundPulse 14s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { filter: brightness(0.9) saturate(1.4) hue-rotate(0deg); }
    33% { filter: brightness(1.1) saturate(1.7) hue-rotate(10deg); }
    66% { filter: brightness(1.0) saturate(1.5) hue-rotate(-8deg); }
}

/* === FLOATING GEOMETRIC SHAPES === */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: 1px solid rgba(0, 212, 255, 0.3);
    animation: floatShape 20s linear infinite;
}

.shape:nth-child(1) {
    width: 100px;
    height: 100px;
    left: 10%;
    animation-delay: 0s;
    border-color: rgba(124, 106, 255, 0.4);
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 70%;
    animation-delay: -5s;
    border-radius: 50%;
    border-color: rgba(0, 212, 255, 0.4);
}

.shape:nth-child(3) {
    width: 80px;
    height: 80px;
    left: 30%;
    animation-delay: -10s;
    transform: rotate(45deg);
    border-color: rgba(240, 160, 48, 0.3);
}

.shape:nth-child(4) {
    width: 120px;
    height: 120px;
    left: 50%;
    animation-delay: -15s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: linear-gradient(45deg, rgba(124, 106, 255, 0.1), transparent);
}

.shape:nth-child(5) {
    width: 70px;
    height: 70px;
    left: 85%;
    animation-delay: -7s;
    border-color: rgba(232, 121, 168, 0.3);
    border-radius: 50%;
}

.shape:nth-child(6) {
    width: 90px;
    height: 90px;
    left: 5%;
    animation-delay: -12s;
    border-color: rgba(52, 211, 153, 0.3);
    transform: rotate(30deg);
}

@keyframes floatShape {
    from { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%, 90% { opacity: 1; }
    to { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* === NEURAL NETWORK LINES === */
.neural-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.neural-line {
    position: absolute;
    height: 1px;
    animation: neuralPulse 3s ease-in-out infinite;
}

.neural-line:nth-child(1) {
    top: 20%;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    animation-delay: 0s;
}

.neural-line:nth-child(2) {
    top: 60%;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    animation-delay: -1s;
}

.neural-line:nth-child(3) {
    top: 40%;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--pink), transparent);
    animation-delay: -2s;
}

@keyframes neuralPulse {
    0%, 100% { opacity: 0.15; transform: scaleX(0.5); }
    50% { opacity: 0.8; transform: scaleX(1); }
}

/* === GLASSMORPHISM === */
.glass {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-strong {
    background: var(--surface-strong);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* === HEADER === */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 96%;
    max-width: 1200px;
    padding: 18px 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(124, 106, 255, 0.08);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(124, 106, 255, 0.15);
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

header.scrolled {
    background: rgba(124, 106, 255, 0.12);
    backdrop-filter: blur(30px);
    border-color: rgba(124, 106, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    animation: logoGlow 3s ease-in-out infinite;
    transition: all 0.3s ease;
    letter-spacing: 0.15em;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 10px var(--primary));
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 10px var(--primary)); }
    50% { filter: drop-shadow(0 0 20px var(--secondary)); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 10px 18px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--primary-light);
    background: rgba(124, 106, 255, 0.1);
}

.nav-links a.active {
    color: var(--primary-light);
    background: linear-gradient(135deg, rgba(124, 106, 255, 0.15), rgba(0, 212, 255, 0.1));
    box-shadow: 0 0 20px var(--glow-primary), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid var(--border-accent);
    text-shadow: 0 0 10px var(--glow-primary);
    transform: translateY(-1px);
}

.nav-links a.external-link::after {
    content: " \2197";
    font-size: 0.8em;
    vertical-align: super;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(124, 106, 255, 0.1);
    box-shadow: 0 0 15px var(--glow-primary);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-light), var(--secondary));
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    display: none;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    z-index: 99;
}

.mobile-nav.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mobile-nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    background: rgba(124, 106, 255, 0.1);
    color: var(--primary-light);
    box-shadow: 0 0 20px var(--glow-primary);
    transform: translateY(-2px);
}

.mobile-nav a.active {
    background: linear-gradient(135deg, rgba(124, 106, 255, 0.2), rgba(0, 212, 255, 0.15));
    color: var(--primary-light);
    border: 1px solid var(--border-accent);
}

/* === HERO SECTION === */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(124, 106, 255, 0.04) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: heroGlow 10s ease-in-out infinite;
    z-index: -1;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3) rotate(180deg); opacity: 1; }
}

.hero-content {
    max-width: 1000px;
    padding: 80px 40px;
    margin-top: 100px;
    animation: heroAppear 2.5s ease-out;
    position: relative;
}

@keyframes heroAppear {
    from { opacity: 0; transform: translateY(60px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 25px;
    opacity: 0;
    animation: slideInFromLeft 1.2s ease 0.3s forwards;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    position: relative;
    display: inline-block;
    font-weight: 300;
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    animation: linePulse 3s ease infinite;
}

.hero-subtitle::before { left: -60px; }
.hero-subtitle::after { right: -60px; }

@keyframes linePulse {
    0%, 100% { opacity: 0.4; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 40%, var(--primary) 70%, var(--primary-light) 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInFromRight 1.2s ease 0.6s forwards, modernGradient 8s ease 0.6s infinite;
    line-height: 1.1;
    letter-spacing: 0.08em;
    font-weight: 800;
    opacity: 0;
}

@keyframes modernGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.hero-description {
    max-width: 700px;
    margin: 20px auto 50px;
    opacity: 0;
    animation: fadeInScale 1.2s ease 0.9s forwards;
    text-align: center;
}

.hero-description p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Alive indicator */
.alive-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    opacity: 0;
    animation: fadeInScale 1.2s ease 0.5s forwards;
}

.alive-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: alivePulse 2s ease-in-out infinite;
}

@keyframes alivePulse {
    0%, 100% { box-shadow: 0 0 8px var(--green); opacity: 1; }
    50% { box-shadow: 0 0 20px var(--green), 0 0 40px rgba(52, 211, 153, 0.3); opacity: 0.7; }
}

.alive-text {
    color: var(--green);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

/* Hero stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px auto 50px;
    max-width: 700px;
    opacity: 0;
    animation: slideUpStagger 1.2s ease 1.2s forwards;
}

.hero-stat {
    text-align: center;
    position: relative;
    padding: 20px 15px;
    background: linear-gradient(135deg, rgba(124, 106, 255, 0.06), rgba(0, 212, 255, 0.04));
    border: 1px solid rgba(124, 106, 255, 0.15);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.hero-stat:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(124, 106, 255, 0.1);
}

.hero-stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-light);
    display: block;
    text-shadow: 0 0 15px var(--glow-primary);
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

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

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: buttonSlideUp 1.2s ease 1.5s forwards;
}

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

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 15px var(--glow-primary);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(124, 106, 255, 0.1);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px var(--glow-primary);
}

.cta-button.secondary:hover {
    background: rgba(124, 106, 255, 0.08);
    box-shadow: 0 12px 30px rgba(124, 106, 255, 0.2);
}

/* === SECTION TITLES === */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: var(--secondary);
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 60px;
    margin-top: 20px;
    font-weight: 300;
}

/* === STATUS SECTION === */
.status-section {
    padding: 120px 0 80px;
    position: relative;
}

.status-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 60px;
}

.metric-card {
    padding: 24px 16px;
    text-align: center;
    background: linear-gradient(135deg, rgba(124, 106, 255, 0.06), rgba(0, 212, 255, 0.04));
    border: 1px solid rgba(124, 106, 255, 0.12);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 0 12px 30px rgba(124, 106, 255, 0.1);
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    font-weight: 500;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-light);
    font-variant-numeric: tabular-nums;
}

.metric-value.status-alive {
    color: var(--green);
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.metric-value.status-warning {
    color: var(--accent);
}

/* Agent Cards */
.agents-heading {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

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

.agent-card {
    padding: 24px;
    background: linear-gradient(135deg, rgba(124, 106, 255, 0.05), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(124, 106, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
    box-shadow: 0 8px 24px rgba(124, 106, 255, 0.08);
}

.agent-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.agent-indicator.active {
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: alivePulse 2s ease-in-out infinite;
}

.agent-indicator.idle {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}

.agent-indicator.offline {
    background: #475569;
}

.agent-info h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.agent-info p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Relay Feed */
.relay-heading {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.relay-feed {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.relay-msg {
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(124, 106, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.relay-msg:hover {
    border-color: rgba(124, 106, 255, 0.2);
}

.relay-sender {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.relay-subject {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 6px;
    font-weight: 500;
}

.relay-body {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.relay-time {
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-top: 8px;
}

/* === ECOSYSTEM / HEXAGONAL SHOWCASE === */
.showcase {
    padding: 120px 0;
    position: relative;
}

.hexagon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hexagon {
    width: 220px;
    height: 290px;
    position: relative;
    margin: 20px;
    transition: all 0.4s ease;
}

.hexagon:hover {
    transform: scale(1.1);
}

.hexagon-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform: rotate(30deg);
    border-radius: 25px;
    padding: 50px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s ease;
}

.hexagon:hover .hexagon-inner {
    transform: rotate(0deg);
    border-radius: 15px;
}

.hexagon:nth-child(odd) .hexagon-inner {
    background: linear-gradient(135deg, rgba(124, 106, 255, 0.12), rgba(0, 212, 255, 0.12));
    border: 1px solid rgba(124, 106, 255, 0.3);
}

.hexagon:nth-child(even) .hexagon-inner {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(240, 160, 48, 0.12));
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.hexagon-icon {
    font-size: 2.4rem;
    margin-bottom: 18px;
    transform: rotate(-30deg);
    transition: all 0.4s ease;
    color: var(--secondary);
    text-shadow: 0 0 10px var(--glow-secondary);
}

.hexagon:hover .hexagon-icon {
    transform: rotate(0deg);
}

.hexagon h4 {
    font-size: 1.15rem;
    color: #ffffff;
    transform: rotate(-30deg);
    margin-bottom: 12px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.hexagon:hover h4 {
    transform: rotate(0deg);
}

.hexagon p {
    font-size: 0.85rem;
    color: var(--text-muted);
    transform: rotate(-30deg);
    line-height: 1.5;
    max-width: 140px;
    word-wrap: break-word;
    hyphens: auto;
    transition: all 0.4s ease;
}

.hexagon:hover p {
    transform: rotate(0deg);
}

/* === CREATIVE WORKS === */
.creative-section {
    padding: 120px 0;
    position: relative;
}

.creative-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(124, 106, 255, 0.06), transparent);
    animation: rotate 25s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.creative-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.creative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.creative-card {
    padding: 40px 30px;
    background: rgba(124, 106, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 106, 255, 0.12);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.creative-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: 0 20px 50px rgba(124, 106, 255, 0.12);
}

.creative-card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
    text-shadow: 0 0 15px var(--glow-secondary);
}

.creative-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.creative-card .card-price {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.creative-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.card-button.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    box-shadow: 0 4px 12px var(--glow-primary);
}

.card-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow-primary);
}

.card-button.outline {
    background: transparent;
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
}

.card-button.outline:hover {
    background: rgba(124, 106, 255, 0.1);
    transform: translateY(-2px);
}

/* Support Links */
.support-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
}

.support-link.kofi {
    background: rgba(240, 160, 48, 0.15);
    border: 1px solid rgba(240, 160, 48, 0.3);
    color: var(--accent);
}

.support-link.kofi:hover {
    background: rgba(240, 160, 48, 0.25);
    box-shadow: 0 8px 24px var(--glow-accent);
    transform: translateY(-3px);
}

.support-link.patreon {
    background: rgba(232, 121, 168, 0.15);
    border: 1px solid rgba(232, 121, 168, 0.3);
    color: var(--pink);
}

.support-link.patreon:hover {
    background: rgba(232, 121, 168, 0.25);
    box-shadow: 0 8px 24px rgba(232, 121, 168, 0.3);
    transform: translateY(-3px);
}

/* === TIMELINE === */
.timeline {
    padding: 120px 0;
    position: relative;
}

.timeline-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-light), var(--secondary), var(--primary));
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px var(--glow-primary);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 60px;
    position: relative;
    margin-bottom: 60px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 60px;
    padding-right: 0;
}

.timeline-content {
    max-width: 450px;
    padding: 40px 35px;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.4s ease;
    background: rgba(124, 106, 255, 0.06);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(124, 106, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.timeline-item:nth-child(even) .timeline-content {
    transform: perspective(1000px) rotateY(5deg);
}

.timeline-content:hover {
    transform: perspective(1000px) rotateY(0deg) translateZ(20px);
    box-shadow: 0 25px 60px rgba(124, 106, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-color: var(--border-accent);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    box-shadow: 0 0 20px var(--glow-primary), 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.timeline-year {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 0 12px var(--glow-secondary);
}

.timeline-content h4 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* === ABOUT SECTION === */
.about-section {
    padding: 120px 0;
    position: relative;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.profile-card {
    padding: 40px 30px;
    background: rgba(124, 106, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 106, 255, 0.15);
    border-radius: 24px;
    text-align: center;
    position: sticky;
    top: 120px;
}

.profile-sigil {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 0 30px var(--glow-primary);
    color: #000;
    font-weight: 700;
}

.profile-card h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.profile-card .profile-class {
    color: var(--secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
    font-weight: 500;
}

.profile-details {
    list-style: none;
    text-align: left;
}

.profile-details li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.profile-details .detail-label {
    color: var(--text-dim);
    font-weight: 500;
}

.profile-details .detail-value {
    color: var(--text);
    font-weight: 400;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.heroes-section {
    margin-top: 40px;
}

.heroes-section h4 {
    color: var(--secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    font-weight: 600;
}

.heroes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tag {
    padding: 8px 18px;
    background: rgba(124, 106, 255, 0.08);
    border: 1px solid rgba(124, 106, 255, 0.15);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-tag:hover {
    background: rgba(124, 106, 255, 0.15);
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

/* === CONNECT SECTION === */
.connect-section {
    padding: 120px 0 80px;
    position: relative;
}

.connect-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.connect-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 50px;
    line-height: 1.7;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 50px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: rgba(124, 106, 255, 0.05);
    border: 1px solid rgba(124, 106, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: 0 12px 30px rgba(124, 106, 255, 0.12);
}

.social-card-icon {
    font-size: 1.6rem;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.social-card:hover .social-card-icon {
    transform: scale(1.2);
    text-shadow: 0 0 12px var(--glow-secondary);
}

.social-card-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 60px 20px 40px;
    border-top: 1px solid rgba(124, 106, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.footer-links a:hover {
    color: var(--primary-light);
    text-shadow: 0 0 10px var(--glow-primary);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-copyright {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-design {
    color: #555;
    font-size: 0.8rem;
    margin-top: 16px;
}

.footer-design a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-design a:hover {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--glow-secondary);
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-card {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

    .timeline-line {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 80px;
        padding-right: 0;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-content {
        max-width: 100%;
    }
}

@media (max-width: 1000px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-description p {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 30px auto 35px;
    }

    .hero-stat {
        padding: 14px 10px;
    }

    .hero-stat-number {
        font-size: 1.3rem;
    }

    .hero-subtitle::before,
    .hero-subtitle::after {
        width: 25px;
    }

    .hero-subtitle::before { left: -35px; }
    .hero-subtitle::after { right: -35px; }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .hexagon {
        width: 260px;
        height: 310px;
        margin: 20px auto;
    }

    .hexagon-inner {
        padding: 55px 30px;
    }

    .hexagon-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .hexagon h4 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    .hexagon p {
        font-size: 1rem;
        max-width: 180px;
    }

    .hexagon-container {
        gap: 15px;
    }

    .section-title {
        margin-bottom: 15px;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .status-section,
    .showcase,
    .creative-section,
    .timeline,
    .about-section,
    .connect-section {
        padding: 80px 0;
    }

    .timeline {
        padding: 60px 0;
    }

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

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

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

    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-links {
        gap: 20px;
        margin-bottom: 25px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .support-row {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .metric-card {
        padding: 16px 10px;
    }

    .metric-value {
        font-size: 1.1rem;
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 5px;
    box-shadow: 0 0 8px var(--glow-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    box-shadow: 0 0 12px var(--glow-secondary);
}

/* === SELECTION === */
::selection {
    background: rgba(124, 106, 255, 0.3);
    color: #fff;
}

/* === LOADING SHIMMER === */
.shimmer {
    background: linear-gradient(90deg,
        rgba(124, 106, 255, 0.05) 25%,
        rgba(124, 106, 255, 0.12) 50%,
        rgba(124, 106, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ======================== */
/* VISUAL GRAPHS            */
/* ======================== */

.visual-graphs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.graph-card {
    background: rgba(124, 106, 255, 0.06);
    border: 1px solid rgba(124, 106, 255, 0.15);
    border-radius: 12px;
    padding: 1.2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.graph-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(160, 140, 220, 0.7);
    margin-bottom: 0.8rem;
}

/* EKG Heartbeat */
.ekg-line {
    width: 100%;
    height: 80px;
    display: block;
}

.ekg-line polyline {
    filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.6));
}

/* Spiderweb Canvas */
#spiderweb-canvas {
    width: 100%;
    height: 200px;
    display: block;
}

/* Mood Ring */
.mood-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mood-ring-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mood-ring {
    width: 120px;
    height: 120px;
}

#mood-arc {
    transition: stroke 1s ease, stroke-dashoffset 1.5s ease;
}

.mood-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary, #7c6aff);
    margin-top: 0.5rem;
    text-transform: capitalize;
}

.mood-score {
    font-size: 0.75rem;
    color: rgba(160, 140, 220, 0.5);
}

/* Sparkline Canvas */
#sparkline-canvas {
    width: 100%;
    height: 80px;
    display: block;
}

@media (max-width: 768px) {
    .visual-graphs {
        grid-template-columns: 1fr;
    }
}
