/* roulang page: index */
:root {
      --bg-base: #0C0D10;
      --bg-surface: #14161C;
      --bg-card: #1A1D24;
      --bg-deep: #08090A;
      --primary: #10B981;
      --primary-hover: #059669;
      --secondary: #06B6D4;
      --warning: #F59E0B;
      --danger: #EF4444;
      --text-main: #F8FAFC;
      --text-muted: #94A3B8;
      --text-dim: #64748B;
      --border: rgba(255, 255, 255, 0.08);
      --border-focus: rgba(16, 185, 129, 0.4);
      --radius-sm: 6px;
      --radius-md: 10px;
      --radius-lg: 14px;
      --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
      --max-width: 1280px;
      --font-main: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
      --font-mono: Consolas, "Fira Code", monospace;
    }
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    body {
      background-color: var(--bg-base);
      color: var(--text-main);
      font-family: var(--font-main);
      line-height: 1.65;
      font-size: 15px;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }
    a {
      color: inherit;
      text-decoration: none;
      transition: all 0.25s ease;
    }
    ul, ol {
      list-style: none;
    }
    img {
      max-width: 100%;
      height: auto;
      display: block;
    }
    .container {
      width: 100%;
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 1.5rem;
    }
    .text-mono {
      font-family: var(--font-mono);
    }
    .text-emerald {
      color: var(--primary);
    }
    .text-cyan {
      color: var(--secondary);
    }

    /* Top Bar & Header */
    .top-bar {
      background-color: #060709;
      border-bottom: 1px solid var(--border);
      font-size: 0.8rem;
      color: var(--text-dim);
      padding: 6px 0;
    }
    .top-bar-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .live-status {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .pulse-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background-color: var(--primary);
      box-shadow: 0 0 8px var(--primary);
      animation: liveGlow 1.8s infinite;
    }
    @keyframes liveGlow {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(0.9); }
    }
    .site-header {
      position: sticky;
      top: 0;
      z-index: 999;
      background: rgba(12, 13, 16, 0.92);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
    }
    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 68px;
    }
    .site-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 700;
      font-size: 1.15rem;
      letter-spacing: -0.01em;
    }
    .site-logo-icon {
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      border-radius: var(--radius-sm);
      display: grid;
      place-items: center;
      color: #000;
      font-weight: 900;
      font-size: 0.9rem;
    }
    .main-nav {
      display: flex;
      align-items: center;
      gap: 1.8rem;
    }
    .main-nav a {
      color: var(--text-muted);
      font-size: 0.92rem;
      font-weight: 500;
      position: relative;
      padding: 4px 0;
    }
    .main-nav a:hover, .main-nav a.active {
      color: var(--text-main);
    }
    .main-nav a.active::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      right: 0;
      height: 2px;
      background-color: var(--primary);
      border-radius: 2px;
    }
    .header-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 9px 18px;
      border-radius: var(--radius-sm);
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid transparent;
      transition: all 0.2s ease;
      white-space: nowrap;
    }
    .btn-primary {
      background: var(--primary);
      color: #042416;
    }
    .btn-primary:hover {
      background: var(--primary-hover);
      color: #ffffff;
      transform: translateY(-1px);
    }
    .btn-secondary {
      background: rgba(255, 255, 255, 0.05);
      border-color: var(--border);
      color: var(--text-main);
    }
    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.2);
    }
    .btn-sm {
      padding: 6px 14px;
      font-size: 0.82rem;
    }
    .nav-toggle {
      display: none;
      background: none;
      border: 1px solid var(--border);
      color: var(--text-main);
      padding: 6px 10px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 1rem;
    }

    /* Section Global Styles */
    section {
      padding: 85px 0;
      position: relative;
      border-bottom: 1px solid var(--border);
    }
    .section-head {
      margin-bottom: 45px;
      max-width: 780px;
    }
    .section-eyebrow {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--primary);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 8px;
      display: inline-block;
    }
    .section-title {
      font-size: clamp(1.6rem, 3.2vw, 2.2rem);
      font-weight: 700;
      line-height: 1.25;
      letter-spacing: -0.02em;
      margin-bottom: 14px;
      color: var(--text-main);
    }
    .section-desc {
      color: var(--text-muted);
      font-size: 1rem;
      line-height: 1.7;
    }

    /* Hero Section */
    .hero-section {
      padding: 70px 0 90px;
      position: relative;
      overflow: hidden;
      background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08), transparent 50%),
                  radial-gradient(circle at 10% 70%, rgba(6, 182, 212, 0.05), transparent 45%),
                  var(--bg-base);
    }
    .hero-bg-overlay {
      position: absolute;
      inset: 0;
      background: url('/assets/images/0cc117ff90e08d27.jpg') center/cover no-repeat;
      opacity: 0.07;
      pointer-events: none;
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 40px;
      align-items: center;
      position: relative;
      z-index: 2;
    }
    .hero-badge-wrap {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(16, 185, 129, 0.1);
      border: 1px solid rgba(16, 185, 129, 0.25);
      padding: 5px 12px;
      border-radius: 30px;
      font-size: 0.8rem;
      color: var(--primary);
      margin-bottom: 20px;
    }
    .hero-badge-tag {
      background: var(--primary);
      color: #042416;
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 4px;
      font-size: 0.72rem;
    }
    .hero-title {
      font-size: clamp(2.1rem, 4.4vw, 3.4rem);
      font-weight: 800;
      line-height: 1.18;
      letter-spacing: -0.025em;
      margin-bottom: 20px;
      color: #FFFFFF;
    }
    .hero-summary {
      color: var(--text-muted);
      font-size: 1.05rem;
      line-height: 1.75;
      margin-bottom: 30px;
      max-width: 620px;
    }
    .hero-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 35px;
    }
    .hero-metrics-pill {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
      padding-top: 25px;
      border-top: 1px solid var(--border);
    }
    .hero-metric-val {
      font-size: 1.45rem;
      font-weight: 700;
      color: var(--text-main);
      display: block;
    }
    .hero-metric-lbl {
      font-size: 0.78rem;
      color: var(--text-dim);
    }
    .hero-stage-card {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 18px;
      box-shadow: var(--shadow-card);
      position: relative;
    }
    .console-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 16px;
    }
    .traffic-lights {
      display: flex;
      gap: 6px;
    }
    .light {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }
    .light.red { background: #EF4444; }
    .light.yellow { background: #F59E0B; }
    .light.green { background: #10B981; }
    .hero-screenshot-slot {
      border-radius: var(--radius-md);
      overflow: hidden;
      border: 1px solid var(--border);
      margin-bottom: 14px;
      background: #000;
    }
    .hero-screenshot-slot img {
      width: 100%;
      height: 240px;
      object-fit: cover;
    }
    .node-row-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--bg-card);
      padding: 10px 14px;
      border-radius: var(--radius-sm);
      margin-bottom: 8px;
      font-size: 0.85rem;
      border: 1px solid rgba(255, 255, 255, 0.03);
    }

    /* Problem Statements */
    .problem-section {
      background-color: var(--bg-surface);
    }
    .problem-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }
    .problem-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 26px;
      position: relative;
      transition: transform 0.25s ease, border-color 0.25s ease;
    }
    .problem-card:hover {
      transform: translateY(-4px);
      border-color: rgba(239, 68, 68, 0.35);
    }
    .problem-tag {
      font-size: 0.72rem;
      color: var(--danger);
      background: rgba(239, 68, 68, 0.1);
      padding: 3px 8px;
      border-radius: 4px;
      display: inline-block;
      margin-bottom: 12px;
      font-weight: 600;
    }
    .problem-title {
      font-size: 1.15rem;
      font-weight: 600;
      margin-bottom: 10px;
      color: var(--text-main);
    }
    .problem-desc {
      font-size: 0.92rem;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* Live Interactive Demo Flow */
    .flow-showcase {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 36px;
      align-items: center;
    }
    .flow-steps {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .flow-step-card {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 20px;
      display: flex;
      gap: 16px;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .flow-step-card.active, .flow-step-card:hover {
      border-color: var(--border-focus);
      background: var(--bg-card);
    }
    .step-number {
      width: 32px;
      height: 32px;
      background: rgba(16, 185, 129, 0.12);
      color: var(--primary);
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-weight: 700;
      flex-shrink: 0;
      font-size: 0.88rem;
    }
    .step-content h3 {
      font-size: 1.05rem;
      margin-bottom: 6px;
    }
    .step-content p {
      font-size: 0.88rem;
      color: var(--text-muted);
    }
    .flow-preview-box {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 22px;
      position: relative;
    }
    .flow-preview-box img {
      border-radius: var(--radius-md);
      width: 100%;
      height: 310px;
      object-fit: cover;
      margin-bottom: 14px;
      border: 1px solid var(--border);
    }
    .flow-stat-row {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
    .flow-mini-card {
      background: var(--bg-deep);
      padding: 12px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
    }

    /* Core Matrix 6 Cards */
    .matrix-section {
      background-color: var(--bg-deep);
    }
    .matrix-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
    .matrix-card {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 28px;
      position: relative;
      transition: all 0.25s ease;
    }
    .matrix-card:hover {
      border-color: var(--border-focus);
      transform: translateY(-4px);
      box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    }
    .matrix-icon-badge {
      width: 44px;
      height: 44px;
      background: rgba(16, 185, 129, 0.08);
      border: 1px solid rgba(16, 185, 129, 0.2);
      border-radius: var(--radius-sm);
      display: grid;
      place-items: center;
      color: var(--primary);
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 18px;
    }
    .matrix-title {
      font-size: 1.18rem;
      font-weight: 600;
      margin-bottom: 10px;
      color: var(--text-main);
    }
    .matrix-desc {
      color: var(--text-muted);
      font-size: 0.92rem;
      line-height: 1.65;
    }

    /* Architecture Section */
    .arch-wrapper {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
    }
    .terminal-window {
      background: #050607;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: var(--radius-md);
      overflow: hidden;
      font-family: var(--font-mono);
      font-size: 0.85rem;
    }
    .terminal-bar {
      background: #111317;
      padding: 9px 14px;
      display: flex;
      align-items: center;
      gap: 8px;
      border-bottom: 1px solid var(--border);
      color: var(--text-dim);
      font-size: 0.78rem;
    }
    .terminal-body {
      padding: 20px;
      line-height: 1.8;
      color: #A7F3D0;
    }
    .terminal-body .comment { color: var(--text-dim); }
    .terminal-body .keyword { color: var(--secondary); }
    .terminal-body .string { color: var(--warning); }

    /* Product Editions 3 Cards */
    .editions-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 26px;
    }
    .edition-card {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 32px 24px;
      display: flex;
      flex-direction: column;
      position: relative;
    }
    .edition-card.featured {
      border-color: rgba(16, 185, 129, 0.4);
      background: linear-gradient(180deg, rgba(16, 185, 129, 0.04), var(--bg-surface));
    }
    .edition-badge-top {
      position: absolute;
      top: -12px;
      left: 24px;
      background: var(--primary);
      color: #042416;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 2px 10px;
      border-radius: 20px;
      text-transform: uppercase;
    }
    .edition-name {
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 10px;
    }
    .edition-fit {
      color: var(--text-dim);
      font-size: 0.85rem;
      margin-bottom: 22px;
      min-height: 38px;
    }
    .edition-points {
      margin-bottom: 30px;
      flex-grow: 1;
    }
    .edition-points li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 12px;
      font-size: 0.9rem;
      color: var(--text-muted);
    }
    .edition-points li::before {
      content: '✓';
      color: var(--primary);
      font-weight: bold;
    }

    /* Scenarios Block */
    .scenarios-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
    .scenario-card {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .scenario-img-wrap {
      height: 180px;
      overflow: hidden;
      position: relative;
    }
    .scenario-img-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }
    .scenario-card:hover .scenario-img-wrap img {
      transform: scale(1.05);
    }
    .scenario-body {
      padding: 22px;
      flex-grow: 1;
    }
    .scenario-body h3 {
      font-size: 1.15rem;
      margin-bottom: 8px;
    }
    .scenario-body p {
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* Metrics Bar (Pure Stats) */
    .metrics-bar-section {
      background: #080A0D;
      padding: 55px 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .metrics-grid-four {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
      text-align: center;
    }
    .metric-digit {
      font-size: clamp(2rem, 3.8vw, 2.8rem);
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 6px;
      color: var(--primary);
      font-family: var(--font-mono);
    }
    .metric-caption {
      font-size: 0.9rem;
      color: var(--text-muted);
    }

    /* Live Dashboard Tabs Showcase */
    .tabs-controls {
      display: flex;
      gap: 12px;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }
    .tab-btn {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      color: var(--text-muted);
      padding: 10px 20px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      font-size: 0.9rem;
      font-weight: 500;
      transition: all 0.2s;
    }
    .tab-btn.active, .tab-btn:hover {
      background: var(--bg-card);
      color: var(--primary);
      border-color: var(--border-focus);
    }
    .tab-pane {
      display: none;
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 24px;
    }
    .tab-pane.active {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 30px;
      align-items: center;
    }
    .tab-pane-img {
      border-radius: var(--radius-md);
      overflow: hidden;
      border: 1px solid var(--border);
      max-height: 380px;
    }
    .tab-pane-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .tab-pane-info h3 {
      font-size: 1.35rem;
      margin-bottom: 14px;
    }
    .tab-pane-info p {
      color: var(--text-muted);
      margin-bottom: 20px;
      font-size: 0.95rem;
      line-height: 1.7;
    }

    /* Common Pitfalls / Anti-Ban */
    .pitfalls-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
    .pitfall-box {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 24px;
    }
    .pitfall-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      color: var(--warning);
      font-weight: 600;
    }
    .pitfall-box h3 {
      font-size: 1.1rem;
      margin-bottom: 10px;
    }
    .pitfall-box p {
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* Case Studies */
    .case-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }
    .case-card {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 30px;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    .case-title {
      font-size: 1.25rem;
      font-weight: 600;
    }
    .case-desc {
      color: var(--text-muted);
      line-height: 1.7;
    }
    .case-metric {
      color: var(--primary);
      font-weight: 700;
    }

    /* FAQ Section */
    .faq-wrapper {
      max-width: 800px;
      margin: 0 auto;
    }
    .faq-item {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      margin-bottom: 12px;
      overflow: hidden;
    }
    .faq-q {
      padding: 20px;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: 600;
    }
    .faq-a {
      padding: 0 20px 20px;
      color: var(--text-muted);
      font-size: 0.95rem;
      line-height: 1.7;
    }

    /* Footer */
    .footer {
      background: #060709;
      padding: 60px 0 30px;
      border-top: 1px solid var(--border);
      color: var(--text-dim);
      font-size: 0.85rem;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 40px;
      margin-bottom: 40px;
    }
    .footer-brand {
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 12px;
    }
    .footer-links a {
      display: block;
      margin-bottom: 8px;
      color: var(--text-muted);
    }
    .footer-copy {
      text-align: center;
      padding-top: 30px;
      border-top: 1px solid var(--border);
    }

    /* Mobile */
    @media (max-width: 1024px) {
      .hero-grid { grid-template-columns: 1fr; }
      .matrix-grid, .editions-grid, .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 768px) {
      .main-nav, .header-actions .btn:not(.btn-primary) { display: none; }
      .nav-toggle { display: block; }
      .matrix-grid, .editions-grid, .scenarios-grid, .problem-grid, .metrics-grid-four { grid-template-columns: 1fr; }
      .case-grid, .arch-wrapper, .flow-showcase, .tab-pane.active { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; }
    }
