/* =========================================
   BlueLogic Software — Main Stylesheet
   Dark theme, blue accent
   ========================================= */

:root {
  --bg:        #0d0f14;
  --surface:   #141820;
  --surface2:  #1c2230;
  --border:    #232b3a;
  --accent:    #3d7eff;
  --accent-h:  #5a91ff;
  --text:      #e2e8f0;
  --muted:     #8899b4;
  --danger:    #ff4d6d;
  --radius:    8px;
  --radius-lg: 14px;
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-h); }

img { max-width: 100%; display: block; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p  { color: var(--muted); }
p + p { margin-top: 1em; }

/* ---- Layout ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

main { flex: 1; }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-logo .logo-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface2);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-h) !important;
  color: #fff !important;
}

/* ---- Language switcher ---- */
.nav-lang-item { list-style: none; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s, background .15s;
  white-space: nowrap;
  letter-spacing: .02em;
}

.lang-btn:hover {
  color: var(--text);
  background: var(--border);
}

.lang-btn.lang-active {
  background: var(--accent);
  color: #fff;
  cursor: default;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(61,127,255,.13) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(61,127,255,.12);
  border: 1px solid rgba(61,127,255,.3);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-title {
  max-width: 760px;
  margin: 0 auto 20px;
}

.hero-title span { color: var(--accent); }

.hero-sub {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-h);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(61,127,255,.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header p {
  max-width: 520px;
  margin: 12px auto 0;
}
.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* =========================================
   FEATURED PRODUCTS (Homepage)
   ========================================= */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(61,127,255,.12);
}

.product-icon {
  width: 48px;
  height: 48px;
  background: rgba(61,127,255,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.product-card h3 { color: var(--text); }
.product-card p  { color: var(--muted); font-size: .93rem; }

.product-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tag {
  background: var(--surface2);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.tag-accent {
  background: rgba(61,127,255,.12);
  color: var(--accent);
  border-color: rgba(61,127,255,.25);
}

.product-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================
   FEATURES / PILLS
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s;
}

.feature-item:hover { border-color: var(--accent); }

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.feature-item h4 { color: var(--text); margin-bottom: 6px; }
.feature-item p  { font-size: .88rem; }

/* =========================================
   VALUES (About / Homepage)
   ========================================= */
.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.value-card h3 { margin-bottom: 10px; }

/* =========================================
   PRODUCT PAGE (SentinelBox)
   ========================================= */
.product-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}

.product-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.product-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .8rem;
  color: var(--muted);
  padding: 4px 12px;
  margin-bottom: 20px;
}

.product-hero h1 { margin-bottom: 16px; }
.product-hero p  { font-size: 1.05rem; margin-bottom: 28px; }

.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.product-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  font-family: var(--mono);
  font-size: .83rem;
}

.preview-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.preview-dot:first-child  { background: #ff5f57; }
.preview-dot:nth-child(2) { background: #ffbd2e; }
.preview-dot:last-child   { background: #28c840; }

.preview-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.preview-line:last-child { border-bottom: none; }

.preview-val { color: var(--accent); font-weight: 600; }
.preview-val.warn { color: #f59e0b; }
.preview-val.ok   { color: #22c55e; }

/* =========================================
   SPECS TABLE
   ========================================= */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.specs-table th,
.specs-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}

.specs-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--surface2);
}

.specs-table td:first-child { color: var(--muted); }
.specs-table td:last-child  { color: var(--text); font-weight: 500; }

.check { color: #22c55e; }
.cross { color: var(--muted); }

/* =========================================
   DOCS
   ========================================= */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 60px 0;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 80px;
}

.docs-sidebar-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  margin-top: 20px;
}

.docs-sidebar-title:first-child { margin-top: 0; }

.docs-sidebar nav ul {
  list-style: none;
}

.docs-sidebar nav ul li a {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}

.docs-sidebar nav ul li a:hover,
.docs-sidebar nav ul li a.active {
  color: var(--text);
  background: var(--surface2);
}

.docs-content h1 { margin-bottom: 8px; }
.docs-content .doc-meta { color: var(--muted); font-size: .85rem; margin-bottom: 40px; }

.docs-content h2 {
  font-size: 1.4rem;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.docs-content h3 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
  color: var(--text);
}

.docs-content p { color: var(--muted); margin-bottom: 14px; }

.docs-content ul,
.docs-content ol {
  padding-left: 24px;
  color: var(--muted);
  margin-bottom: 14px;
}

.docs-content li { margin-bottom: 4px; }

.docs-content code {
  font-family: var(--mono);
  font-size: .85em;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.docs-content pre {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}

.docs-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: .85rem;
  color: var(--text);
}

.docs-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 20px 0;
  color: var(--muted);
}

.docs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.docs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s;
}

.docs-card:hover { border-color: var(--accent); }
.docs-card h3 { font-size: 1rem; margin-bottom: 6px; }
.docs-card p  { font-size: .85rem; }

/* =========================================
   CALLOUT / NOTE BOXES
   ========================================= */
.callout {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  border-left: 3px solid;
}

.callout-info {
  background: rgba(61,127,255,.08);
  border-color: var(--accent);
}

.callout-warn {
  background: rgba(245,158,11,.08);
  border-color: #f59e0b;
}

.callout p { margin: 0; }

/* =========================================
   ABOUT PAGE
   ========================================= */
.about-hero {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.about-hero p {
  max-width: 580px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-wrap {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 12px; }
.contact-info p  { margin-bottom: 24px; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  color: var(--text);
  transition: border-color .2s;
}

.contact-method:hover { border-color: var(--accent); }

.contact-method-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  background: rgba(61,127,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-text strong { display: block; color: var(--text); }
.contact-method-text span   { font-size: .85rem; color: var(--muted); }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; max-width: 200px; }

.footer-col h5 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--muted); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: .82rem;
}

/* =========================================
   PAGE HEADER (generic inner pages)
   ========================================= */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.page-header h1 { margin-bottom: 8px; }
.page-header p  { font-size: 1.05rem; }

/* =========================================
   STAT STRIP
   ========================================= */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 60px;
}

.stat-item {
  background: var(--surface);
  padding: 32px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  display: block;
}

.stat-item .stat-label {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* =========================================
   DOWNLOAD BOX
   ========================================= */
.download-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin: 48px 0;
}

.download-box h3 { margin-bottom: 8px; }
.download-box p  { margin-bottom: 24px; }

.download-version {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 12px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .product-hero-inner { grid-template-columns: 1fr; }
  .docs-layout         { grid-template-columns: 1fr; }
  .docs-sidebar        { position: static; }
  .contact-wrap        { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner        { grid-template-columns: 1fr 1fr; }
  .values-row          { grid-template-columns: 1fr; }
  .stat-strip          { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr; }
}
