/* Deeply Optimized Front Royal Blue SaaS Design for 魔戒官网 (mojie.im) */
:root {
  --primary: #377dff;
  --primary-hover: #2363eb;
  --primary-dark: #1950cc;
  --primary-light: rgba(55, 125, 255, 0.08);
  --primary-subtle: rgba(55, 125, 255, 0.04);
  --primary-glow: rgba(55, 125, 255, 0.28);
  --primary-gradient: linear-gradient(135deg, #377dff 0%, #1e52db 100%);
  --dark: #132144;
  --dark-surface: #0b1736;
  --dark-card: #101c3d;
  --bg-page: #f9fbfd;
  --bg-card: #ffffff;
  --text-main: #1e2022;
  --text-muted: #677788;
  --text-light: #8c98a4;
  --border-color: #e7eaf3;
  --border-hover: #cbd5e1;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --shadow-xs: 0 1px 3px rgba(19, 33, 68, 0.04);
  --shadow-sm: 0 4px 12px rgba(19, 33, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(19, 33, 68, 0.09);
  --shadow-lg: 0 16px 42px rgba(19, 33, 68, 0.12);
  --shadow-glow: 0 0 28px rgba(55, 125, 255, 0.24);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--primary-hover); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Top Announcement Bar */
.top-bar {
  background: var(--dark-surface);
  color: #d1d5db;
  padding: 8px 0;
  font-size: 0.82rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar span { color: var(--accent-gold); font-weight: 700; }
.top-bar a { color: #60a5fa; text-decoration: underline; margin-left: 6px; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.35rem; color: var(--dark); text-decoration: none;
}
.brand-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(55, 125, 255, 0.2);
  letter-spacing: 0.3px;
}
.nav-links { display: flex; gap: 22px; list-style: none; }
.nav-links a {
  color: var(--text-main); font-weight: 500; font-size: 0.94rem;
  padding: 6px 4px; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 0; left: 4px; right: 4px; height: 2px;
  background: var(--primary); border-radius: 2px;
}
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; font-size: 0.92rem; font-weight: 600;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: all 0.2s ease; text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(55, 125, 255, 0.32);
}
.btn-primary:hover {
  background: var(--primary-hover); transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(55, 125, 255, 0.42); color: #fff;
}
.btn-outline {
  background: transparent; border-color: var(--border-color); color: var(--dark);
}
.btn-outline:hover {
  background: var(--primary-light); border-color: var(--primary); color: var(--primary);
}
.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.btn-gold:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4); }
.btn-lg { padding: 13px 28px; font-size: 1.02rem; border-radius: var(--radius-md); }

/* Hero Section */
.hero {
  padding: 75px 0 65px;
  background: radial-gradient(circle at 15% 15%, rgba(55, 125, 255, 0.05) 0%, rgba(249, 251, 253, 1) 75%);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(55, 125, 255, 0.22);
  padding: 6px 16px; border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 700; color: var(--primary);
  margin-bottom: 22px; box-shadow: var(--shadow-xs);
}
.hero h1 {
  font-size: 3rem; font-weight: 900; line-height: 1.2;
  color: var(--dark); margin-bottom: 18px; letter-spacing: -0.5px;
}
.hero h1 .highlight {
  color: var(--primary);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-p {
  font-size: 1.15rem; color: var(--text-muted); max-width: 780px;
  margin-bottom: 32px; line-height: 1.75;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-trust {
  display: flex; gap: 24px; align-items: center; font-size: 0.88rem; color: var(--text-muted);
  margin-bottom: 36px; flex-wrap: wrap;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--dark); }

/* Stats Bar */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: #fff; padding: 26px 30px; border-radius: var(--radius-lg);
  border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
}
.stat-item h4 { font-size: 1.85rem; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.stat-item p { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* Section Standard */
.section { padding: 70px 0; }
.section-alt { background: #f3f6fb; }
.section-header { text-align: center; max-width: 780px; margin: 0 auto 50px; }
.section-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  color: var(--primary); background: var(--primary-light);
  padding: 4px 14px; border-radius: var(--radius-pill); margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.section-title { font-size: 2.3rem; font-weight: 800; color: var(--dark); margin-bottom: 14px; letter-spacing: -0.3px; }
.section-sub { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }

/* Interactive Calculator Box */
.calc-card {
  background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-xl);
  padding: 40px; box-shadow: var(--shadow-md); max-width: 900px; margin: 0 auto;
}
.calc-slider-group { margin-bottom: 28px; }
.calc-slider-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; }
.calc-slider-val { color: var(--primary); font-size: 1.15rem; font-weight: 800; }
.calc-range {
  width: 100%; height: 8px; border-radius: 6px; background: #e2e8f0; outline: none; -webkit-appearance: none;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); cursor: pointer; box-shadow: 0 2px 8px rgba(55, 125, 255, 0.4);
}
.calc-output-box {
  background: linear-gradient(135deg, rgba(55, 125, 255, 0.06) 0%, rgba(55, 125, 255, 0.02) 100%);
  border: 1px solid rgba(55, 125, 255, 0.2); border-radius: var(--radius-lg);
  padding: 24px 28px; text-align: center; margin-top: 30px;
}
.calc-output-title { font-size: 1rem; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.calc-output-gb { font-size: 2.4rem; font-weight: 900; color: var(--primary); }
.calc-output-desc { font-size: 0.95rem; color: var(--dark); margin-top: 10px; line-height: 1.6; }

/* Anti-Phishing Verification Tool */
.verify-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-xl);
  padding: 36px 40px; box-shadow: var(--shadow-sm); max-width: 900px; margin: 0 auto;
}
.verify-form { display: flex; gap: 12px; margin: 20px 0 16px; }
.verify-input {
  flex-grow: 1; padding: 12px 18px; font-size: 0.95rem; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); outline: none; transition: all 0.2s;
}
.verify-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(55, 125, 255, 0.15); }
.verify-result {
  padding: 16px 20px; border-radius: var(--radius-sm); font-size: 0.92rem;
  display: none; line-height: 1.6;
}

/* Feature Pillars Grid */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: all 0.25s ease; position: relative; overflow: hidden;
}
.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.pillar-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--primary-light);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.pillar-title { font-size: 1.25rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.pillar-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }

/* Pricing Cards */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-xl);
  padding: 36px 30px; position: relative; transition: all 0.3s ease;
  display: flex; flex-direction: column;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 12px 36px rgba(55, 125, 255, 0.16);
}
.popular-badge {
  position: absolute; top: -14px; right: 28px;
  background: var(--primary-gradient); color: #fff;
  font-size: 0.75rem; font-weight: 800; padding: 4px 14px;
  border-radius: var(--radius-pill); letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(55, 125, 255, 0.35);
}
.plan-header { margin-bottom: 20px; }
.plan-name { font-size: 1.35rem; font-weight: 800; color: var(--dark); }
.plan-desc { font-size: 0.88rem; color: var(--text-muted); margin-top: 4px; }
.plan-price { font-size: 2.5rem; font-weight: 900; color: var(--dark); margin: 16px 0 4px; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.plan-subtext { font-size: 0.84rem; color: var(--primary); font-weight: 700; margin-bottom: 22px; }
.plan-features { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.plan-features li {
  display: flex; align-items: center; gap: 10px; font-size: 0.92rem;
  margin-bottom: 12px; color: var(--text-main);
}
.plan-features li svg { color: var(--accent-emerald); flex-shrink: 0; }

/* Edge Nodes Matrix */
.node-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.node-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 22px; transition: all 0.2s ease;
}
.node-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.node-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.node-flag { font-size: 1.3rem; }
.node-ms { font-family: monospace; font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.node-name { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.node-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.node-tag {
  font-size: 0.72rem; padding: 2px 8px; border-radius: var(--radius-xs);
  background: var(--bg-page); color: var(--text-muted); border: 1px solid var(--border-color);
}

/* FAQ Accordion */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 22px 26px; transition: all 0.2s ease;
}
.faq-card:hover { border-color: var(--primary); }
.faq-q {
  font-weight: 700; font-size: 1.05rem; color: var(--dark); margin-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-a { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }

/* CTA Banner */
.cta-banner {
  background: var(--dark-surface);
  border-radius: var(--radius-xl); padding: 55px 40px; text-align: center; color: #fff;
  position: relative; overflow: hidden; margin-top: 40px;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { font-size: 2.3rem; font-weight: 900; margin-bottom: 14px; }
.cta-banner p { font-size: 1.08rem; color: #cbd5e1; max-width: 680px; margin: 0 auto 30px; line-height: 1.7; }

/* Footer */
.footer {
  background: var(--dark); color: #94a3b8; padding: 60px 0 30px; font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h5 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #94a3b8; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
}
.footer-friendly-links {
  margin-top: 30px; padding: 22px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-md);
}
.links-title { font-weight: 700; color: #cbd5e1; margin-bottom: 12px; font-size: 0.9rem; }
.links-flex { display: flex; flex-wrap: wrap; gap: 12px; }
.friendly-link {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05); color: #94a3b8; font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.friendly-link:hover { background: rgba(55, 125, 255, 0.2); color: #fff; border-color: var(--primary); }
.friendly-link.current { background: rgba(55, 125, 255, 0.3); color: #fff; font-weight: 600; border-color: var(--primary); }

@media (max-width: 900px) {
  .hero h1 { font-size: 2.2rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .node-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
