:root {
    --primary-color: #0071e3; /* Apple Blue */
    --primary-hover: #0077ED;
    --primary-glow: rgba(0, 113, 227, 0.4);
    --bg-color: #f5f5f7;
    --surface-color: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border-color: #d2d2d7;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px rgba(0, 113, 227, 0.2);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--surface-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-color);
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1d1d1f 0%, #434345 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Typography */
h1, h2, h3, h4 {
    letter-spacing: -0.5px;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 980px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 113, 227, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
}

/* Fix for buttons inside article content */
.article-content a.btn {
    color: white;
    text-decoration: none;
}
.article-content a.btn:hover {
    color: white;
}

.btn-outline {
    background-color: rgba(255,255,255,0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

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

.btn-large {
    padding: 16px 36px;
    font-size: 17px;
}

.btn-full {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00c6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 40px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .nav-links a {
        font-size: 14px;
        color: var(--text-secondary);
        font-weight: 500;
        position: relative;
    }
    .nav-links a:hover {
        color: var(--text-primary);
    }
    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 100%;
        height: 2px;
        background-color: var(--primary-color);
        transition: transform 0.3s ease;
    }
    .nav-links a:hover::after {
        transform: translateX(-50%) scaleX(1);
    }
}

.nav-btn {
    padding: 8px 20px;
    font-size: 14px;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 120px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0,113,227,0.15) 0%, rgba(0,255,200,0.05) 40%, rgba(255,255,255,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--primary-color);
    border-radius: 980px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 113, 227, 0.1);
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1d1d1f 30%, #434345 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 80px;
    }
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

/* Dynamic Hero Visual */
.hero-visual {
    width: 100%;
    max-width: 900px;
    perspective: 1200px;
}

.dynamic-card {
    position: relative;
    background: rgba(20, 20, 22, 0.85); /* Dark theme for contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.3), var(--shadow-glow);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform: rotateX(8deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dynamic-card:hover {
    transform: rotateX(0deg) translateY(-10px);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.4), 0 0 50px rgba(0, 113, 227, 0.3);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(0,113,227,0.15), transparent 60%);
    pointer-events: none;
}

.mockup-header {
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.mockup-header .dot.red { background: #ff5f56; }
.mockup-header .dot.yellow { background: #ffbd2e; }
.mockup-header .dot.green { background: #27c93f; }

.mockup-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    letter-spacing: 1px;
}

.mockup-body {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    color: white;
}

@media (min-width: 768px) {
    .mockup-body {
        flex-direction: row;
        justify-content: space-between;
        padding: 60px 80px;
    }
}

.server-nodes {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 300px;
}

.node {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.node::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    opacity: 0.5;
}

.node.pulse-hk::before { background: #27c93f; box-shadow: 0 0 10px #27c93f; }
.node.pulse-jp::before { background: #27c93f; box-shadow: 0 0 10px #27c93f; }
.node.pulse-sg::before { background: #ffbd2e; box-shadow: 0 0 10px #ffbd2e; }
.node.pulse-us::before { background: #ff5f56; box-shadow: 0 0 10px #ff5f56; }

.flag {
    margin-right: 12px;
    font-size: 20px;
}

.ping {
    margin-left: auto;
    font-family: monospace;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.speedometer {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speed-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px dashed rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-color);
    animation: spin 8s linear infinite;
    box-shadow: 0 0 40px rgba(0, 113, 227, 0.2);
}

.speed-value {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.speed-value .number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.speed-value .unit {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

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

/* Shared Cards */
.card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

/* Feature Cards */
.feature-card {
    text-align: center;
}

.feature-card .icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0,113,227,0.1) 0%, rgba(0,113,227,0.05) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin: 0 auto 24px;
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(-5deg);
    background: var(--primary-color);
    color: white;
}

.feature-card .icon-box svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Streaming & AI Section */
.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
    border: 1px solid rgba(255,255,255,1);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 768px) {
    .glass-card {
        grid-template-columns: 1fr 1fr;
    }
}

.streaming-text h2 {
    font-size: 36px;
    margin-bottom: 24px;
}

.streaming-text p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.tag {
    padding: 8px 16px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.streaming-visual {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-icons {
    position: relative;
    width: 100%;
    height: 100%;
}

.f-icon {
    position: absolute;
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 28px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.f-icon.netflix {
    color: #E50914;
    top: 10%;
    left: 10%;
}

.f-icon.ai {
    background: linear-gradient(135deg, #10a37f 0%, #0d8265 100%);
    color: white;
    top: 50%;
    right: 10%;
    animation-delay: -2s;
}

.f-icon.video {
    color: var(--primary-color);
    bottom: 0%;
    left: 30%;
    animation-delay: -4s;
}

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

/* Pricing Section */
.pricing-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    background: var(--surface-color);
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 113, 227, 0.15);
    z-index: 1;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 40px 80px rgba(0, 113, 227, 0.2);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color) 0%, #00c6ff 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,113,227,0.3);
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.price {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.currency {
    font-size: 24px;
    margin-top: 10px;
    margin-right: 4px;
    font-weight: 600;
}

.period {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    align-self: flex-end;
    margin-bottom: 14px;
    letter-spacing: 0;
}

.pricing-header .desc {
    color: var(--text-secondary);
    font-size: 15px;
}

.pricing-features {
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-primary);
}

.pricing-features .disabled {
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.6;
}

.check, .cross {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.check {
    stroke: var(--primary-color);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cross {
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pricing-action {
    margin-top: auto;
}

/* Blog Section */
.blog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.blog-image {
    height: 160px;
    position: relative;
    padding: 20px;
    display: flex;
    align-items: flex-start;
}

.bg-gradient-1 { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); }
.bg-gradient-2 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.bg-gradient-4 { background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%); }
.bg-gradient-5 { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.bg-gradient-6 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.bg-gradient-7 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.bg-gradient-8 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.bg-gradient-9 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.blog-tag {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.blog-content {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-primary);
    transition: var(--transition);
}

.blog-card:hover .blog-content h3 {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
}

/* Reviews */
.review-card {
    background: white;
}

.stars {
    color: #f59e0b;
    font-size: 22px;
    margin-bottom: 20px;
}

.review-text {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.7;
    color: var(--text-primary);
}

.reviewer {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-secondary);
}

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

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 32px 0;
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.faq-a {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

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

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 2fr 3fr;
    }
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 16px;
    max-width: 320px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (min-width: 640px) {
    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-col ul li {
    margin-bottom: 16px;
}

.footer-col ul a {
    color: var(--text-secondary);
    font-size: 15px;
}

.footer-col ul a:hover {
    color: var(--primary-color);
}

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