/* YFcloud Flagship Official — Oceanic Deep Navy & Champagne Gold */
:root {
  --bg: #040914;
  --surface: #0A1324;
  --surface-2: #101E36;
  --border: rgba(245, 208, 97, 0.22);
  --border-subtle: rgba(148, 163, 184, 0.14);
  --text: #F8FAFC;
  --muted: #94A3B8;
  --gold: #F5D061;
  --gold-deep: #D4AF37;
  --cyan: #38BDF8;
  --emerald: #10B981;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(ellipse 80% 50% at 20% 0%, rgba(56, 189, 248, 0.12), transparent),
              radial-gradient(ellipse 60% 40% at 85% 15%, rgba(245, 208, 97, 0.10), transparent),
              var(--bg);
  color: var(--text); line-height: 1.7; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Announcement Strip */
.top-strip {
  background: linear-gradient(90deg, #0D1B33, #172542, #0D1B33);
  border-bottom: 1px solid var(--border);
  text-align: center; padding: 8px 16px; font-size: 13px; color: #E2E8F0;
}
.top-strip span { color: var(--gold); font-weight: 700; margin-right: 6px; }

/* Header */
.yf-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4, 9, 20, 0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.yf-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 74px; }
.yf-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap; }
.yf-brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 20px rgba(56,189,248,0.25); }
.yf-brand-text { font-size: 19px; font-weight: 800; letter-spacing: 0.4px; }
.yf-brand-text span { color: var(--gold); }
.yf-nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.yf-nav::-webkit-scrollbar { display: none; }
.yf-nav a {
  padding: 8px 13px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted);
  transition: all 0.2s; white-space: nowrap !important; flex-shrink: 0 !important;
}
.yf-nav a:hover, .yf-nav a.active { color: var(--gold); background: rgba(245, 208, 97, 0.10); }
.yf-nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, #F5D061 0%, #D4AF37 100%);
  color: #040914; border: none; cursor: pointer;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.3); transition: all 0.2s;
  white-space: nowrap !important; flex-shrink: 0 !important;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.45); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid var(--border); color: var(--text); background: rgba(255,255,255,0.03);
  transition: all 0.2s; white-space: nowrap !important; flex-shrink: 0 !important;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(245, 208, 97, 0.06); }

/* Hero */
.hero { padding: 68px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 44px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: rgba(245, 208, 97, 0.12);
  color: var(--gold); border: 1px solid var(--border); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 4.3vw, 54px); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.hero h1 .hl { background: linear-gradient(90deg, #F5D061, #38BDF8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 17px; color: var(--muted); margin-bottom: 28px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--border-subtle);
}
.stat-val { font-size: 24px; font-weight: 800; color: var(--gold); }
.stat-lbl { font-size: 12px; color: var(--muted); }

/* Telemetry Card */
.telemetry-card {
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border); border-radius: 22px; padding: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6); position: relative; overflow: hidden;
}
.telemetry-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border-subtle);
}
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 12px var(--emerald); margin-right: 6px; }
.route-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: rgba(4, 9, 20, 0.65);
  border: 1px solid var(--border-subtle); margin-bottom: 10px;
}
.route-name { font-weight: 700; font-size: 14px; }
.route-sub { font-size: 12px; color: var(--muted); }
.route-ping { font-family: monospace; font-weight: 800; font-size: 14px; color: #34D399; background: rgba(16,185,129,0.12); padding: 4px 10px; border-radius: 8px; }

/* Sections & Grids */
.section { padding: 72px 0; }
.section-alt { background: rgba(10, 19, 36, 0.55); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 46px; }
.section-tag { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--cyan); text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; }

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 18px; padding: 28px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(245, 208, 97, 0.12); color: var(--gold); margin-bottom: 16px; border: 1px solid var(--border);
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); }

/* Tabs */
.tabs-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.tab-btn {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--border-subtle);
  background: var(--surface); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s;
}
.tab-btn.active { background: var(--gold); color: #040914; border-color: var(--gold); }
.tab-panel { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px; }
.tab-panel.active { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }

/* Region Grid & Client Strip */
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.region-card { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 22px; }
.region-badge { display: inline-block; font-size: 11px; font-weight: 700; color: var(--cyan); background: rgba(56,189,248,0.12); padding: 3px 9px; border-radius: 6px; margin-bottom: 10px; }
.client-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.client-box {
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 14px;
  padding: 20px 14px; text-align: center; transition: all 0.2s;
}
.client-box:hover { border-color: var(--gold); transform: translateY(-3px); }
.client-os { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.client-app { font-size: 12px; color: var(--gold); }

/* Pricing */
.billing-toggle {
  display: inline-flex; background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: 999px; padding: 4px; margin-top: 18px;
}
.billing-toggle button { padding: 8px 22px; border-radius: 999px; border: none; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.billing-toggle button.active { background: var(--gold); color: #040914; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 22px; padding: 32px;
  display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border-color: var(--gold); background: linear-gradient(180deg, rgba(245,208,97,0.10) 0%, var(--surface) 100%); box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
.price-val { font-size: 42px; font-weight: 900; color: var(--gold); margin: 14px 0; }
.price-val span { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-list { list-style: none; margin: 18px 0 28px; flex: 1; }
.price-list li { padding: 8px 0; font-size: 14px; color: #CBD5E1; border-bottom: 1px dashed rgba(255,255,255,0.06); }

/* FAQ Accordion */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 18px 22px; background: none; border: none;
  font-size: 16px; font-weight: 700; color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-a { display: none; padding: 0 22px 18px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border-subtle); padding-top: 14px; }
.faq-item.open .faq-a { display: block; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #101E36 0%, #0A1324 100%);
  border: 1px solid var(--border); border-radius: 24px; padding: 48px 36px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

/* Table */
.yf-table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--border-subtle); font-size: 14px; }
th { color: var(--gold); background: rgba(245, 208, 97, 0.06); font-weight: 700; }

/* Ecosystem & Footer */
.yf-eco-section { padding: 56px 0; border-top: 1px solid var(--border-subtle); background: rgba(10, 19, 36, 0.6); }
.yf-eco-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 24px; }
.yf-eco-card { display: block; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-subtle); transition: all 0.2s; }
.yf-eco-card:hover, .yf-eco-active { border-color: var(--gold); transform: translateY(-2px); }
.yf-eco-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 6px; }
.yf-eco-dom { font-size: 12px; font-weight: 700; color: var(--cyan); }
.yf-eco-badge { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: rgba(245,208,97,0.14); color: var(--gold); }
.yf-eco-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.yf-eco-desc { font-size: 12px; color: var(--muted); line-height: 1.45; }
.yf-footer { padding: 36px 0; border-top: 1px solid var(--border-subtle); color: var(--muted); font-size: 13px; text-align: center; }
.page-hero { padding: 58px 0 38px; border-bottom: 1px solid var(--border-subtle); text-align: center; }
.page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 680px; margin: 0 auto; }

@media (max-width: 1024px) {
  .hero-grid, .bento-grid, .pricing-grid, .tab-panel.active, .yf-eco-grid, .region-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
