/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
}

.btn-primary:hover {
    background-color: #333;
    border-color: #333;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #000;
    border: 2px solid #000;
}

.btn-secondary:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: #f8f9fa;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: #000;
}

.highlight {
    color: #333;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: #000;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Stream Section */
.stream-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* Market Cap Section */
.mcap-section {
    margin-bottom: 3rem;
}

.mcap-container {
    background: #000;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: white;
    margin-bottom: 2rem;
    border: 2px solid #fff;
}

.mcap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mcap-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.mcap-update-time {
    font-size: 0.85rem;
    opacity: 0.8;
}

.mcap-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.mcap-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.mcap-stat:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.mcap-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcap-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.mcap-value.negative {
    color: #fff;
}

.mcap-value.positive {
    color: #fff;
}

.mcap-loading {
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.stream-container {
    max-width: 1000px;
    margin: 0 auto;
}

.stream-wrapper {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stream-preview-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 2px solid #000;
    border-radius: 8px;
}

.stream-preview-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #000;
    font-weight: 600;
}

.stream-preview-header p {
    margin: 0;
    color: #333;
    font-size: 1rem;
}

.stream-cta {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 2px solid #000;
    text-align: center;
}

.btn-watch-live {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    border: 2px solid #000;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-watch-live:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.preview-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #000;
    color: #fff;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

.preview-notice i {
    color: #fff;
}

.stream-preview-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.stream-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.stream-overlay .stream-webcam-area {
    width: 100%;
}

.stream-overlay .webcam-placeholder {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stream-overlay .webcam-placeholder i {
    color: #fff;
    font-size: 1.2rem;
}

.stream-overlay .webcam-placeholder span {
    color: #fff;
    font-weight: 600;
}

.stream-overlay .chat-overlay {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 300px;
}

.stream-overlay .chat-message {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stream-player {
    width: 100%;
    height: 400px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stream-active {
    width: 100%;
    height: 100%;
    position: relative;
}

.stream-active iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #000;
}

.stream-preview {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.stream-preview-video {
    width: 100%;
    height: 100%;
    position: relative;
    background: #1a1a1a;
}

.video-player-bg {
    width: 100%;
    height: calc(100% - 50px);
    background: #333;
    position: relative;
}

.stream-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    height: 100%;
    gap: 10px;
    padding: 15px;
}

.stream-webcam-area {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.webcam-placeholder {
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.webcam-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff;
}

.webcam-placeholder span {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.chat-overlay {
    flex-grow: 1;
}

.chat-message {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 15px;
    font-size: 0.85rem;
    animation: fadeInUp 0.5s ease;
}

.stream-code-area {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.code-editor-mock {
    height: 100%;
}

.code-header {
    background: #2d2d30;
    padding: 8px 15px;
    border-bottom: 1px solid #333;
    font-size: 0.8rem;
}

.code-tab {
    color: #cccccc;
    margin-right: 15px;
    padding: 5px;
}

.code-tab:first-child {
    color: #fff;
    background: #0e639c;
    border-radius: 3px;
}

.code-content {
    padding: 15px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
}

.code-line {
    margin-bottom: 5px;
}

.code-keyword {
    color: #fff;
}

.code-variable {
    color: #ccc;
}

.code-string {
    color: #ddd;
}

.code-comment {
    color: #999;
    font-style: italic;
}

.code-function {
    color: #eee;
}

.stream-controls {
    height: 50px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-top: 1px solid #333;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.live-text {
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
}

.viewer-count {
    color: #ccc;
    font-size: 0.8rem;
}

.watch-live-btn {
    background: #000;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #fff;
}

.watch-live-btn:hover {
    background: #333;
    transform: translateY(-1px);
    color: white;
}

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

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
    .stream-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
    
    .code-content {
        font-size: 0.7rem;
    }
    
    .stream-controls {
        flex-direction: column;
        gap: 10px;
        height: auto;
        padding: 15px;
    }
}

.stream-live-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.live-badge {
    background-color: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.stream-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.stream-link:hover {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
}

.stream-offline-content {
    text-align: center;
    color: #666;
}

.stream-loading {
    text-align: center;
    color: #fff;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stream-info {
    padding: 2rem;
}

.stream-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.live {
    background-color: #000;
}

.status-indicator.offline {
    background-color: #666;
    animation: none;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.status-text {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.stream-title {
    color: #000;
    margin-bottom: 0.5rem;
}

.stream-description {
    color: #666;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    color: #000;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 1rem;
}

.feature h4 {
    color: #000;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #000;
}

.social-link i {
    font-size: 1.25rem;
}

/* Footer */
.footer {
    background-color: #000;
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-description {
    color: #ccc;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #ccc;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .stream-player {
        height: 250px;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .social-links {
        flex-direction: column;
        align-items: center;
    }
}