/* =========================================================================
   DESIGN TOKENS & UTILITIES
   ========================================================================= */
:root {
    /* Color Palette */
    --sky-base: #f0f9ff;
    --sky-light: #e0f2fe;
    --sky-medium: #bae6fd;
    --sky-blue: #38bdf8;
    --sky-deep: #0284c7;
    --cyan-light: #ecfeff;
    --cyan-soft: #cffafe;
    --cyan-bright: #0891b2;
    --cloud-white: #ffffff;
    --cloud-mist: #f8fafc;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #f8fafc;

    /* Theme Accent Colors */
    --tg-color: #229ed9;
    --tg-bg-soft: #e0f2fe;
    --dc-color: #5865f2;
    --dc-bg-soft: #e0e7ff;
    --green-accent: #10b981;
    --red-accent: #ef4444;
    --gold-accent: #f59e0b;

    /* Borders & Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-bg-hover: rgba(255, 255, 255, 0.65);
    --glass-bg-dark: rgba(15, 23, 42, 0.05);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.12);
    --card-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.05), 0 8px 10px -6px rgba(14, 165, 233, 0.05);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transition Speed */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.4s var(--ease-out-expo);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--sky-base);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

/* =========================================================================
   ATMOSPHERIC SKY BACKGROUND
   ========================================================================= */
#sky-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
}

.sky-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #bae6fd 0%, #e0f2fe 35%, #ecfeff 70%, #ffffff 100%);
}

.sun-glow {
    position: absolute;
    top: -10vw;
    right: -10vw;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(224,242,254,0.3) 50%, rgba(255,255,255,0) 70%);
    filter: blur(50px);
    animation: pulseGlow 15s ease-in-out infinite alternate;
}

/* Cloud Layers (Parallax Drifting) */
.cloud-layer {
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-position: bottom;
    opacity: 0.25;
}

.cloud-parallax-1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' fill='%23ffffff'%3E%3Cpath d='M0,192C120,224,240,256,360,240C480,224,600,160,720,160C840,160,960,224,1080,240C1200,256,1320,224,1440,192L1440,320L0,320Z'/%3E%3C/svg%3E");
    background-size: 1440px auto;
    bottom: 0;
    animation: drift 160s linear infinite;
    opacity: 0.6;
    z-index: -3;
}

.cloud-parallax-2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' fill='%23ecfeff'%3E%3Cpath d='M0,96C180,128,360,160,540,160C720,160,900,128,1080,112C1260,96,1440,64,1620,80L1620,320L0,320Z'/%3E%3C/svg%3E");
    background-size: 1600px auto;
    bottom: 20px;
    animation: driftReverse 110s linear infinite;
    opacity: 0.4;
    z-index: -4;
}

.cloud-parallax-3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' fill='%23e0f2fe'%3E%3Cpath d='M0,128C240,96,480,64,720,96C960,128,1200,224,1320,272L1320,320L0,320Z'/%3E%3C/svg%3E");
    background-size: 1800px auto;
    bottom: -10px;
    animation: drift 220s linear infinite;
    opacity: 0.3;
    z-index: -5;
}

/* Particle effect */
.sky-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    pointer-events: none;
    animation: floatUp 8s linear infinite;
}

/* Animations Keyframes */
@keyframes drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes driftReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@keyframes floatUp {
    0% {
        transform: translateY(105vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(-5vh) translateX(100px) scale(1.2);
        opacity: 0;
    }
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 0.95; }
}

/* =========================================================================
   NAVIGATION HEADER
   ========================================================================= */
.floating-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px;
    padding: 10px 24px;
    z-index: 1000;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.floating-header.scrolled {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 12px 40px;
    background: rgba(255, 255, 255, 0.85);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    transition: var(--transition-fast);
}

.nav-logo-img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(2, 132, 199, 0.2));
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--sky-deep);
    letter-spacing: -0.5px;
}

.logo-subtext {
    font-weight: 400;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}

.nav-item {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover {
    color: var(--sky-deep);
    background: rgba(255, 255, 255, 0.6);
}

.nav-item.active {
    color: var(--cloud-white);
    background: var(--sky-deep);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--sky-deep);
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    transform-origin: center;
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================================
   CLOUD SWEEP PAGE TRANSITIONS
   ========================================================================= */
#cloud-sweeper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sweep-cloud {
    position: absolute;
    width: 70vw;
    height: 100vh;
    background-color: #ffffff;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.6s;
    background-size: cover;
}

.cloud-left {
    left: -70vw;
    border-radius: 0 40% 40% 0 / 0 50% 50% 0;
    box-shadow: 10px 0 50px rgba(2, 132, 199, 0.1);
    background: radial-gradient(ellipse at right, #ffffff 60%, #bae6fd 100%);
}

.cloud-right {
    right: -70vw;
    border-radius: 40% 0 0 40% / 50% 0 0 50%;
    box-shadow: -10px 0 50px rgba(2, 132, 199, 0.1);
    background: radial-gradient(ellipse at left, #ffffff 60%, #bae6fd 100%);
}

.sweep-fog {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-color: rgba(224, 242, 254, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Sweeper Active State */
#cloud-sweeper.cloud-sweep-active {
    pointer-events: auto;
}

#cloud-sweeper.cloud-sweep-active .cloud-left {
    transform: translateX(65vw);
    opacity: 1;
}

#cloud-sweeper.cloud-sweep-active .cloud-right {
    transform: translateX(-65vw);
    opacity: 1;
}

#cloud-sweeper.cloud-sweep-active .sweep-fog {
    opacity: 1;
}

/* =========================================================================
   PAGE VIEWS GENERAL LAYOUT
   ========================================================================= */
.page-view {
    display: none;
    width: 100%;
    opacity: 0;
    padding-top: 100px; /* Offset for floating header */
    animation: fadeInView 0.5s var(--ease-out-expo) forwards;
}

.page-view.active {
    display: block;
}

@keyframes fadeInView {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   HOME PAGE ELEMENTS
   ========================================================================= */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto 100px auto;
    gap: 40px;
    min-height: calc(80vh - 100px);
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(224, 242, 254, 0.8);
    border: 1px solid rgba(2, 132, 199, 0.2);
    color: var(--sky-deep);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.display-title {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--sky-deep) 0%, var(--cyan-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-weight: 400;
}

.hero-subtitle strong {
    color: var(--sky-deep);
    font-weight: 600;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.btn-primary {
    background-color: var(--sky-deep);
    color: var(--cloud-white);
}

.btn-primary:hover {
    background-color: #0270a8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.25);
}

.btn-secondary {
    background-color: var(--cloud-white);
    color: var(--sky-deep);
    border: 1px solid var(--sky-medium);
}

.btn-secondary:hover {
    background-color: var(--sky-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.1);
}

.hero-visual {
    flex: 0.8;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-mockup-card {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--glass-shadow);
    width: 240px;
    transition: var(--transition-smooth);
}

.tg-card-float {
    top: 30px;
    left: 20px;
    animation: floatCard1 8s ease-in-out infinite;
}

.dc-card-float {
    bottom: 30px;
    right: 20px;
    animation: floatCard2 8s ease-in-out infinite;
}

.floating-mockup-card .logo-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.tg-color { color: var(--tg-color); }
.dc-color { color: var(--dc-color); }

.floating-mockup-card h4 {
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.floating-mockup-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.floating-relay-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--tg-color), var(--dc-color));
    border-radius: 5px;
    transform: translate(-50%, -50%) rotate(-25deg);
    animation: beamSync 3s linear infinite;
    opacity: 0.6;
}

@keyframes floatCard1 {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes floatCard2 {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(15px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

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

/* =========================================================================
   SCROLL STORYTELLING: RELAY
   ========================================================================= */
.relay-journey-section, .subpage-section, .overview-section, .philosophy-section, .home-clipping-section, .invite-section {
    width: 90%;
    max-width: 1200px;
    margin: 80px auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.align-left {
    text-align: left;
}

.section-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--sky-deep);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header.align-left .section-desc {
    margin: 0;
}

.scroll-story-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 120px;
    padding: 40px 0;
}

.story-progress-line {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--sky-light);
    z-index: 1;
}

.story-progress-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--tg-color) 0%, var(--sky-blue) 50%, var(--dc-color) 100%);
    transition: height 0.1s ease;
}

.story-step {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.story-step:nth-child(even) {
    flex-direction: row-reverse;
}

.story-visual-pane {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
}

.story-text-pane {
    flex: 1;
    padding: 0 40px;
}

.step-num {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--sky-medium);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 10px;
}

.story-text-pane h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.story-text-pane p {
    color: var(--text-secondary);
}

/* =========================================================================
   MOCKUP INTERFACES & SIMULATORS
   ========================================================================= */
/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 480px;
    border: 8px solid var(--text-primary);
    border-radius: 36px;
    background-color: #fafbfc;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.phone-header {
    background-color: var(--tg-color);
    color: var(--cloud-white);
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.phone-body {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    font-size: 0.8rem;
}

.chat-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    word-break: break-word;
}

.chat-bubble.received {
    background-color: #e4e8eb;
    align-self: flex-start;
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

.chat-bubble.sent {
    background-color: #229ed9;
    color: var(--cloud-white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px 0;
    align-self: center;
    width: 90%;
}

.chat-btn {
    border: 1px solid var(--tg-color);
    background: transparent;
    color: var(--tg-color);
    padding: 6px;
    border-radius: 15px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.chat-btn.active {
    background-color: var(--tg-color);
    color: var(--cloud-white);
}

/* Database Mockup */
.database-mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 30px;
    width: 280px;
    box-shadow: var(--glass-shadow);
}

.db-disk {
    background-color: var(--sky-deep);
    color: var(--cloud-white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-flow {
    height: 60px;
    width: 2px;
    background-color: var(--sky-medium);
    position: relative;
}

.data-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--cyan-bright);
    left: -3px;
}

#db-particle-1 {
    animation: particleDrift1 2s linear infinite;
}

#db-particle-2 {
    animation: particleDrift2 2s linear infinite;
}

.ticket-document {
    background: #ffffff;
    border: 1px solid var(--sky-light);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    width: 100%;
}

.ticket-document code {
    display: block;
    background-color: #f1f5f9;
    padding: 6px;
    border-radius: 4px;
    margin-top: 4px;
}

@keyframes particleDrift1 {
    0% { top: 0; }
    100% { top: 100%; }
}

@keyframes particleDrift2 {
    0% { top: 50%; }
    100% { top: 150%; opacity: 0; }
}

/* Discord Mockup */
.discord-mockup {
    width: 320px;
    height: 250px;
    background-color: #313338;
    color: #dbdee1;
    border-radius: var(--radius-md);
    display: flex;
    overflow: hidden;
    font-size: 0.8rem;
    box-shadow: var(--card-shadow);
}

.discord-sidebar {
    width: 120px;
    background-color: #2b2d31;
    display: flex;
    flex-direction: column;
}

.sidebar-guild {
    padding: 10px;
    font-weight: 700;
    font-size: 0.75rem;
    border-bottom: 1px solid #1f2023;
    color: #ffffff;
}

.sidebar-channels {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chan-cat {
    font-size: 0.65rem;
    font-weight: 700;
    color: #949ba4;
    padding-top: 8px;
}

.chan-item {
    padding: 4px 6px;
    border-radius: 4px;
    color: #949ba4;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chan-item.active {
    background-color: #404249;
    color: #ffffff;
}

.pulse-border {
    animation: alertPulse 2s infinite;
}

.discord-chat {
    flex: 1;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.embed-card {
    background-color: #1e1f22;
    border-radius: 4px;
    padding: 10px;
    border-left: 4px solid var(--dc-color);
    width: 100%;
}

.embed-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.embed-field {
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.embed-desc {
    font-size: 0.7rem;
    color: #b5bac1;
    margin-top: 6px;
}

.embed-buttons {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.embed-btn {
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    color: #ffffff;
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: 600;
}

.embed-btn.green { background-color: var(--green-accent); }
.embed-btn.green:hover { background-color: #0d9488; }

@keyframes alertPulse {
    0% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(88, 101, 242, 0); }
    100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0); }
}

/* Relay Animation Box */
.relay-animation-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 320px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: var(--radius-md);
    position: relative;
}

.side-node {
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--cloud-white);
    font-size: 0.8rem;
    z-index: 2;
}

.tg-node { background-color: var(--tg-color); }
.dc-node { background-color: var(--dc-color); }

.relay-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.relay-cloud-hub {
    color: var(--sky-deep);
    font-size: 1.8rem;
    animation: floatCard1 4s ease-in-out infinite;
}

.message-packet {
    position: absolute;
    background-color: var(--cyan-bright);
    color: var(--cloud-white);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    animation: messageRoute 4s linear infinite;
    top: 5px;
}

@keyframes messageRoute {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    40% { left: 45%; top: -15px; }
    60% { left: 55%; top: -15px; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* =========================================================================
   GRID LAYOUTS & CONTAINERS
   ========================================================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cloud-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.cloud-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--sky-blue), var(--cyan-soft));
    opacity: 0;
    transition: var(--transition-fast);
}

.cloud-card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.15);
}

.cloud-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.2rem;
    color: var(--sky-deep);
    margin-bottom: 20px;
}

.cloud-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.cloud-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Philosophy Cards */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.phil-item {
    background: rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--card-shadow);
}

.phil-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sky-blue);
    margin-bottom: 10px;
}

.phil-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.phil-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================================================
   SUBPAGES: DISCORD / TELEGRAM HERO & SECTIONS
   ========================================================================= */
.subpage-hero {
    text-align: center;
    width: 90%;
    max-width: 800px;
    margin: 40px auto 80px auto;
}

.subpage-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.subpage-badge.tg-color { background-color: var(--tg-bg-soft); color: var(--tg-color); }
.subpage-badge.dc-color { background-color: var(--dc-bg-soft); color: var(--dc-color); }

.subpage-hero h1 {
    font-size: 3.2rem;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.subpage-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 60px;
    margin-bottom: 80px;
}

.subpage-section.alt-bg {
    background: rgba(255, 255, 255, 0.6);
}

.split-layout {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
}

.split-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.feature-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.feature-bullets li i {
    color: var(--sky-deep);
    margin-top: 4px;
}

.split-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* =========================================================================
   TELEGRAM CLIENT INTAKE SIMULATOR
   ========================================================================= */
.simulator-card {
    width: 100%;
    max-width: 380px;
    height: 480px;
    background-color: #f1f5f9;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--sky-light);
}

.simulator-header {
    color: var(--cloud-white);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.simulator-header i {
    font-size: 1.5rem;
}

.simulator-header .sim-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.simulator-header .sim-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.tg-bg { background-color: var(--tg-color); }
.dc-bg { background-color: #2b2d31; }

.simulator-body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    background-color: #f1f5f9;
}

.simulator-body.dc-chat-body {
    background-color: #313338;
    color: #dbdee1;
}

/* Interactive Wizard Buttons */
.chat-options-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.sim-option-btn {
    background-color: var(--cloud-white);
    border: 1px solid var(--tg-color);
    color: var(--tg-color);
    font-weight: 600;
    padding: 8px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.sim-option-btn:hover {
    background-color: var(--tg-bg-soft);
}

.chat-input-pane {
    display: flex;
    gap: 8px;
    padding: 12px;
    background-color: var(--cloud-white);
    border-top: 1px solid var(--sky-light);
}

.sim-input {
    flex: 1;
    border: 1px solid var(--sky-medium);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    outline: none;
}

.sim-send-btn {
    background-color: var(--tg-color);
    color: var(--cloud-white);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* =========================================================================
   TELEGRAM MODERATION DEMO CONTROLS
   ========================================================================= */
.interactive-controls h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.interactive-controls .small-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.control-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--sky-medium);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.control-card:hover {
    background-color: var(--cloud-white);
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.05);
}

.control-card strong {
    font-family: 'Outfit', sans-serif;
    color: var(--sky-deep);
    font-size: 1rem;
    margin-bottom: 2px;
}

.control-card span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sender-name {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.text-blue { color: #38bdf8; }
.text-red { color: #ef4444; }

/* =========================================================================
   DISCORD SERVER LAYOUT PREVIEWS
   ========================================================================= */
.control-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.control-tab-btn {
    border: 1px solid var(--sky-medium);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.control-tab-btn:hover, .control-tab-btn.active {
    background-color: var(--sky-deep);
    color: var(--cloud-white);
    border-color: var(--sky-deep);
}

.discord-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
}

.discord-message .dc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--dc-color);
    color: var(--cloud-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.discord-message .dc-avatar.bot {
    background-color: var(--sky-deep);
}

.dc-msg-content {
    flex: 1;
}

.dc-user {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.85rem;
    margin-right: 6px;
}

.dc-user.bot::after {
    content: "BOT";
    background-color: var(--dc-color);
    color: var(--cloud-white);
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

.dc-embed {
    background-color: #1e1f22;
    border-radius: 4px;
    padding: 12px;
    margin-top: 4px;
    position: relative;
    border-left: 4px solid var(--sky-blue);
    width: 100%;
    max-width: 320px;
}

.embed-border {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.embed-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.embed-field {
    flex: 1;
    min-width: 120px;
}

.embed-field strong {
    display: block;
    color: #ffffff;
    font-size: 0.65rem;
}

/* =========================================================================
   MUSIC PLAYER COG INTERACTIVE DEMO
   ========================================================================= */
.music-section-layout {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.music-info {
    flex: 1.1;
}

.music-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.music-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.music-features li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.music-features li i {
    color: var(--sky-blue);
    margin-top: 4px;
}

.music-widget-container {
    flex: 0.9;
    display: flex;
    justify-content: center;
}

.music-player-widget {
    width: 300px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.player-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.player-badge {
    background-color: var(--gold-accent);
    color: var(--text-primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.audio-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.audio-bars .bar {
    width: 3px;
    background-color: var(--sky-deep);
    border-radius: 1px;
    height: 4px;
    animation: audioWave 1.2s ease-in-out infinite alternate;
}

.audio-bars .bar:nth-child(2) { height: 8px; animation-delay: 0.2s; }
.audio-bars .bar:nth-child(3) { height: 12px; animation-delay: 0.4s; }
.audio-bars .bar:nth-child(4) { height: 6px; animation-delay: 0.1s; }

.music-player-widget.paused .audio-bars .bar {
    animation-play-state: paused;
    height: 3px !important;
}

@keyframes audioWave {
    0% { height: 3px; }
    100% { height: 16px; }
}

.track-details {
    text-align: center;
    margin-bottom: 20px;
}

.track-details h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.player-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.time-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.prog-bar-bg {
    flex: 1;
    height: 6px;
    background-color: var(--sky-light);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.prog-bar-fill {
    height: 100%;
    background-color: var(--sky-deep);
    border-radius: 4px;
    position: absolute;
    left: 0;
    top: 0;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.p-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.p-btn:hover {
    background-color: rgba(2, 132, 199, 0.1);
    color: var(--sky-deep);
}

.p-btn.play-pause-btn {
    background-color: var(--sky-deep);
    color: var(--cloud-white);
    font-size: 1rem;
    width: 44px;
    height: 44px;
}

.p-btn.play-pause-btn:hover {
    background-color: #0270a8;
    color: var(--cloud-white);
    transform: scale(1.05);
}

.p-btn.active-control {
    color: var(--sky-deep);
    font-weight: 700;
}

.player-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--sky-medium);
    padding-top: 15px;
}

.vol-control {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.vol-slider {
    width: 60px;
    height: 4px;
    accent-color: var(--sky-deep);
    cursor: pointer;
}

.playlist-btn {
    background: transparent;
    border: none;
    color: var(--sky-deep);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}

.playlist-btn:hover {
    text-decoration: underline;
}

/* Player Queue Overlay */
.player-queue-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    padding: 20px;
    z-index: 10;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.player-queue-overlay.visible {
    top: 0;
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--sky-light);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.close-q-btn {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
}

.queue-list {
    flex: 1;
    list-style: none;
    overflow-y: auto;
    font-size: 0.8rem;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

.queue-item.active {
    color: var(--sky-deep);
    font-weight: 600;
}

/* =========================================================================
   CLIPPER CAMPAIGN DASHBOARD SIMULATOR
   ========================================================================= */
.clipper-dashboard-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    display: flex;
    overflow: hidden;
    min-height: 480px;
    margin-top: 40px;
}

.dash-sidebar {
    width: 240px;
    border-right: 1px solid var(--sky-medium);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: rgba(255, 255, 255, 0.2);
}

.dash-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--sky-deep);
    color: var(--cloud-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.dash-profile h4 {
    font-size: 1rem;
}

.badge-clipper {
    font-size: 0.7rem;
    background-color: var(--tg-bg-soft);
    color: var(--tg-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.dash-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-nav-item {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.dash-nav-item:hover {
    background-color: rgba(255,255,255,0.4);
    color: var(--sky-deep);
}

.dash-nav-item.active {
    background-color: var(--sky-deep);
    color: var(--cloud-white);
}

.dash-main {
    flex: 1;
    padding: 40px;
}

.dash-tab-pane {
    display: none;
    animation: fadeInView 0.3s ease forwards;
}

.dash-tab-pane.active {
    display: block;
}

.dash-tab-pane h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

/* Campaign Grid */
.campaign-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.camp-dash-card {
    background-color: var(--cloud-white);
    border: 1px solid var(--sky-light);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.camp-dash-card h4 {
    font-size: 1.15rem;
}

.camp-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.camp-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.camp-action-btn {
    background-color: var(--sky-deep);
    color: var(--cloud-white);
    border: none;
    border-radius: 20px;
    padding: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 8px;
}

.camp-action-btn:hover { background-color: #0270a8; }

/* Stats Widgets */
.stats-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-widget {
    background-color: var(--cloud-white);
    border: 1px solid var(--sky-light);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.stat-widget .stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--sky-deep);
}

.stat-widget .stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Dashboard tables */
.dash-table-container {
    overflow-x: auto;
    width: 100%;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.dash-table th {
    background-color: var(--sky-light);
    color: var(--sky-deep);
    padding: 12px;
    font-weight: 700;
}

.dash-table td {
    padding: 12px;
    border-bottom: 1px solid var(--sky-light);
}

.dash-table tr:hover {
    background-color: rgba(2, 132, 199, 0.02);
}

/* Clipper Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-card {
    background-color: var(--cloud-white);
    border-radius: var(--radius-md);
    padding: 30px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content-card {
    transform: translateY(0);
}

.modal-content-card h3 {
    margin-bottom: 15px;
}

.modal-input {
    width: 100%;
    border: 1px solid var(--sky-medium);
    border-radius: 8px;
    padding: 10px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    outline: none;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* =========================================================================
   COMMAND DOCUMENTATION EXPLORER
   ========================================================================= */
.explorer-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--glass-border);
}

.explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background-color: var(--cloud-white);
    border: 1px solid var(--sky-medium);
    border-radius: 30px;
    padding: 10px 16px 10px 40px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--sky-deep);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.category-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--cloud-white);
    color: var(--sky-deep);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.05);
}

.explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    min-height: 200px;
}

.cmd-doc-card {
    background-color: var(--cloud-white);
    border: 1px solid var(--sky-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: var(--transition-fast);
}

.cmd-doc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.cmd-doc-card h3 {
    font-size: 1.15rem;
    color: var(--sky-deep);
    font-family: 'Outfit', sans-serif;
    word-break: break-all;
}

.cmd-cat-badge {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    background-color: var(--cyan-light);
    color: var(--cyan-bright);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.cmd-doc-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex: 1;
}

.cmd-code-block {
    background-color: #f1f5f9;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--text-primary);
    overflow-x: auto;
}

.cmd-perms {
    font-size: 0.7rem;
    color: var(--red-accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 1rem;
}

/* =========================================================================
   PRIVACY POLICY & TERMS PAGES
   ========================================================================= */
.legal-container {
    display: flex;
    gap: 40px;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto 80px auto;
    align-items: flex-start;
}

.legal-sidebar {
    width: 260px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--glass-shadow);
    position: sticky;
    top: 120px;
}

.legal-sidebar h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--sky-medium);
    padding-bottom: 8px;
}

.legal-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-nav-link {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.legal-nav-link:hover {
    background-color: rgba(255,255,255,0.4);
    color: var(--sky-deep);
}

.legal-nav-link.active {
    background-color: var(--sky-deep);
    color: var(--cloud-white);
}

.legal-content {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--glass-shadow);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

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

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--sky-deep);
    border-bottom: 1px solid var(--sky-light);
    padding-bottom: 6px;
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1rem;
}

.legal-section ul {
    list-style-type: square;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-address {
    background-color: var(--cloud-mist);
    border-left: 4px solid var(--sky-deep);
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-style: normal;
    font-size: 0.9rem;
}

/* Accordion components inside legal content */
.accordion-item {
    border: 1px solid var(--sky-light);
    border-radius: 8px;
    background-color: var(--cloud-white);
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background-color: var(--cloud-mist);
    border: none;
    padding: 16px 20px;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.accordion-header:hover {
    background-color: var(--sky-light);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding: 20px;
}

/* =========================================================================
   SKY THEMED FOOTER
   ========================================================================= */
.sky-footer {
    position: relative;
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.6) 0%, rgba(186, 230, 253, 0.9) 100%);
    border-top: 1px solid var(--sky-medium);
    padding: 60px 0 20px 0;
    margin-top: 100px;
    z-index: 1;
}

.footer-cloud-bg {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' fill='%23e0f2fe'%3E%3Cpath d='M0,224C120,240,240,256,360,256C480,256,600,240,720,224C840,208,960,192,1080,208C1200,224,1320,272,1440,256L1440,320L0,320Z'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 1440px auto;
    opacity: 0.6;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(2, 132, 199, 0.1);
}

.footer-brand {
    display: flex;
    gap: 15px;
    align-items: center;
    max-width: 320px;
}

.footer-logo {
    height: 48px;
    width: auto;
}

.footer-brand h3 {
    font-size: 1.25rem;
    color: var(--sky-deep);
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-links h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--sky-deep);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--sky-deep);
}

.footer-bottom {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto 0 auto;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================================================
   RESPONSIVE DESIGN — COMPREHENSIVE MULTI-BREAKPOINT SYSTEM
   ========================================================================= */

/* ── Fluid Typography Base ─────────────────────────────────────────────── */
.display-title {
    font-size: clamp(2.2rem, 5vw + 0.5rem, 3.8rem);
    letter-spacing: clamp(-1px, -0.05em, -2px);
}

.subpage-hero h1 {
    font-size: clamp(2rem, 4vw + 0.5rem, 3.2rem);
}

.section-header h2 {
    font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.2rem);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw + 0.25rem, 1.25rem);
}

/* ── Tablet Landscape (≤1024px) ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        margin: 20px auto 60px auto;
        min-height: unset;
        padding-top: 20px;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        max-width: 420px;
        height: 280px;
        margin: 0 auto;
    }

    .floating-mockup-card {
        width: 190px;
        padding: 16px;
    }

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
        gap: 36px;
    }

    .split-visual {
        justify-content: center;
    }

    .music-section-layout {
        flex-direction: column;
        gap: 36px;
    }

    .music-widget-container {
        display: flex;
        justify-content: center;
    }

    .clipper-dashboard-card {
        flex-direction: column;
    }

    .dash-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--sky-medium);
        padding: 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .dash-nav {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 6px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .dash-nav::-webkit-scrollbar { display: none; }

    .dash-nav-item {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .dash-main {
        padding: 24px;
    }

    .legal-container {
        flex-direction: column;
    }

    .legal-sidebar {
        width: 100%;
        position: static;
    }

    .legal-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .legal-nav-link {
        white-space: nowrap;
    }

    .journey-layout {
        flex-direction: column;
        gap: 20px;
    }

    .journey-timeline {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-left: none;
        border-top: none;
        border-bottom: 2px solid var(--sky-medium);
        padding-left: 0;
        padding-top: 0;
        padding-bottom: 12px;
        margin-left: 0;
        margin-top: 8px;
        gap: 12px;
        scrollbar-width: none;
    }

    .journey-timeline::-webkit-scrollbar {
        display: none;
    }

    .journey-step-node {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .journey-detail-box {
        min-height: 160px;
        width: 100%;
    }

    .home-clipping-section .split-layout,
    .home-clipping-section .split-layout.reverse {
        flex-direction: column;
        align-items: center;
    }

    .home-clipping-section .split-text {
        max-width: 100%;
        text-align: center;
    }

    .home-clipping-section .split-text .btn {
        display: inline-flex;
    }

    .dashboard-preview-stats {
        justify-content: center;
    }
}

/* ── Tablet Portrait (≤768px) ──────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Navigation */
    .floating-header {
        top: 12px;
        border-radius: 20px;
        padding: 8px 16px;
        width: 94%;
    }

    .floating-header.scrolled {
        top: 0;
        width: 100%;
        border-radius: 0;
        padding: 10px 16px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.97);
        border: 1px solid var(--sky-light);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: var(--radius-md);
        padding: 12px;
        box-shadow: 0 12px 28px rgba(2, 132, 199, 0.12);
        flex-direction: column;
        gap: 4px;
        transform-origin: top center;
    }

    .nav-links.mobile-open {
        display: flex;
        animation: navSlideDown 0.25s var(--ease-out-expo) forwards;
    }

    @keyframes navSlideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .nav-item {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        font-size: 1rem;
    }

    /* Hero */
    .hero-section {
        margin: 0 auto 40px auto;
    }

    .hero-visual {
        max-width: 340px;
        height: 240px;
    }

    .floating-mockup-card {
        width: 160px;
        padding: 14px;
    }

    .floating-mockup-card h4 {
        font-size: 0.95rem;
    }

    .floating-mockup-card p {
        font-size: 0.75rem;
    }

    /* Relay story timeline */
    .scroll-story-container {
        gap: 80px;
    }

    .story-step,
    .story-step:nth-child(even) {
        flex-direction: column;
        gap: 24px;
    }

    .story-progress-line {
        left: 20px;
        transform: none;
    }

    .story-visual-pane {
        padding: 0 0 0 52px;
        justify-content: flex-start;
        width: 100%;
    }

    .story-text-pane {
        padding: 0 0 0 52px;
    }

    /* Phone mockup */
    .phone-mockup {
        width: 240px;
        height: 400px;
    }

    /* Discord mockup */
    .discord-mockup {
        width: 100%;
        max-width: 320px;
        height: auto;
        min-height: 200px;
    }

    /* Database mockup */
    .database-mockup {
        width: 240px;
        padding: 20px;
    }

    /* Relay animation box */
    .relay-animation-box {
        width: 100%;
        max-width: 320px;
    }

    /* Section containers */
    .subpage-section {
        padding: 30px 24px;
        margin-bottom: 40px;
        border-radius: var(--radius-md);
    }

    .relay-journey-section,
    .subpage-section,
    .overview-section,
    .philosophy-section,
    .home-clipping-section,
    .invite-section {
        margin: 40px auto;
    }

    .section-header {
        margin-bottom: 36px;
    }

    /* Pipeline (converts to vertical on mobile) */
    .pipeline-track {
        display: none;
    }

    .pipeline-nodes {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding-left: 20px;
        border-left: 2px solid var(--sky-light);
    }

    .pipeline-node {
        flex-direction: row;
        width: 100%;
        text-align: left;
        gap: 12px;
        align-items: center;
        width: auto;
    }

    .pipeline-node .node-icon {
        margin-bottom: 0;
        width: 36px;
        height: 36px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    /* Music player */
    .music-player-widget {
        width: 100%;
        max-width: 320px;
    }

    /* Simulator cards */
    .simulator-card {
        max-width: 100%;
    }

    /* Dashboard */
    .dash-main {
        padding: 20px 16px;
    }

    .stats-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Invite grid */
    .invite-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 30px auto 0 auto;
        gap: 20px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        gap: 30px;
        flex-wrap: wrap;
    }

    .footer-brand {
        max-width: 100%;
    }

    /* Legal pages */
    .legal-content {
        padding: 24px 20px;
    }

    .legal-content h1 {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
}

/* ── Large Mobile (≤480px) ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    /* Simplified sky / cloud animations for mobile */
    .cloud-parallax-3 {
        display: none !important;
    }
    .cloud-parallax-1, .cloud-parallax-2 {
        opacity: 0.2;
        animation-duration: 300s !important;
    }
    .sun-glow {
        display: none !important;
    }

    /* Page offset for fixed nav */
    .page-view {
        padding-top: 80px;
    }

    /* Hero */
    .hero-section {
        width: 95%;
        gap: 24px;
    }

    .badge-pill {
        font-size: 0.75rem;
    }

    .hero-visual {
        max-width: 290px;
        height: 210px;
    }

    .tg-card-float {
        top: 10px;
        left: 0;
    }

    .dc-card-float {
        bottom: 10px;
        right: 0;
    }

    .floating-mockup-card {
        width: 140px;
        padding: 12px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    /* Relay journey */
    .scroll-story-container {
        gap: 60px;
    }

    .story-visual-pane,
    .story-text-pane {
        padding-left: 40px;
    }

    .phone-mockup {
        width: 210px;
        height: 360px;
        border-width: 6px;
        border-radius: 28px;
    }

    .discord-mockup {
        max-width: 280px;
        font-size: 0.7rem;
    }

    .discord-sidebar {
        width: 100px;
    }

    .relay-animation-box {
        flex-direction: column;
        width: 160px;
        height: 300px;
        justify-content: space-between;
        align-items: center;
        padding: 20px 10px;
        margin: 0 auto;
    }

    .relay-middle {
        height: 120px;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .relay-animation-box .message-packet {
        animation: messageRouteVertical 4s linear infinite;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    @keyframes messageRouteVertical {
        0% { top: -20px; opacity: 0; }
        10% { opacity: 1; }
        40% { top: 40%; }
        60% { top: 60%; }
        90% { opacity: 1; }
        100% { top: calc(100% + 10px); opacity: 0; }
    }

    /* Section containers */
    .subpage-section {
        padding: 20px 16px;
    }

    .relay-journey-section,
    .subpage-section,
    .overview-section,
    .philosophy-section,
    .home-clipping-section,
    .invite-section {
        width: 95%;
        margin: 32px auto;
    }

    /* Grid containers */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cloud-card {
        padding: 20px;
    }

    .phil-item {
        padding: 20px;
    }

    /* Buttons */
    .btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    /* Subpage hero */
    .subpage-hero {
        margin: 20px auto 40px auto;
        width: 95%;
    }

    .hero-desc {
        font-size: 1rem;
    }

    /* Category tabs — horizontal scroll */
    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .category-tabs::-webkit-scrollbar { display: none; }

    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .control-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .control-tabs::-webkit-scrollbar { display: none; }

    .control-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Explorer */
    .explorer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .search-box {
        max-width: 100%;
        width: 100%;
    }

    .explorer-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Clipper dashboard */
    .clipper-dashboard-card {
        min-height: unset;
        border-radius: var(--radius-md);
    }

    .dash-sidebar {
        padding: 16px;
        gap: 12px;
    }

    .dash-main {
        padding: 16px;
    }

    .dash-tab-pane h3 {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .stats-widgets {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-widget .stat-val {
        font-size: 1.5rem;
    }

    .campaign-list-grid {
        grid-template-columns: 1fr;
    }

    /* Invite cards */
    .invite-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .invite-card {
        min-height: unset;
        padding: 24px 20px;
    }

    /* Music player */
    .music-player-widget {
        width: 100%;
        max-width: 100%;
    }

    /* Clipping pipeline */
    .pipeline-node h4 {
        font-size: 0.8rem;
    }

    .pipeline-node span {
        font-size: 0.65rem;
    }

    /* Journey timeline on mobile is inherited from tablet query */

    /* Guidelines grid */
    .guidelines-accordion-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links h4 {
        margin-bottom: 10px;
    }

    .sky-footer {
        margin-top: 60px;
        padding: 40px 0 16px;
    }

    /* Legal pages */
    .legal-container {
        width: 95%;
        margin: 24px auto 60px auto;
    }

    .legal-content {
        padding: 20px 16px;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    /* Modal */
    .modal-content-card {
        width: 95%;
        padding: 20px 16px;
    }

    /* Subpage badge */
    .subpage-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    /* Section desc */
    .section-desc {
        font-size: 1rem;
    }
}

/* ── Mobile (≤430px) ───────────────────────────────────────────────────── */
@media (max-width: 430px) {
    .floating-header {
        top: 8px;
        width: 96%;
        padding: 8px 14px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .nav-logo-img {
        height: 30px;
    }

    .hero-visual {
        max-width: 260px;
        height: 190px;
    }

    .floating-mockup-card {
        width: 125px;
        padding: 10px;
        border-radius: 10px;
    }

    .floating-mockup-card .logo-icon {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .floating-mockup-card h4 {
        font-size: 0.8rem;
    }

    .floating-mockup-card p {
        display: none;
    }

    .database-mockup {
        width: 200px;
        padding: 16px;
        gap: 10px;
    }


    .phone-mockup {
        width: 190px;
        height: 320px;
        border-width: 5px;
        border-radius: 24px;
    }

    .split-layout {
        gap: 24px;
    }

    .split-text p {
        font-size: 1rem;
    }

    .stat-pill {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .cloud-card {
        padding: 18px;
    }

    .cloud-card h3 {
        font-size: 1.15rem;
    }

    .music-section-layout {
        gap: 24px;
    }
}

/* ── Small Mobile (≤390px) ─────────────────────────────────────────────── */
@media (max-width: 390px) {
    .floating-header {
        top: 6px;
        width: 97%;
        padding: 8px 12px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-logo-img {
        height: 28px;
    }

    .page-view {
        padding-top: 76px;
    }

    .hero-section {
        width: 97%;
        gap: 20px;
    }

    .hero-visual {
        max-width: 240px;
        height: 170px;
    }

    .floating-mockup-card {
        width: 112px;
        padding: 9px;
    }

    .subpage-section {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .cloud-card,
    .phil-item {
        padding: 16px;
    }

    .btn {
        font-size: 0.85rem;
        padding: 11px 18px;
    }

    .dash-table {
        font-size: 0.8rem;
    }

    .dash-table th,
    .dash-table td {
        padding: 8px 6px;
    }

    .stats-widgets {
        grid-template-columns: 1fr;
    }

    .music-player-widget {
        padding: 18px;
    }

    .player-controls {
        gap: 12px;
    }

    .journey-step-node {
        font-size: 0.85rem;
    }

    .subpage-hero {
        margin: 16px auto 32px auto;
    }
}

/* ── Very Small Mobile (≤360px) ────────────────────────────────────────── */
@media (max-width: 360px) {
    html {
        font-size: 15px;
    }

    .floating-header {
        width: 98%;
        padding: 7px 11px;
    }

    .hero-visual {
        max-width: 220px;
        height: 160px;
    }

    .floating-mockup-card {
        width: 100px;
        padding: 8px;
    }

    .hero-ctas .btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }

    .section-label {
        font-size: 0.75rem;
    }

    .stat-widget .stat-val {
        font-size: 1.3rem;
    }

    .camp-dash-card {
        padding: 14px;
    }

    .camp-dash-card h4 {
        font-size: 1rem;
    }

    .accordion-header {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .journey-circle {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    .pipeline-node .node-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}

/* ── Minimum Width (≤320px) ────────────────────────────────────────────── */
@media (max-width: 320px) {
    html {
        font-size: 14px;
    }

    .floating-header {
        top: 4px;
        width: 100%;
        border-radius: 0;
        top: 0;
        padding: 8px 10px;
    }

    .page-view {
        padding-top: 64px;
    }

    .nav-links {
        border-radius: 0;
    }

    .hero-section {
        width: 100%;
        padding: 0 10px;
    }

    .hero-visual {
        max-width: 200px;
        height: 150px;
    }

    .floating-mockup-card {
        width: 90px;
        padding: 7px;
    }

    .floating-mockup-card p {
        display: none;
    }

    .floating-mockup-card h4 {
        font-size: 0.72rem;
    }

    .relay-journey-section,
    .subpage-section,
    .overview-section,
    .philosophy-section,
    .home-clipping-section,
    .invite-section {
        width: 100%;
        border-radius: 0;
        padding: 16px 12px;
        margin: 24px 0;
    }

    .subpage-hero {
        width: 100%;
        padding: 0 12px;
    }

    .legal-container {
        width: 100%;
        padding: 0 10px;
    }

    .legal-content {
        padding: 16px 12px;
    }

    .discord-mockup {
        max-width: 100%;
    }

    .discord-sidebar {
        width: 80px;
    }

    .phone-mockup {
        width: 170px;
        height: 290px;
    }

    .explorer-container {
        padding: 14px 10px;
    }

    .footer-content {
        width: 100%;
        padding: 0 12px 30px;
    }

    .footer-bottom {
        width: 100%;
        padding: 0 12px;
    }

    .btn {
        font-size: 0.8rem;
        padding: 10px 14px;
    }

    .modal-content-card {
        width: 100%;
        border-radius: 0;
        padding: 16px 12px;
    }
}

/* ── Keyboard / Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }

    .sun-glow,
    .cloud-layer,
    .sky-particles,
    .floating-relay-beam,
    .floating-mockup-card,
    .data-particle,
    .message-packet,
    .audio-bars .bar {
        animation: none !important;
    }

    .cloud-parallax-1,
    .cloud-parallax-2,
    .cloud-parallax-3 {
        transform: none !important;
        animation: none !important;
    }
}

/* Focus outline for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--sky-deep);
    outline-offset: 2px;
}


/* =========================================================================
   THINGS CLIPPING SPECIFIC STYLES
   ========================================================================= */
/* Content Pipeline Flow */
.pipeline-container {
    position: relative;
    width: 100%;
    padding: 30px 0;
    margin-top: 40px;
}

.pipeline-track {
    position: absolute;
    top: 50px;
    left: 5%;
    width: 90%;
    height: 4px;
    background-color: var(--sky-light);
    z-index: 1;
}

.pipeline-fill {
    height: 100%;
    width: 16.66%;
    background: linear-gradient(90deg, var(--sky-blue), var(--cyan-bright));
    transition: width 0.4s ease;
}

.pipeline-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    width: 100%;
}

.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
    transition: var(--transition-smooth);
    opacity: 0.65;
}

.pipeline-node.active {
    opacity: 1;
}

.pipeline-node .node-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--cloud-white);
    border: 2px solid var(--sky-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky-deep);
    font-size: 1.15rem;
    margin-bottom: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.pipeline-node.active .node-icon {
    background-color: var(--sky-deep);
    color: var(--cloud-white);
    border-color: var(--sky-deep);
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.4);
    transform: scale(1.15);
}

.pipeline-node h4 {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.pipeline-node span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Onboarding Journey timeline */
.journey-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.journey-timeline {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 2px solid var(--sky-medium);
    padding-left: 20px;
    margin-left: 10px;
}

.journey-step-node {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.journey-step-node:hover {
    background-color: rgba(255,255,255,0.4);
    color: var(--sky-deep);
}

.journey-step-node.active {
    background-color: var(--sky-deep);
    color: var(--cloud-white);
}

.journey-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--cloud-white);
    border: 2px solid var(--sky-medium);
    color: var(--sky-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.journey-step-node.active .journey-circle {
    background-color: var(--cloud-white);
    color: var(--sky-deep);
    border-color: var(--cloud-white);
}

.journey-detail-box {
    flex: 1.1;
    background-color: var(--cloud-white);
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--sky-light);
    box-shadow: var(--card-shadow);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeInView 0.3s ease;
}

.journey-detail-box h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.journey-detail-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Abuse Regulations & warnings */
.abuse-rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-prohibited {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.2);
    border: 1px solid transparent;
    transition: var(--transition-fast);
    cursor: default;
}

.rule-prohibited i {
    color: var(--red-accent);
    margin-top: 4px;
}

.rule-prohibited:hover {
    background-color: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.15);
}

.abuse-warning-box {
    margin-top: 30px;
    padding: 16px;
    border-radius: 8px;
    background-color: var(--tg-bg-soft);
    border-left: 4px solid var(--tg-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.abuse-warning-box.warning-active {
    background-color: rgba(239, 68, 68, 0.1);
    border-left-color: var(--red-accent);
    color: #991b1b;
}

.abuse-warning-box.warning-active i {
    color: var(--red-accent);
    animation: alertPulse 1s infinite;
}

/* Home Preview Details */
.dashboard-preview-stats {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-pill {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--card-shadow);
}

.home-clipping-section .split-layout {
    gap: clamp(40px, 8vw, 80px);
    align-items: center;
}

.home-clipping-section .split-text {
    max-width: 580px;
}

.home-clipping-section .split-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.home-clipping-section .split-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-preview-card {
    width: 100%;
    max-width: 360px;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.mockup-preview-card:hover {
    transform: translateY(-5px);
    background-color: var(--glass-bg-hover);
    box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.12);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
}

.preview-leaderboard-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
}

.preview-leaderboard-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 8px;
    font-weight: 500;
}

/* Deploy / Invite Section */
.invite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 820px;
    margin: 40px auto 0 auto;
    justify-content: center;
}

.invite-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 35px 30px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 280px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.invite-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--sky-blue), var(--cyan-soft));
    opacity: 0;
    transition: var(--transition-fast);
}

.invite-card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.12);
}

.invite-card:hover::before {
    opacity: 1;
}

.invite-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.invite-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.invite-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.invite-btn {
    width: 100%;
    margin-top: auto;
}

.guidelines-accordion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.guidelines-footer-note {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
}


