:root {
  --bg-base: #060810;
  --bg-surface: #0c101d;
  --bg-card: rgba(15, 23, 42, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 240, 255, 0.3);
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-dim: #64748b;
  --accent-cyan: #00f0ff;
  --accent-purple: #7000ff;
  --accent-green: #10b981;
  --grad-main: linear-gradient(135deg, #7000ff 0%, #00f0ff 50%, #10b981 100%);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg-base); color: var(--text-main); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; word-break: keep-all; }

/* Background Glow */
.glow { position: fixed; border-radius: 50%; filter: blur(140px); pointer-events: none; z-index: 0; opacity: 0.15; }
.glow-1 { width: 600px; height: 600px; background: var(--accent-purple); top: -100px; left: -100px; }
.glow-2 { width: 500px; height: 500px; background: var(--accent-cyan); top: 50%; right: -100px; }

/* Header & Nav */
header { position: sticky; top: 0; background: rgba(6, 8, 16, 0.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-subtle); z-index: 1000; }
.nav-wrap { max-width: 1280px; margin: 0 auto; padding: 0.9rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.brand { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; text-decoration: none; color: #fff; z-index: 1002; }
.brand span { background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-right-area { display: flex; align-items: center; gap: 1rem; }
.nav-menu { display: flex; gap: 1.25rem; list-style: none; align-items: center; }
.nav-menu a { color: var(--text-sub); text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: 0.2s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-cyan); }
.btn-nav { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(0, 240, 255, 0.1); border: 1px solid var(--accent-cyan); padding: 0.4rem 0.9rem; border-radius: 6px; color: #fff; font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.nav-logo-box { background: #fff; padding: 2px 5px; border-radius: 4px; display: inline-flex; align-items: center; }
.nav-logo-box img { height: 18px; object-fit: contain; }

/* Mobile Hamburger Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1002;
}
.hamburger-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Common Containers */
.container { max-width: 1280px; margin: 0 auto; padding: 4.5rem 1.5rem; position: relative; z-index: 1; min-height: calc(100vh - 180px); }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--accent-cyan); letter-spacing: 1px; margin-bottom: 0.75rem; text-transform: uppercase; }
.h-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.25; margin-bottom: 0.75rem; letter-spacing: -0.5px; }
.h-desc { color: var(--text-sub); font-size: 1rem; margin-bottom: 2.5rem; }

/* Grid Styles */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

.box { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 1.75rem; backdrop-filter: blur(10px); transition: 0.2s; }
.box:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.box h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.box p { font-size: 0.88rem; color: var(--text-sub); }

.ppt-point { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.4rem; font-size: 0.88rem; color: var(--text-sub); }
.ppt-point::before { content: '•'; color: var(--accent-cyan); font-weight: bold; font-size: 1.1rem; }
.metric { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--accent-cyan); line-height: 1; margin-bottom: 0.25rem; }

/* Buttons & Inputs */
.btn-action { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #7000ff, #00f0ff); color: #060810; padding: 0.8rem 1.8rem; border-radius: 8px; font-weight: 800; font-size: 0.95rem; text-decoration: none; border: none; cursor: pointer; transition: 0.2s; }
.btn-action:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4); }
.input-row { margin-bottom: 1rem; }
.input-row label { display: block; font-size: 0.75rem; font-family: var(--font-mono); color: var(--text-sub); margin-bottom: 0.25rem; }
.sim-input { width: 100%; background: #060810; border: 1px solid var(--border-subtle); border-radius: 6px; padding: 0.6rem 0.75rem; color: #fff; font-family: var(--font-mono); outline: none; }
.sim-input:focus { border-color: var(--accent-cyan); }

/* Process / Frame */
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.flow-card { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 1rem; text-align: center; }
.flow-num { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 800; color: var(--accent-green); margin-bottom: 0.25rem; }
.cert-frame { width: 100%; height: 380px; background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; }
.cert-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Footer */
footer { background: #030408; border-top: 1px solid var(--border-subtle); padding: 2rem 1.5rem; color: var(--text-dim); font-size: 0.85rem; }
.footer-wrap { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* Mobile Responsive */
@media (max-width: 900px) {
  .hamburger-btn { display: flex; }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #080c18;
    border-left: 1px solid var(--border-accent);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    z-index: 1001;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu a {
    font-size: 1.05rem;
    width: 100%;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .grid-2 { grid-template-columns: 1fr; }
  .cert-frame { height: 260px; }
}