/* 
  Luyu Cloud - Paper-cut Style Design System
  Color Palette: 
  - Bg: #fdfcf8 (Eggshell)
  - Primary: #d32f2f (Chinese Red)
  - Accent: #c5a059 (Gold/Bronze)
  - Dark: #2c3e50 (Deep Blue/Grey)
*/

:root {
    --bg-color: #f8fafc;
    --primary-teal: #009688;
    --accent-gold: #c5a059;
    --text-dark: #1e293b;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --paper-shadow: 4px 4px 0px rgba(0, 150, 136, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

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

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

/* Header */
body > header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(253, 252, 248, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 150, 136, 0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-teal);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-teal);
    transition: var(--transition);
}

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

.nav-cta {
    color: var(--primary-teal) !important;
    font-weight: 700 !important;
}

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

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

.hero-text {
    flex: 1;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 150, 136, 0.08);
    color: var(--primary-teal);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 56px);
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero h1 span {
    color: var(--primary-teal);
    position: relative;
}

.hero p {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Paper Cut Art Element */
.paper-art {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.paper-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Sika Deer Placeholder (Using SVG later in HTML) */
.deer-card {
    background: white;
    padding: 20px;
    border: 2px solid var(--primary-teal);
    box-shadow: 12px 12px 0 var(--primary-teal);
    border-radius: 4px;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-teal);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 150, 136, 0.4);
}

/* Features */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: var(--primary-teal);
    margin: 0 auto;
}

.features {
    padding: 100px 0;
    background: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px;
    background: var(--bg-color);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-teal);
    box-shadow: var(--card-shadow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary-teal);
    font-size: 32px;
    border: 1px solid rgba(0, 138, 142, 0.1);
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.pricing-card {
    background: white;
    padding: 48px 32px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    text-align: center;
    overflow: hidden;
    transition: var(--transition);
}

.pricing-card.popular {
    border: 2px solid var(--primary-teal);
    transform: scale(1.05);
    z-index: 2;
}

.badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-teal);
    color: white;
    padding: 4px 40px;
    font-size: 12px;
    transform: rotate(45deg);
}

.price {
    font-size: 48px;
    font-weight: 800;
    margin: 24px 0;
    color: var(--text-dark);
}

.price span {
    font-size: 16px;
    font-weight: 400;
    color: #666;
}

.pricing-list {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}

.pricing-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.pricing-list li::before {
    content: '✓';
    color: var(--primary-teal);
    font-weight: bold;
}

/* FAQ */
.faq {
    padding: 100px 0;
    background: #fff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.faq-question {
    padding: 24px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    padding: 0 0 24px 0;
    color: #666;
    line-height: 1.6;
}

.faq-question:hover {
    color: var(--primary-teal);
}

/* FAQ Toggle using details/summary fallback or just simple CSS if we use details */
details summary {
    list-style: none;
    outline: none;
}

details summary::-webkit-details-marker {
    display: none;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 80px 0 40px;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 18px;
}

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

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

.footer-links a {
    color: #aaa;
    font-size: 14px;
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #666;
    font-size: 14px;
}

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

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.plum-petal {
    position: absolute;
    pointer-events: none;
    animation: fall linear infinite;
    z-index: 1;
}

@keyframes fall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        order: 2;
    }
    .hero-visual {
        order: 1;
        margin-bottom: 40px;
    }
    .hero p {
        margin: 0 auto 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Mobile menu can be added if needed, but for landing page simple is better */
    }
    .pricing-card.popular {
        transform: scale(1);
    }
}

/* Node Latency Dashboard Styles */
.node-dashboard {
    background: #1e293b;
    border-radius: 16px;
    padding: 24px;
    color: #f8fafc;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border: 1px solid rgba(0, 150, 136, 0.2);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    text-align: left;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #94a3b8;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.node-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.node-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.node-name {
    flex: 1.2;
    font-size: 13px;
    white-space: nowrap;
}

.node-bar-wrapper {
    flex: 1.5;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.node-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-teal), #4db6ac);
    border-radius: 3px;
    position: relative;
    animation: barLoad 1.5s ease-out;
}

@keyframes barLoad {
    from { width: 0; }
}

.node-latency {
    width: 50px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: var(--primary-teal);
    text-align: right;
}

.dashboard-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 11px;
    color: #64748b;
    text-align: center;
}
