﻿/* ===================================
   Reach Security — main.css
   Dark theme, #ef4444 accent
   =================================== */

:root {
  --bg: #080606;
  --surface: #0f0d0d;
  --surface2: #160e0e;
  --text: #e8eaf0;
  --text-muted: #8892a4;
  --accent: #ef4444;
  --accent-dark: #b91c1c;
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(239,68,68,0.3);
  --radius: 12px;
  --gap: 3em;
  --sidebar-w: 0px;
  --funding-bar-h: 0px;
  --nav-height: 4.5em;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg) !important;
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.9;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.img-wrap { overflow: hidden; width: 100%; }
.img-wrap img { width: 100%; object-fit: cover; }

/* ===== Typography ===== */
h1 { font-size: 58px; font-weight: 700; line-height: 1.1; color: #fff; margin-bottom: 0.5em; }
h2 { font-size: 40px; font-weight: 700; line-height: 1.3; color: #fff; margin-bottom: 0.5em; }
h3 { font-size: 1.6rem; font-weight: 600; line-height: 1.4; color: #fff; margin-bottom: 0.4em; }
h4 { font-size: 18px; font-weight: 600; line-height: 1.5; color: #fff; margin-bottom: 0.4em; }
p { font-size: 18px; line-height: 1.9; }
li { font-size: 18px; line-height: 1.9; }

/* ===== Grid & Layout ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2em; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3em; align-items: center; }
.section { padding: 5em 2em; }
.section-alt { padding: 5em 2em; background: var(--surface); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5em; }
.section-header p { color: var(--text-muted); font-size: 18px; margin-top: 1em; }
.label { font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 1em; display: block; }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.85em 2.2em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
  padding: 0.85em 2.2em;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Funding Bar ===== */
#funding-bar { color: #fff !important; }
#header, #nav { top: var(--funding-bar-h, 0px); }

/* ===== Navigation ===== */
#nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 2.5em !important;
  position: fixed !important;
  top: var(--funding-bar-h, 0px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-height: 4.5em !important;
  z-index: 9999 !important;
  background-color: rgba(8,6,6,0.96) !important;
  backdrop-filter: blur(8px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  box-sizing: border-box !important;
}
#nav #logo {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  position: static !important;
  top: auto !important;
  text-align: left !important;
}
#nav #logo h1 { margin: 0 !important; font-size: 1em !important; }
#nav > ul {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
}
#nav > ul > li > a {
  display: flex !important;
  align-items: center !important;
  height: 4.5em !important;
  padding: 0 1.2em !important;
  color: rgba(255,255,255,0.72) !important;
  font-size: 15px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  transition: color 0.2s !important;
}
#nav > ul > li > a:hover,
#nav > ul > li.active > a { color: #ffffff !important; }
#nav > ul > li.active > a { color: var(--accent) !important; }
#page-wrapper { padding-top: 4.5em !important; }

/* ===== Hero Section ===== */
.hero-section {
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--bg);
  background-image: url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 8em 4em 6em;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 0;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.6) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6em;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.2em;
  display: block;
}
.hero-tagline {
  color: rgba(255,255,255,0.65);
  font-size: 18px;
  line-height: 1.8;
  max-width: 520px;
  margin-top: 1.2em;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: flex-start;
  margin-top: 2.5em;
}
.hero-right-desc {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 2.5em;
}
.hero-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-accent);
}
.hero-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* ===== Feature Cards ===== */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
  transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(239,68,68,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2em;
  font-size: 24px;
  border: 1px solid var(--border-accent);
}
.feature-card h3 { font-size: 1.3rem; margin-bottom: 0.6em; }
.feature-card p { color: var(--text-muted); font-size: 16px; line-height: 1.75; margin: 0; }

/* ===== Platform Feature Rows ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 5em;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row-text h3 { font-size: 1.8rem; margin-bottom: 0.8em; }
.feature-row-text p { color: var(--text-muted); margin-bottom: 1.2em; }
.feature-row-text ul { list-style: none; padding: 0; margin: 1em 0 0; }
.feature-row-text ul li {
  padding: 0.35em 0;
  color: var(--text-muted);
  font-size: 16px;
  padding-left: 1.5em;
  position: relative;
}
.feature-row-text ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.feature-row-img { border-radius: var(--radius); overflow: hidden; }
.feature-row-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5em 2em;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 45px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
  font-family: 'Inter', Arial, sans-serif;
}
.stat-item .stat-label { color: var(--text-muted); font-size: 15px; margin-top: 0.5em; display: block; }
.stat-divider {
  width: 1px;
  background: var(--border);
  margin: auto;
}

/* ===== Page Banner ===== */
.page-banner {
  background: var(--surface);
  padding: 6em 2em 4em;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(239,68,68,0.06) 0%, transparent 70%);
  z-index: 0;
}
.page-banner > .container { position: relative; z-index: 1; text-align: center; }
.page-banner h1 { font-size: 3rem; }
.page-banner p { color: var(--text-muted); max-width: 600px; margin: 1em auto 0; font-size: 18px; }

/* ===== About / Spotlight ===== */
.spotlight-section { padding: 5em 2em; background: var(--bg); }
.spotlight-inner {
  display: flex;
  gap: 4em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.story-img { flex-shrink: 0; width: 45%; }
.story-img img { width: 100%; border-radius: var(--radius); object-fit: cover; display: block; }
.story-text { flex: 1; }
.story-text h2 { margin-bottom: 0.8em; }
.story-text p { color: var(--text-muted); margin-bottom: 1.2em; font-size: 1.05rem; }

/* ===== Values / Cards ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
}
.value-card h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.value-card p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.75; margin: 0; }
.value-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 0.8em;
  display: block;
}

/* ===== Team Cards ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
}
.team-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em 2em;
  transition: border-color 0.2s;
}
.team-card:hover { border-color: var(--border-accent); }
.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
  margin: 0 auto 1.2em;
  border: 2px solid var(--border-accent);
}
.team-card h3 { font-size: 1.35rem; margin-bottom: 0.3em; }
.team-card .title {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}
.team-card p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.75; margin: 0; }

/* ===== Investors Section ===== */
.investors-section {
  background: var(--surface);
  padding: 4em 2em;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.investors-section .container { text-align: center; }
.investors-section h2 { margin-bottom: 0.5em; }
.investors-section p { color: var(--text-muted); margin-bottom: 2em; }
.investor-badges { display: flex; gap: 1.5em; justify-content: center; flex-wrap: wrap; margin-top: 2em; }
.investor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: rgba(239,68,68,0.08);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 1em 2em;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.investor-badge .badge-icon { color: var(--accent); font-size: 1.3rem; }
.funding-detail { font-size: 0.9rem; color: var(--text-muted); margin-top: 1em; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-info h3 {
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.5em;
  margin-top: 2em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; }
.contact-info a { color: var(--accent); }
.contact-message {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em;
}
.contact-message h3 { margin-bottom: 1em; font-size: 24px; }
.contact-message p { color: var(--text-muted); margin-bottom: 2em; font-size: 1.05rem; }
.contact-details-list { margin-top: 1.5em; }
.contact-details-list .detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  padding: 1em 0;
  border-bottom: 1px solid var(--border);
}
.contact-details-list .detail-item:last-child { border-bottom: none; }
.detail-icon { color: var(--accent); font-size: 1.3rem; margin-top: 0.1em; flex-shrink: 0; }

/* ===== Steps ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto;
}
.step { text-align: center; padding: 1.5em; }
.step-num {
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 1.2em;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.step p { color: var(--text-muted); font-size: 0.98rem; }

/* ===== CTA Section ===== */
.cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 5em 2em;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(239,68,68,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section > .container { position: relative; z-index: 1; }
.cta-section h2 { margin-bottom: 0.8em; }
.cta-section p { color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5em; font-size: 18px; }
.cta-buttons { display: flex; gap: 1.2em; justify-content: center; flex-wrap: wrap; }

/* ===== Blog Listing ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.blog-card:hover { border-color: var(--border-accent); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-body { padding: 1.5em; }
.blog-card h3 { font-size: 18px; margin-bottom: 0.5em; color: #fff; }
.blog-card .meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.8em; display: block; }
.blog-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 1em; }
.blog-card a.read-more { color: var(--accent); font-size: 0.9rem; font-weight: 600; }
.blog-empty { text-align: center; padding: 5em 2em; color: var(--text-muted); }
.blog-empty h2 { color: #fff; margin-bottom: 0.8em; }

/* ===== Announcement / Alert Bar ===== */
.announce-bar {
  background: rgba(239,68,68,0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 1em 1.5em;
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 2em;
}
.announce-bar p { margin: 0; font-size: 15px; color: rgba(255,255,255,0.85); }
.announce-bar .tag { flex-shrink: 0; }

/* ===== Footer ===== */
#footer { width: 100%; background: var(--surface); border-top: 1px solid var(--border); }
#footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3em 4em;
  gap: 3em;
}
#footer h3 { font-size: 18px; margin-bottom: 0.8em; color: #fff; }
#footer h4 {
  font-size: 0.82rem;
  margin-bottom: 1em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
#footer p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.6em; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9em; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 0.82em !important; color: var(--text-muted) !important; margin-top: 1.5em !important; }
.footer-brand-desc { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-top: 0.8em; }

/* ===== Cookie Banner ===== */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10003;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.2em 2em;
}
.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; }
.cookie-text strong { font-size: 16px; color: var(--text); }
.cookie-text p { font-size: 14px; color: var(--text-muted); margin: 0.4em 0 0; line-height: 1.6; }
.cookie-text a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 0.8em; flex-shrink: 0; }
#cookie-decline {
  padding: 0.6em 1.4em;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
#cookie-decline:hover { border-color: rgba(255,255,255,0.25); color: var(--text); }
#cookie-accept {
  padding: 0.6em 1.4em;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
#cookie-accept:hover { background: var(--accent-dark); }
#cookie-banner { left: var(--sidebar-w, 0); }
@media (max-width: 736px) { #cookie-banner { left: 0 !important; } }

/* ===== Article Typography ===== */
.article-body, .post-content { max-width: 720px; margin: 0 auto; }
.article-body p, article p { margin-bottom: 1.4em; line-height: 1.9; }
.article-body h2, article h2 { margin-top: 2.2em; margin-bottom: 0.8em; font-size: 40px; }
.article-body h3, article h3 { margin-top: 1.8em; margin-bottom: 0.6em; font-size: 1.6rem; }
.article-body ul, .article-body ol, article ul, article ol { margin-bottom: 1.4em; padding-left: 1.8em; list-style: disc; }
.article-body li, article li { margin-bottom: 0.5em; line-height: 1.85; }

/* ===== Tag / Meta ===== */
.tag {
  display: inline-block;
  background: rgba(239,68,68,0.1);
  color: var(--accent);
  padding: 0.2em 0.8em;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.meta { font-size: 14px; color: var(--text-muted); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  #nav > ul { display: none !important; }
  .hero-grid { grid-template-columns: 1fr; gap: 3em; }
  .feature-row { grid-template-columns: 1fr; gap: 2.5em; }
  .feature-row.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5em; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight-inner { flex-direction: column; }
  .story-img { width: 100%; }
}
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  body { font-size: 16px; }
  #footer .inner { grid-template-columns: 1fr; padding: 2em; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-section { padding: 6em 1.5em 4em; }
  .section { padding: 3em 1.5em; }
  .section-alt { padding: 3em 1.5em; }
  .page-banner { padding: 5em 1.5em 3em; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .cookie-content { flex-direction: column; align-items: flex-start; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
