/* ==========================================================================
   GHOST-OS Premium Styling Tokens & CSS System
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #07070A;
    --bg-card: rgba(13, 13, 22, 0.55);
    --bg-card-hover: rgba(20, 20, 35, 0.75);
    
    --primary: #FFD700;
    --primary-glow: rgba(255, 215, 0, 0.35);
    --secondary: #d4af37;
    --secondary-glow: rgba(212, 175, 55, 0.25);
    --accent: #00f5d4;
    --accent-glow: rgba(0, 245, 212, 0.25);
    
    --text-main: #F3F3F7;
    --text-muted: #8E92B2;
    --text-dim: #5C607C;
    
    --border-color: rgba(255, 215, 0, 0.15);
    --border-color-hover: rgba(212, 175, 55, 0.35);
    
    /* Font Stacks */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: radial-gradient(circle at 50% -20%, #201a08 0%, var(--bg-dark) 70%);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1a1a2e;
    border-radius: 4px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Background Ambient Lights */
.ambient-glow-1 {
    position: fixed;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    animation: pulseGlow 15s infinite alternate;
}

.ambient-glow-2 {
    position: fixed;
    bottom: -150px;
    right: -150px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0,0,0,0) 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
    animation: pulseGlow 12s infinite alternate-reverse;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #ffffff 30%, #ffe875 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism Panel system */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 215, 0, 0.05);
    transform: translateY(-4px);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    outline: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: #000000;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45), 0 0 20px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.03);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 7, 10, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.08);
    transition: var(--transition-smooth);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
}

.nav-brand span {
    background: linear-gradient(135deg, #fff 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link:hover::after {
    width: 100%;
}

/* Premium CSS-Only Dropdown Submenus */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 200px;
    background: rgba(13, 13, 22, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 25px rgba(157, 78, 221, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1020;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(13, 13, 22, 0.95);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.dropdown-item a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 18px;
    box-shadow: inset 3px 0 0 var(--secondary);
}

/* Nav Link Arrow icon */
.nav-link i {
    font-size: 0.75rem;
    margin-left: 6px;
    transition: var(--transition-smooth);
}

.nav-item-dropdown:hover .nav-link i {
    transform: rotate(180deg);
    color: var(--secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px 0;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.25);
    padding: 6px 16px;
    border-radius: 100px;
    color: #e9d5ff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary);
    animation: pulseDot 1.5s infinite alternate;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Chat Mockup Simulator */
.chat-mockup {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.chat-header {
    background: rgba(13, 13, 22, 0.8);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-avatar-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.chat-avatar .online-indicator {
    width: 10px;
    height: 10px;
    background: #00e676;
    border: 2px solid #0d0d16;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
}

.chat-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.chat-status {
    font-size: 0.75rem;
    color: #00e676;
}

.chat-body {
    height: 380px;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(7, 7, 10, 0.45);
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: messageReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.chat-bubble-persona {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-bubble-user {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(157, 78, 221, 0.6) 100%);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-typing-container {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 18px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingPulse 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-label {
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.5rem;
    transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--secondary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px var(--secondary-glow);
}

.feature-title {
    font-size: 1.3rem;
    color: var(--text-main);
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Animations */
@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
    100% { transform: scale(1.15) translate(40px, 30px); opacity: 0.85; }
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}

@keyframes messageReveal {
    0% { opacity: 0; transform: translateY(12px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes typingPulse {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-4px); opacity: 1; }
}

/* Footer Section */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 5, 8, 0.95);
    padding: 60px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 320px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--text-main);
}

.footer-brand span {
    background: linear-gradient(135deg, #fff 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-item a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-link-item a:hover {
    color: var(--text-main);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 30px;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Footer Business Info (PG 심사 대응 사업자정보) */
.footer-business-info {
    padding-top: 28px;
    padding-bottom: 20px;
    margin-bottom: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-dim);
    font-size: 0.76rem;
    line-height: 1.65;
}

.footer-business-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.08);
    margin: 0 8px;
    user-select: none;
}

.footer-business-note {
    color: var(--text-dim);
    font-size: 0.72rem;
    opacity: 0.65;
    margin-top: 6px;
    line-height: 1.5;
}

/* ==========================================================================
   Adoptable Persona Catalog Section Styles
   ========================================================================== */
.catalog-section {
    padding: 100px 0;
    position: relative;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.catalog-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.catalog-card-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition-bounce);
}

.catalog-card:hover .catalog-card-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px var(--secondary-glow);
    border-color: var(--secondary);
}

.catalog-card-title {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.catalog-card-subtitle {
    font-size: 0.82rem;
    color: #e289f2; /* Soft, eye-friendly pastel lavender-pink */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.catalog-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    min-height: 44px;
    line-height: 1.5;
}

.catalog-card-stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.catalog-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.catalog-stat-name {
    color: var(--text-dim);
    font-weight: 600;
}

.catalog-stat-val {
    color: var(--text-main);
    font-weight: 700;
    font-family: var(--font-heading);
}

.catalog-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.catalog-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.catalog-tag.accent-tag {
    background: rgba(46, 196, 182, 0.1);
    border-color: rgba(46, 196, 182, 0.25);
    color: var(--accent);
}

/* Video Section Styling */
.video-section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(157, 78, 221, 0.15);
    background: rgba(7, 7, 10, 0.8);
    transition: var(--transition-smooth);
}

.video-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(157, 78, 221, 0.25);
    border-color: rgba(157, 78, 221, 0.4);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Technology Introduction & API Orchestration Layouts */
.tech-intro-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, rgba(7,7,10,0) 0%, rgba(13,13,22,0.4) 50%, rgba(7,7,10,0) 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

/* 4-Step Pipeline CSS */
.pipeline-container {
    margin-top: 50px;
    padding: 40px;
    background: rgba(13, 13, 22, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    box-shadow: inset 0 0 30px rgba(157, 78, 221, 0.05);
}

.pipeline-header {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.pipeline-header i {
    color: var(--secondary);
    margin-right: 10px;
}

.pipeline-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.pipeline-step {
    flex: 1;
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.pipeline-step:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
}

#step-persona { border-color: rgba(59, 130, 246, 0.2); }
#step-deepseek { border-color: rgba(139, 92, 246, 0.2); }
#step-ghost { border-color: rgba(236, 72, 153, 0.2); }
#step-delivery { border-color: rgba(16, 185, 129, 0.2); }

.pipeline-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: inline-block;
}
#step-persona .pipeline-icon { color: #3b82f6; text-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
#step-deepseek .pipeline-icon { color: #8b5cf6; text-shadow: 0 0 15px rgba(139, 92, 246, 0.4); }
#step-ghost .pipeline-icon { color: #ec4899; text-shadow: 0 0 15px rgba(236, 72, 153, 0.4); }
#step-delivery .pipeline-icon { color: #10b981; text-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }

.pipeline-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.pipeline-desc {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.pipeline-connector {
    flex-grow: 1;
    max-width: 80px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,102,163,0.4) 50%, rgba(255,255,255,0.05) 100%);
    position: relative;
}

.pipeline-pulse {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    top: -2px;
    animation: pipeline-pulse-anim 2s infinite linear;
}

@keyframes pipeline-pulse-anim {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.pipeline-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .pipeline-flow {
        flex-direction: column;
        gap: 20px;
    }
    .pipeline-connector {
        width: 2px;
        height: 40px;
        max-width: none;
        background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,102,163,0.4) 50%, rgba(255,255,255,0.05) 100%);
    }
    .pipeline-pulse {
        top: 0;
        left: -2px;
        animation: pipeline-pulse-anim-vertical 2s infinite linear;
    }
    .pipeline-specs-grid {
        grid-template-columns: 1fr;
    }
    .pipeline-title {
        white-space: normal;
    }
}

@keyframes pipeline-pulse-anim-vertical {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.tuning-spec-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.tuning-spec-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.tuning-spec-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(157, 78, 221, 0.15);
}

.tuning-spec-icon {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 2px;
}

.tuning-spec-title {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.tuning-spec-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Secondary Multi Video & Demo Grid Layouts */
.multi-video-section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.multi-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 45px;
}

.demo-card {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(13, 13, 22, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.demo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(46, 196, 182, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.demo-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.demo-video-thumb iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.demo-card-body {
    padding: 24px;
}

.demo-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.demo-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Modules
   ========================================================================== */

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Tablet Overrides (max-width: 991px) */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-badge, .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 440px;
        margin: 0 auto;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dashboard-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile Overrides (max-width: 768px) */
@media (max-width: 768px) {
    /* Mobile Responsive Header */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(7, 7, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px;
        gap: 24px;
        z-index: 1050;
        transition: var(--transition-smooth);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
        box-shadow: -15px 0 35px rgba(0,0,0,0.8);
    }
    
    /* Mobile Dropdown resets */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 0 0 16px !important;
        margin-top: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .dropdown-menu::before {
        display: none !important;
    }
    
    .dropdown-item a {
        padding: 8px 12px !important;
    }
    
    .nav-actions .btn-secondary {
        display: none; /* Hide login button on small navbar, visible inside mobile slideout menu */
    }
    
    /* Toggle active animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--secondary);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--secondary);
    }

    /* Typography scale down */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.0rem;
    }
    
    /* Mobile Padding Adjustment */
    .hero, .catalog-section, .features, .pricing-section, .mypage-section, .login-section {
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    /* MyPage Sidebar horizontal flow */
    .sidebar {
        padding: 20px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .user-profile-summary {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 16px;
    }
    
    .sidebar-menu {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
    }
    
    /* New Intro Sections Responsive Overrides */
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .multi-video-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .api-node-wrapper {
        flex-direction: column;
        gap: 16px;
        padding: 10px 0;
    }
    .connector-line {
        width: 2px;
        height: 30px;
        margin: 5px 0;
        background: linear-gradient(180deg, rgba(46, 196, 182, 0.4) 0%, rgba(255, 102, 163, 0.4) 100%);
    }
    .connector-line.line-right {
        background: linear-gradient(180deg, rgba(157, 78, 221, 0.4) 0%, rgba(255, 102, 163, 0.4) 100%);
    }
    .connector-pulse {
        left: -3px;
        top: 0;
        width: 8px;
        height: 8px;
        animation: connector-pulse-anim-vertical 2s infinite linear;
    }
}

@keyframes connector-pulse-anim-vertical {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
    }
    
    .chat-mockup {
        max-width: 100%;
    }
    
    .pricing-card {
        padding: 35px 20px;
    }
    
    .login-wrapper {
        padding: 30px 20px;
    }
    
    .credit-card {
        aspect-ratio: auto;
        height: 180px;
    }
    
    .holder-name {
        font-size: 0.8rem;
    }
}

/* Full-screen busy overlay for public board async actions. */
.admin-busy-lock {
    overflow: hidden;
}

.admin-busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 9, 18, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.admin-busy-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.admin-busy-panel {
    min-width: 260px;
    padding: 28px 30px;
    border-radius: 18px;
    border: 1px solid rgba(46, 196, 182, 0.25);
    background: rgba(13, 17, 31, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 24px rgba(46, 196, 182, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.admin-busy-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top-color: var(--secondary);
    box-shadow: 0 0 18px rgba(46, 196, 182, 0.36);
    animation: adminBusySpin 0.85s linear infinite;
}

.admin-busy-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
}

.admin-busy-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

@keyframes adminBusySpin {
    to { transform: rotate(360deg); }
}