/* ================================================
   ASMR Meaning - Premium Theme Stylesheet
   Dark (default) + Light Mode
   ================================================ */

/* CSS Custom Properties */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-card: rgba(18, 18, 30, 0.85);
    --bg-card-hover: rgba(25, 25, 42, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b5;
    --text-muted: #8585a0;
    
    --accent-1: #7c3aed;  /* Purple */
    --accent-2: #a855f7;  /* Light purple */
    --accent-3: #06b6d4;  /* Cyan */
    --accent-4: #8b5cf6;  /* Violet */
    --accent-glow: rgba(124, 58, 237, 0.3);
    
    --gradient-main: linear-gradient(135deg, #7c3aed 0%, #06b6d4 50%, #a855f7 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
    --gradient-card: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(6, 182, 212, 0.05));
    
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(124, 58, 237, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    
    --container-width: 1200px;
    --nav-height: 72px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Particles */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-2);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 15s infinite;
    will-change: transform, opacity;
    contain: strict;
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.7);
    border-bottom: 1px solid var(--border);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    z-index: 1001;
}

.logo-icon {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    animation: pulse 2s ease-in-out infinite;
}

.logo-svg {
    width: 32px;
    height: 32px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 220px;
    padding: 10px 0;
    margin-top: 10px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    color: var(--accent-2);
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 30%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease-out;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Definition Card */
.hero-definition {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.definition-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glow);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.def-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-3);
    margin-bottom: 16px;
}

.def-full-form {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.letter {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3em;
}

.def-simple {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat-item {
    padding: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Sound Wave Animation */
.sound-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.wave-bar {
    width: 4px;
    height: 20px;
    background: var(--gradient-main);
    border-radius: 4px;
    animation: soundWave 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1)  { animation-delay: 0.0s; }
.wave-bar:nth-child(2)  { animation-delay: 0.1s; }
.wave-bar:nth-child(3)  { animation-delay: 0.2s; }
.wave-bar:nth-child(4)  { animation-delay: 0.3s; }
.wave-bar:nth-child(5)  { animation-delay: 0.4s; }
.wave-bar:nth-child(6)  { animation-delay: 0.5s; }
.wave-bar:nth-child(7)  { animation-delay: 0.6s; }
.wave-bar:nth-child(8)  { animation-delay: 0.5s; }
.wave-bar:nth-child(9)  { animation-delay: 0.4s; }
.wave-bar:nth-child(10) { animation-delay: 0.3s; }
.wave-bar:nth-child(11) { animation-delay: 0.2s; }
.wave-bar:nth-child(12) { animation-delay: 0.1s; }
.wave-bar:nth-child(13) { animation-delay: 0.0s; }
.wave-bar:nth-child(14) { animation-delay: 0.1s; }
.wave-bar:nth-child(15) { animation-delay: 0.2s; }

@keyframes soundWave {
    0%, 100% { height: 8px; opacity: 0.4; }
    50% { height: 36px; opacity: 1; }
}

/* ================================================
   CONTENT SECTIONS
   ================================================ */
.content-section {
    padding: 100px 0;
    position: relative;
}

.content-section.alt-bg {
    background: var(--bg-secondary);
}

.content-section.alt-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-main);
    opacity: 0.2;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-3);
    padding: 6px 16px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: -24px auto 48px;
    font-size: 1.05rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.content-text p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 1.02rem;
}

.content-text strong {
    color: var(--text-primary);
}

.styled-list {
    list-style: none;
    margin: 16px 0 24px;
}

.styled-list li {
    padding: 8px 0 8px 28px;
    color: var(--text-secondary);
    position: relative;
}

.styled-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-2);
    font-size: 0.85rem;
}

/* Use Case Chips */
.use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.use-case-chip {
    padding: 8px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
}

.use-case-chip:hover {
    border-color: var(--border-hover);
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
    color: var(--text-primary);
}

/* ================================================
   CHAT COMPONENT
   ================================================ */
.chat-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.chat-container:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.chat-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.chat-dot.red { background: #ef4444; }
.chat-dot.yellow { background: #f59e0b; }
.chat-dot.green { background: #22c55e; }

.chat-title {
    margin-left: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.chat-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.msg {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: msgFadeIn 0.5s ease-out both;
}

.msg:nth-child(1) { animation-delay: 0.1s; }
.msg:nth-child(2) { animation-delay: 0.3s; }
.msg:nth-child(3) { animation-delay: 0.5s; }
.msg:nth-child(4) { animation-delay: 0.7s; }
.msg:nth-child(5) { animation-delay: 0.9s; }

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

.msg.received { align-self: flex-start; }
.msg.sent { align-self: flex-end; align-items: flex-end; }

.msg-sender {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.msg-bubble {
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 0.92rem;
    line-height: 1.5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.msg-bubble:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.msg.received .msg-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.msg.sent .msg-bubble {
    background: var(--gradient-main);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
}

.typing-dot {
    width: 7px;
    height: 7px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-note {
    margin: 0 20px 20px;
    padding: 14px 18px;
    background: rgba(124, 58, 237, 0.08);
    border-left: 4px solid var(--accent-1);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ================================================
   INFO TABLE
   ================================================ */
.info-table-container {
    max-width: 850px;
    margin: 0 auto;
}

.info-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.info-table.purple-accent {
    box-shadow: var(--shadow-md), 0 0 0 2px rgba(124, 58, 237, 0.15);
}

.table-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 2px solid var(--border);
}

.th-item {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    padding: 18px 28px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: rgba(124, 58, 237, 0.06);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px var(--border-hover);
}

.table-row.active {
    background: rgba(124, 58, 237, 0.1);
    box-shadow: inset 0 0 0 2px var(--accent-1);
}

.td-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.td-icon {
    font-size: 1.3rem;
}

.td-value {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.25s ease;
}

.table-row:hover .td-value,
.table-row.active .td-value {
    color: var(--accent-2);
}

/* ================================================
   TYPES GRID
   ================================================ */
.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.type-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.type-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

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

.type-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: block;
}

.type-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.type-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ================================================
   TRIGGERS SECTION
   ================================================ */
.triggers-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.triggers-list p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.trigger-categories {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.trigger-cat {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s ease;
}

.trigger-cat:hover {
    border-color: var(--border-hover);
}

.trigger-cat h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.trigger-cat ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.trigger-cat li {
    padding: 4px 0 4px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
}

.trigger-cat li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--accent-2);
    font-size: 1.2rem;
    line-height: 1;
}

/* ================================================
   BENEFITS GRID
   ================================================ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.benefit-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.benefit-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 12px;
}

.benefit-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ================================================
   PLATFORMS
   ================================================ */
.platforms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 32px;
}

.platform-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
}

.platform-chip:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

/* ================================================
   TIMELINE
   ================================================ */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-3));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--accent-1);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.timeline-year {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-3);
    padding: 4px 12px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* ================================================
   FAQ SECTION
   ================================================ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent-2);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ================================================
   CONCLUSION
   ================================================ */
.conclusion-card {
    max-width: 850px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.conclusion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
}

.conclusion-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.02rem;
    line-height: 1.8;
}

.conclusion-card p:last-child {
    margin-bottom: 0;
}

.conclusion-card strong {
    color: var(--text-primary);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    border-color: var(--accent-1);
    color: var(--accent-2);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-3);
    padding-left: 5px;
}

/* Language Grid */
.language-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lang-btn {
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a4a68;
    text-transform: uppercase;
    transition: all 0.2s ease;
    text-decoration: none;
}

.lang-btn:hover {
    background: #f8fafc;
    color: var(--text-primary);
    border-color: #cbd5e1;
}

.lang-btn.active {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-3);
    border-color: rgba(6, 182, 212, 0.3);
}

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

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

.footer-bottom a {
    color: var(--accent-2);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--accent-3);
}

/* ================================================
   BACK TO TOP
   ================================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-2);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   LIGHT MODE
   ================================================ */
[data-theme="light"] {
    --bg-primary: #f8f9fc;
    --bg-secondary: #eef0f5;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-glass: rgba(124, 58, 237, 0.04);
    --bg-glass-hover: rgba(124, 58, 237, 0.08);

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #7a7a96;

    --accent-glow: rgba(124, 58, 237, 0.12);

    --gradient-subtle: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(6, 182, 212, 0.06));
    --gradient-card: linear-gradient(135deg, rgba(124, 58, 237, 0.03), rgba(6, 182, 212, 0.03));

    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(124, 58, 237, 0.35);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.08);
}

/* Light Mode — Navbar */
[data-theme="light"] .navbar {
    background: rgba(248, 249, 252, 0.8);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(248, 249, 252, 0.96);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Light Mode — Hero Glow */
[data-theme="light"] .hero::before {
    background: radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 30%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
}

/* Light Mode — Chat */
[data-theme="light"] .msg.received .msg-bubble {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .chat-header {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .typing-indicator {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Light Mode — Table */
[data-theme="light"] .table-header {
    background: rgba(124, 58, 237, 0.04);
}

[data-theme="light"] .table-row:hover {
    background: rgba(124, 58, 237, 0.04);
}

[data-theme="light"] .table-row.active {
    background: rgba(124, 58, 237, 0.06);
}

/* Light Mode — FAQ */
[data-theme="light"] .faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Light Mode — Alt Background Section Separator */
[data-theme="light"] .content-section.alt-bg::before {
    opacity: 0.12;
}

/* Light Mode — Timeline Dot Border */
[data-theme="light"] .timeline-dot {
    border-color: var(--bg-primary);
}

/* Light Mode — Footer */
[data-theme="light"] .site-footer {
    background: #e8eaf0;
}

/* Light Mode — Back to Top */
[data-theme="light"] .back-to-top {
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.25);
}

/* Light Mode — Particles dimmer */
[data-theme="light"] .bg-particles {
    opacity: 0.35;
}

/* Light Mode — Chat Note */
[data-theme="light"] .chat-note {
    background: rgba(124, 58, 237, 0.05);
}

/* Light Mode — Timeline Year Badge */
[data-theme="light"] .timeline-year {
    background: rgba(6, 182, 212, 0.08);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .triggers-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    [data-theme="light"] .nav-links {
        background: rgba(248, 249, 252, 0.98);
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hero-stats .stat-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .definition-card {
        padding: 28px 20px;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 64px 0;
    }
    
    .trigger-cat ul {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .conclusion-card {
        padding: 32px 20px;
    }
    
    .timeline {
        padding-left: 32px;
    }
    
    .timeline-dot {
        left: -25px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .platforms-grid {
        gap: 8px;
    }
    
    .platform-chip {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* ================================================
   NAV CTA BUTTON (Contact Us in Header)
   ================================================ */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--gradient-main);
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
}

.nav-cta::after {
    display: none !important;
}

/* ================================================
   INNER PAGE STYLES (About, Contact, Privacy, etc.)
   ================================================ */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

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

.page-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.page-content .content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 24px 0 10px;
    color: var(--text-primary);
}

.page-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.page-content ul {
    list-style: none;
    padding: 0;
}

.page-content ul li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.7;
}

.page-content ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-2);
}

.page-content a {
    color: var(--accent-3);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-content a:hover {
    color: var(--accent-2);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gradient-main);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
}

/* Sitemap Links */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.sitemap-group h3 {
    margin-bottom: 12px;
}

.sitemap-group ul li a {
    display: block;
    padding: 6px 0;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.sitemap-group ul li a:hover {
    color: var(--accent-3);
    padding-left: 8px;
}

/* About - Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.value-item {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.value-item h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.value-item p {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .page-content .content-card {
        padding: 28px 20px;
    }
    .nav-cta {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    .sitemap-grid {
        grid-template-columns: 1fr;
    }
}

/* Navbar Search */
.nav-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 15px;
    color: #fff;
    font-size: 0.85rem;
    width: 180px;
    transition: all 0.3s ease;
}

[data-theme="light"] .nav-search-input {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000;
}
[data-theme="light"] .nav-search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.nav-search-input:focus {
    outline: none;
    border-color: var(--accent-main);
    background: rgba(255, 255, 255, 0.1);
    width: 220px;
}

[data-theme="light"] .nav-search-input:focus {
    background: rgba(0, 0, 0, 0.02);
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .nav-search-container {
        margin: 10px 0;
        width: 100%;
    }
    .nav-search-input {
        width: 100%;
    }
    .nav-search-input:focus {
        width: 100%;
    }
}
