:root {
    --bg-main: #0b0f19;
    --bg-card: #151b2b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #1e293b;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%), url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 140px;
    background-color: #1a1a1a;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
    border-right: 1px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 200;
}

.sidebar-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.hexagon-logo {
    width: 50px;
    height: 57.74px; /* w * 1.1547 for perfect hex */
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: var(--transition);
}

.hexagon-logo span {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 900;
    font-family: sans-serif;
}

.sidebar-logo-container:hover .hexagon-logo {
    transform: scale(1.1) rotate(15deg);
}

.sidebar-brand-name {
    color: #ffffff;
    font-family: sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Header & Nav */
header {
    padding: 20px 0;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

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

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Hero Section */
.hero {
    padding: 120px 0 100px;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero .btn-primary, .hero .btn-secondary {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Hero Visual Animation */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.dynamic-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    position: absolute;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: float 6s ease-in-out infinite;
}

.dynamic-card.main {
    width: 280px;
    height: 320px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dynamic-card.sub {
    width: 180px;
    height: 180px;
    z-index: 1;
    right: 10%;
    top: 10%;
    animation-delay: -2s;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
}

.dynamic-card.sub2 {
    width: 150px;
    height: 150px;
    z-index: 3;
    left: 10%;
    bottom: 5%;
    animation-delay: -4s;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
}

.pulse-node {
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-node::before, .pulse-node::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    border-radius: 50%;
    animation: ripple 2s linear infinite;
}

.pulse-node::after {
    animation-delay: 1s;
}

.pulse-node svg {
    width: 30px;
    height: 30px;
    fill: white;
    z-index: 2;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    font-weight: 700;
}

/* Features */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

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

/* Streaming & AI Support */
.support {
    padding: 80px 0;
    background-color: rgba(21, 27, 43, 0.5);
}

.support-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.support-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 20px 40px;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

/* Pricing */
.pricing {
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--accent);
    position: relative;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn-primary {
    width: 100%;
}

/* Articles / Blog Section */
.articles {
    padding: 80px 0;
    background-color: rgba(21, 27, 43, 0.3);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.article-image {
    height: 180px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 2rem;
}

.article-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--text-primary);
}

.article-card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    align-self: flex-start;
}

.read-more:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* FAQ */
.faq {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    padding: 25px;
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

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

/* Reviews */
.reviews {
    padding: 80px 0;
    background-color: rgba(21, 27, 43, 0.5);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: var(--border-radius);
}

.review-stars {
    color: #fbbf24;
    margin-bottom: 15px;
}

.review-text {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.review-author {
    font-weight: 600;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 50px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 15px;
    display: inline-block;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 1024px) {
    .app-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        padding: 15px;
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid var(--border);
        z-index: 200;
        position: relative;
    }
    .sidebar-logo-container {
        flex-direction: row;
    }
    .hexagon-logo {
        width: 36px;
        height: 41.57px;
    }
    .hexagon-logo span {
        font-size: 20px;
    }
    .hero-split {
        flex-direction: column;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-visual {
        width: 100%;
        margin-top: 40px;
    }
    .pricing-card.popular {
        transform: none;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .hero h1 {
        font-size: 2rem;
        word-break: break-word;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .hero-visual {
        transform: scale(0.75);
        height: 300px;
        margin-top: 0;
    }
    .features-grid, .pricing-grid, .reviews-grid, .articles-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .support-item {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.95rem;
        padding: 15px 20px;
    }
    .hero, .features, .pricing, .faq, .reviews, .support, .articles {
        padding: 50px 0;
    }
    .footer-grid {
        flex-direction: column;
    }
    .btn-primary, .btn-secondary {
        padding: 15px 30px; /* Touch friendly */
        width: 100%;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        z-index: 10;
        position: relative;
    }
    .nav-buttons {
        display: none; /* Hide header buttons on mobile to save space */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-visual {
        transform: scale(0.6);
        height: 240px;
    }
    .dynamic-card.main {
        padding: 20px;
    }
}

/* Internal Pages Content Area */
.page-content {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.page-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--accent);
}

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

.page-content ul {
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-content li {
    margin-bottom: 10px;
}

@keyframes brandGlow {
    0% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }
    50% { box-shadow: 0 0 60px rgba(59, 130, 246, 0.6); }
    100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }
}
