/* =========================================================
   GLOBAL.CSS — Benjro Design System
   Used on ALL pages
   ========================================================= */

/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= ROOT VARIABLES ================= */

:root {

/* brand */
--benjro-blue: #3A76F0;
--benjro-green: #2ECC71;
--benjro-red: #c1121f;

  /* surfaces */
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;

  /* text */
  --text-main: #111;
  --text-subtle: #666;

  /* borders */
  --border-light: #e5e7eb;

  /* buttons */
  --btn-bg: #000;
  --btn-text: #fff;

  /* header glass */
  --header-bg: rgba(255,255,255,0.55);
  --header-border: rgba(255,255,255,0.3);

}

html {
  color-scheme: light dark;
}

/* ================= BASE ================= */

body {
  background: var(--bg);
  font-family: "Inter", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
}

/* ================= TECH HERO HEADER ================= */

.tech-header {
  padding: 120px 0 90px;
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;

  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;

  position: relative;

  opacity: 0;
  animation: fadePage 0.9s ease forwards;
}

@keyframes fadePage {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Vertical divider between columns */
.header-inner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% * 1.4 / (1.4 + 1));
  width: 1px;
  background: var(--border-light);
}

/* ================= HERO LEFT ================= */

.eyebrow {
  display: block;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--benjro-blue);
}

.header-left h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 22px;
}

.header-sub {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-subtle);
}

/* ================= HERO RIGHT ================= */

.header-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

/* ================= BUTTONS ================= */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 220px;
  padding: 22px 0;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  border-radius: 40px;
  transition: 0.25s ease;
}

.short-btn:hover {
  background: var(--benjro-blue);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(58,118,240,0.35);
}

.link-btn:hover {
  background: var(--benjro-green);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(46,204,113,0.35);
}

/* ================= ACTION GROUP ================= */

.action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.action-group .btn { order: 1; }
.action-group .btn-sub { order: 2; }

.action-group:has(.link-btn) .btn-sub { order: 1; }
.action-group:has(.link-btn) .btn { order: 2; }

/* Divider between CTA blocks */
.header-right .action-group + .action-group {
  position: relative;
  padding-top: 28px;
}

.header-right .action-group + .action-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 1px;
  background: var(--border-light);
}

/* ================= CTA SUBTEXT ================= */

.btn-sub {
  max-width: 220px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: normal;
}

.accent-blue {
  color: var(--benjro-blue);
  text-shadow: 0 0 6px rgba(58,118,240,0.25);
}

.accent-green {
  color: var(--benjro-green);
  text-shadow: 0 0 6px rgba(46,204,113,0.25);
}

/* ================= PHILOSOPHY SECTIONS ================= */

.tech-philosophy {
  width: 100%;
}

/* Blue strip */
.ph-strip {
  background: var(--benjro-blue);
  padding: 110px 0;
}

.ph-strip .philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
}

.ph-strip h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 26px;
}

.ph-strip .principle-list li {
  color: #eef3ff;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

/* Neutral strip */
.ph-neutral {
  background: var(--bg);
  padding: 110px 0;
}

.ph-neutral .philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

/* ================= LISTS & CONTRAST ================= */

.principle-list {
  list-style: none;
}

.principle-list li {
  font-size: 16px;
  line-height: 1.6;
  padding: 10px 0;
}

.ph-contrast h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contrast-grid {
  display: grid;
  gap: 14px;
}

.contrast-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-size: 15px;
}

.contrast-row.head {
  font-weight: 700;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.contrast-row span:first-child { color: var(--text-subtle); }
.contrast-row span:last-child { color: var(--text-main); font-weight: 500; }

/* ================= IMAGE FRAMES ================= */

.ph-image {
  display: flex;
  justify-content: center;
}

.ph-image-inner {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.ph-strip .ph-image-inner {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-color: rgba(255,255,255,0.25);
}

.ph-image-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9aa3b2;
}

/* ================= FOOTER ================= */

.site-footer {
  margin-top: auto;
  padding: 22px 0;
  text-align: center;
  font-size: 14px;
  color: #888;
  border-top: 1px solid var(--border-light);
  opacity: 0;
  animation: fadeFooter 1s ease forwards;
  animation-delay: 0.25s;
}

@keyframes fadeFooter {
  from { opacity: 0; }
  to   { opacity: 0.9; }
}

/* ================= GLASS HEADER ================= */

.header {
  width: 100%;
  padding: 10px 40px;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
border-bottom: 1px solid var(--header-border);
}

.header-logo img {
  width: 34px;
  transition: 0.25s ease;
}

.header-logo img:hover {
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}

.nav-links a:hover {
  color: var(--benjro-blue);
}

.header-btn {
  padding: 9px 20px;
  background: var(--benjro-blue);
  color: white;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.header-btn:hover {
  background: #2F63CC;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58,118,240,0.25);
}

/* ================= MOBILE ================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: var(--text-main);
  border-radius: 3px;
}

.mobile-menu {

  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;

  display: flex;
  flex-direction: column;

  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid var(--header-border);

  padding: 28px 32px;

  transform: translateY(-15px);
  opacity: 0;
  pointer-events: none;

  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  
  max-height: calc(100vh - 60px);
  overflow-y: auto;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;

  z-index: 998;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 500;

  padding: 14px 0;

  border-bottom: 1px solid var(--border-light);

  transition: 0.2s ease;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--benjro-blue);
  transform: translateX(4px);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .header-inner::after {
    display: none;
  }

  .ph-strip .philosophy-inner,
  .ph-neutral .philosophy-inner {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .contrast-row {
    grid-template-columns: 1fr;
  }

  .header-left h1 {
    font-size: 42px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-btn { 
    display: none; 
  }
}

/* ================= BETA BAR (GLOBAL) ================= */

:root {
  --beta-bar-height: 32px;
}

body.beta-page .header {
  top: var(--beta-bar-height);
}

.beta-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--beta-bar-height);
  background: var(--benjro-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2000;
}

/* ================= INPUTS ================= */

input,
textarea,
select {
  background: var(--surface-soft);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: 8px;
}

::placeholder {
  color: var(--text-subtle);
}

/* ================= DARK MODE ================= */

@media (prefers-color-scheme: dark) {

  :root {

    --bg: #0b0b0b;
    --surface: #161616;
    --surface-soft: #1c1c1c;

    --text-main: #f5f5f5;
    --text-subtle: #9ca3af;

    --border-light: #2a2a2a;

    --btn-bg: #f5f5f5;
    --btn-text: #000;

    --header-bg: rgba(15,15,15,0.65);
    --header-border: rgba(255,255,255,0.08);

  }

  .card {
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}
}

/* ================= LOGO DARK MODE ================= */

img[src="/assets/bjr.png"] {
  filter: brightness(0);
}

@media (prefers-color-scheme: dark) {
  img[src="/assets/bjr.png"] {
    filter: invert(1);
  }
}

.logo,
img[src="/assets/bjr.png"] {
  filter: brightness(0);
  transition: filter 0.25s ease, drop-shadow 0.25s ease;
}

@media (prefers-color-scheme: dark) {

  .logo,
  img[src="/assets/bjr.png"] {
    filter: invert(1);
    filter: invert(1) drop-shadow(0 0 4px rgba(255,255,255,0.15));
  }

}

.header-logo img:hover {
  filter: invert(1) drop-shadow(0 0 6px rgba(58,118,240,0.35));
}

/* ================= THEME TRANSITIONS ================= */

body,
.card,
.btn,
.header {
  transition: background 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease;
}

/* ================= SUBTLE BACKGROUND GLOW ================= */

@media (prefers-color-scheme: dark) {

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(
      circle at top,
      rgba(79,127,230,0.12),
      transparent 60%
    );
    pointer-events: none;
  }

}

/* ================= CARD (GLOBAL) ================= */

.card {
  background: var(--surface);
  border-radius: 16px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  margin: auto;
}

input:focus {
  border-color: var(--benjro-blue);
}

/* Optional variants */
.card--tight {
  padding: 16px;
}

.card--soft {
  background: var(--surface-soft);
  border-color: var(--border-light);
}

.card--accent {
  border-left: 4px solid #3A76F0;
}

/* Force-hide Sign in when hamburger layout is active */
@media (max-width: 900px) {
  .header .header-btn {
    display: none !important;
  }
}

/* ================= INTER-FONT CONSISTENCY (GLOBAL) ================= */

select, input, textarea{
  font-family: inherit;
}