/* ============ VeroMinds — style.css ============ */
:root {
  --bg: #0a0a0b;
  --bg-alt: #101012;
  --panel: #151518;
  --line: #26262b;
  --text: #ededf0;
  --muted: #a0a0ab;
  --accent: #d92b30;      /* bright brand red for dark bg */
  --accent-deep: #a32024; /* logo red */
  --radius: 14px;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1120px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }

.accent { color: var(--accent); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-sub { color: var(--muted); max-width: 640px; margin-top: 1rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}
.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}
.brand-logo {
  height: 40px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--accent);
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none !important;
}
.nav-links a:hover { color: #fff; }
.nav-cta { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.nav-toggle { display: none; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) 0 4.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 70% -10%, rgba(217, 43, 48, 0.14), transparent),
    linear-gradient(180deg, #0c0c0e 0%, var(--bg) 100%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-sub {
  color: var(--muted);
  max-width: 620px;
  margin: 1.5rem 0 2.2rem;
  font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.7rem;
  color: #fff;
}
.stat-label { color: var(--muted); font-size: 0.85rem; }

/* ============ Sections ============ */
.section { padding: clamp(3.5rem, 9vh, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ============ Cards ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 2.8rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: rgba(217, 43, 48, 0.5); transform: translateY(-3px); }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(217, 43, 48, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card ul { margin-top: 1rem; padding-left: 1.1rem; color: var(--text); font-size: 0.92rem; }
.card li { margin-bottom: 0.35rem; }
.card li::marker { color: var(--accent); }

/* ============ Split layout ============ */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}
.split-text p { color: var(--muted); margin-top: 1rem; }
.split-text h2 { margin-top: 0; }
.split-media {
  display: grid;
  gap: 1.2rem;
  position: sticky;
  top: 100px;
}
.split-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  filter: saturate(0.85);
}

/* Console mockup */
.console {
  background: #0d0d10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 0.9rem;
  background: #17171b;
  border-bottom: 1px solid var(--line);
}
.console-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3a3a41;
}
.console-bar i:first-child { background: var(--accent-deep); }
.console-bar span {
  margin-left: 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: Consolas, monospace;
}
.console-body {
  padding: 1.1rem 1.2rem;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  color: #c9c9d2;
  overflow-x: auto;
}
.c-ok { color: #4ade80; }
.c-warn { color: #fbbf24; }
.c-dim { color: #6b6b76; }

/* KPI card */
.kpi-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.kpi-row { display: flex; gap: 2rem; }
.kpi-row b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: #fff;
}
.kpi-row span { color: var(--muted); font-size: 0.8rem; }
.kpi-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  margin-top: 1.2rem;
}
.bar {
  flex: 1;
  height: var(--h);
  background: #2c2c33;
  border-radius: 4px 4px 0 0;
}
.bar-hot { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); }
.kpi-note { margin-top: 0.9rem; font-size: 0.75rem; color: var(--muted); font-style: italic; }
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.8rem;
}
.mini {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}
.mini h4 { color: var(--accent); margin-bottom: 0.3rem; }
.mini p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ============ Timeline ============ */
.timeline {
  margin-top: 2.8rem;
  display: grid;
  gap: 1.3rem;
}
.tl-item {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-deep);
  border-radius: var(--radius);
  padding: 1.7rem 1.9rem;
}
.tl-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(217, 43, 48, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.tl-item h3 { margin-bottom: 0.6rem; }
.tl-item p { color: var(--muted); font-size: 0.96rem; }
.tl-item strong { color: var(--text); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.tags span {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tags.wrap span { margin-bottom: 0.1rem; }

/* ============ MENA ============ */
.mena-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 2.6rem;
}
.mena-photo {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.mena-photo img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  filter: saturate(0.85);
}
.mena-photo figcaption {
  padding: 0.8rem 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.mena-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 90% 70% at 20% 10%, rgba(217, 43, 48, 0.14), transparent),
    var(--panel);
}
.mena-card blockquote {
  padding: 1.6rem 1.4rem 0.4rem;
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  flex: 1;
  display: flex;
  align-items: center;
}
.mena-card blockquote em { color: var(--accent); font-style: normal; }
.mena-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 2.2rem;
}
.point h4 { color: var(--accent); margin-bottom: 0.4rem; }
.point p { color: var(--muted); font-size: 0.92rem; }

.strip-label {
  margin-top: 3.2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
}
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.4rem;
}
.logo-strip img {
  height: 72px;
  width: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  filter: grayscale(0.4);
  opacity: 0.85;
  transition: all 0.25s ease;
}
.logo-strip img:hover { filter: none; opacity: 1; transform: scale(1.06); }

/* ============ Capabilities ============ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
  margin-top: 2.6rem;
}
.cap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
}
.cap h4 { color: var(--accent); margin-bottom: 0.9rem; }
.certs { margin-top: 2.6rem; }
.certs h4 { color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.cert-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cert {
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(217, 43, 48, 0.08);
  border: 1px solid rgba(217, 43, 48, 0.35);
  color: var(--text);
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

/* ============ Certifications line ============ */
.cert-line {
  margin-top: 2.4rem;
  padding: 1rem 1.3rem;
  border-left: 3px solid var(--accent-deep);
  background: var(--panel);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 760px;
}

/* ============ Emblem image in photo card ============ */
.emblem-img {
  background: #fff;
  object-fit: contain !important;
  padding: 14px;
  box-sizing: border-box;
}

/* ============ Memex section (compact) ============ */
#memex { padding-top: 0; }
.memex-compact {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-deep);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  max-width: 860px;
}
.memex-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1rem;
}
.memex-head .eyebrow { margin-bottom: 0.25rem; }
.memex-head h3 { font-size: 1.25rem; }
.memex-compact > p { color: var(--muted); font-size: 0.96rem; margin-bottom: 1.1rem; }
.mena-list { line-height: 1.9 !important; }

/* ============ Contact ============ */
.section-contact {
  background:
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(217, 43, 48, 0.1), transparent),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}
.contact-list { list-style: none; margin-top: 1.6rem; }
.contact-list li { margin-bottom: 0.6rem; color: var(--muted); }
.contact-list strong { color: var(--text); }
.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-status { margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted); min-height: 1.2em; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: var(--accent); }
.hidden-field { display: none; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-logo {
  height: 44px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--accent);
  align-self: flex-start;
}
.footer-slogan {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.footer p { color: var(--muted); font-size: 0.85rem; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .cards, .cap-grid, .mini-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .split-media { position: static; grid-template-columns: 1fr 1fr; }
  .mena-grid, .mena-points { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 6%; font-size: 1rem; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 22px; height: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .split-media { grid-template-columns: 1fr; }
  .mena-grid, .mena-points { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .mena-photo img { height: 190px; }
  .logo-strip img { height: 60px; width: 60px; }
}
