/* ==========================================================================
   JBM Web Kit — Official Product Portal & Landing Page Stylesheet
   Adopted from JBM Computech Cybersecurity Theme (jbmcomputech.com)
   ========================================================================== */

:root {
  --bg-base: #070B14;
  --bg-surface: #0E1626;
  --bg-card: #111C2E;
  --bg-card-hover: #16243C;
  --bg-input: #080D18;
  
  --border: #23344D;
  --border-glow: #00D9E8;
  --border-focus: #00D9E8;
  
  --text-heading: #F8FAFC;
  --text-body: #94A3B8;
  --text-muted: #64748B;
  
  --cyan: #00D9E8;
  --cyan-hover: #00B9CC;
  --cyan-glow: rgba(0, 217, 232, 0.15);
  --blue: #0284C7;
  --green: #22C55E;
  --red: #EF4444;
  --amber: #F59E0B;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: #38bdf8;
}

/* Top Navigation Bar */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070B14;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 0 16px rgba(0, 217, 232, 0.35);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.brand-subtitle {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.88rem;
}
.nav-links a:hover {
  color: var(--cyan);
}
.btn-nav-cta {
  background: var(--cyan);
  color: #070B14 !important;
  font-weight: 700 !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(0, 217, 232, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-nav-cta:hover {
  background: var(--cyan-hover);
  transform: translateY(-1px);
}

/* Page Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 217, 232, 0.12) 0%, rgba(2, 132, 199, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
}
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  background: rgba(0, 217, 232, 0.1);
  border: 1px solid rgba(0, 217, 232, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #fff;
}
.hero h1 span {
  background: linear-gradient(135deg, #00D9E8 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 700px;
  margin: 0 auto 2.2rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00D9E8 0%, #0ea5e9 100%);
  color: #070B14;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 217, 232, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 217, 232, 0.45);
  color: #070B14;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan);
  color: #fff;
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 2rem;
  text-align: center;
}
.stat-item h3 {
  font-size: 1.6rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  margin-bottom: 0.2rem;
}
.stat-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Section Common */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid rgba(35, 52, 77, 0.6);
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.section-header .tag {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  display: block;
}
.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 217, 232, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 217, 232, 0.1);
  border: 1px solid rgba(0, 217, 232, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--cyan);
}
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.feature-card p {
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.feature-tag {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* Browser Downloads Grid */
.browsers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.browser-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: border-color 0.2s ease;
}
.browser-card:hover {
  border-color: var(--cyan);
}
.browser-card.featured {
  border: 1px solid var(--cyan);
  box-shadow: 0 0 24px rgba(0, 217, 232, 0.15);
  background: linear-gradient(180deg, rgba(0, 217, 232, 0.05) 0%, var(--bg-surface) 100%);
}
.browser-logo {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.browser-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.browser-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.browser-specs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.browser-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.btn-dl {
  display: block;
  background: var(--cyan);
  color: #070B14 !important;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  text-align: center;
  transition: background 0.15s ease;
}
.btn-dl:hover {
  background: var(--cyan-hover);
}
.btn-store {
  display: block;
  background: var(--bg-card);
  color: var(--text-heading) !important;
  border: 1px solid var(--border);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  text-align: center;
}
.btn-store:hover {
  border-color: var(--cyan);
}

/* Installation Guide */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan);
  color: #070B14;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.step-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.code-inline {
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
}

/* Account Portal Section */
.account-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.account-wrapper details,
.account-wrapper #session {
  margin: 0.75rem 0;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.account-wrapper summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-heading);
}
.account-wrapper form {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0.2rem;
}
.account-wrapper label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-body);
}
.account-wrapper input:not([type="checkbox"]) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.5rem 0.75rem;
  margin-top: 0.3rem;
  font-family: inherit;
}
.account-wrapper input:focus {
  outline: none;
  border-color: var(--cyan);
}
.account-wrapper button {
  justify-self: start;
  cursor: pointer;
  background: var(--cyan);
  color: #070B14;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.15s ease;
}
.account-wrapper button:hover {
  background: var(--cyan-hover);
}
.account-wrapper button#signout {
  background: rgba(239, 68, 68, 0.2);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.4);
  margin-top: 1rem;
}
.account-wrapper button#show-password {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  padding: 2px 8px;
}
.account-wrapper [hidden] {
  display: none !important;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: #04070D;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
footer a {
  color: var(--text-body);
}
footer a:hover {
  color: var(--cyan);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 3rem 0 2.5rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
