/* Luxury Executive Tier UI CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Serif+SC:wght@400;600;900&display=swap');

:root {
    /* Muted champagne gold accents */
    --gold: #D4AF37;
    --gold-dim: rgba(212, 175, 55, 0.15);
    --gold-hover: #b8952b;
    --card-border-radius: 4px; /* Executive crisp edges */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Light mode */
    --bg-color: #fcfcfc;
    --bg-alt: #f5f5f5;
    --text-primary: #111111;
    --text-muted: #555555;
    --card-bg: rgba(255, 255, 255, 0.8);
    --nav-bg: rgba(252, 252, 252, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);
}

body.dark-mode {
    /* Matte obsidian canvas */
    --bg-color: #0B0C10;
    --bg-alt: #12141a;
    --text-primary: #f0f0f0;
    --text-muted: #8a8d98;
    --card-bg: rgba(18, 20, 26, 0.6);
    --nav-bg: rgba(11, 12, 16, 0.85);
    --border-color: rgba(212, 175, 55, 0.15); /* Hairline border cards */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Noto Serif SC', 'Cormorant Garamond', serif;
    font-weight: 600;
}

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

ul {
    list-style: none;
}

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

/* Executive Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s, border-color 0.4s;
}

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

.logo {
    font-size: 1.6rem;
    color: var(--gold);
    letter-spacing: 2px;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--gold);
}

/* Magnetic Buttons & Liquid Gradient CTA */
.btn-magnetic-wrapper {
    perspective: 1000px;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--card-border-radius);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.2), transparent);
    z-index: -1;
    transition: left 0.6s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(212,175,55,0.2);
    color: var(--gold);
    background: rgba(212,175,55,0.1);
}

.btn-primary:hover::before {
    left: 100%;
}

body:not(.dark-mode) .btn-primary:hover {
    color: #fff;
    background: var(--gold);
}

.btn-secondary {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 10;
}

.headline {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.en-headline {
    font-size: 2rem;
    font-weight: 400;
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    letter-spacing: -1px;
}

.sub-headline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 500px;
}

/* Minimalist 3D Golden Fiber Node Ring */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    height: 400px;
}

.ring-container {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transition: transform 0.1s;
}

.ring {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    border: 1px solid var(--gold-dim);
    transform-style: preserve-3d;
}

.ring1 {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212,175,55,0.2), inset 0 0 20px rgba(212,175,55,0.1);
    animation: spin 20s linear infinite;
}

.ring2 {
    transform: rotateX(60deg) rotateY(45deg);
    animation: spin-reverse 15s linear infinite;
}

.ring3 {
    transform: rotateX(-45deg) rotateY(60deg);
    animation: spin 25s linear infinite;
}

.node-center {
    position: absolute;
    top: 50%; left: 50%;
    width: 12px; height: 12px;
    background: var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px var(--gold);
}

@keyframes spin { 100% { transform: rotateX(360deg) rotateY(360deg); } }
@keyframes spin-reverse { 100% { transform: rotateX(-360deg) rotateY(-360deg); } }

/* Glow Cards with Proximity Illumination */
.glow-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, transform 0.3s ease, background-color 0.4s;
}

.glow-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle 400px at var(--mouse-x, 0) var(--mouse-y, 0), rgba(212, 175, 55, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

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

.glow-card:hover {
    border-color: rgba(212,175,55,0.4);
    transform: translateY(-2px);
}

.glow-card > * {
    position: relative;
    z-index: 1;
}

/* Simulator Section */
.simulator-section {
    margin: 40px 24px 80px;
    padding: 60px;
}

.simulator-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.simulator-text {
    text-align: center;
}

.simulator-ui {
    width: 100%;
    max-width: 800px;
}

canvas#pingChart {
    width: 100%;
    height: 150px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    margin-bottom: 24px;
    transition: border-color 0.4s;
}

body:not(.dark-mode) canvas#pingChart {
    background: rgba(0,0,0,0.03);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.slider-container .label-prem {
    color: var(--gold);
    font-weight: 500;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 10px rgba(212,175,55,0.5);
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: var(--border-color);
    border-radius: 2px;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.section-title.center {
    text-align: center;
}

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

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

/* Cards */
.card-icon {
    color: var(--gold);
    margin-bottom: 24px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.card p {
    color: var(--text-muted);
}

/* Streaming & AI */
.feature-hero-content {
    max-width: 400px;
}

/* Pricing Table */
.pricing-card {
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--gold);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gold);
    color: #fff;
    padding: 4px 40px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    transform: rotate(45deg);
}
body.dark-mode .popular-badge { color: #000; }

.price {
    font-size: 3.5rem;
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
    margin: 32px 0;
    color: var(--gold);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

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

.pricing-features li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
}
.pricing-features li:last-child {
    border-bottom: none;
}

/* Reviews */
.review-text {
    font-style: italic;
    margin-bottom: 24px;
    color: var(--text-primary) !important;
}

.review-author {
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    padding: 30px;
}

.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    text-align: center;
    background-color: var(--bg-alt);
    transition: background-color 0.4s, border-color 0.4s;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero-container { flex-direction: column; text-align: center; padding-top: 60px; }
    .hero-visual { height: 300px; margin-top: 40px; width: 100%; overflow: hidden;}
    .headline { font-size: 3rem; }
    .en-headline { font-size: 1.5rem; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .popular-badge { right: 20px; top: 20px; transform: none; border-radius: 4px; padding: 4px 12px; }
    .simulator-section { margin: 20px 0; padding: 30px 20px; }
    canvas#pingChart { height: 100px; }
}
