/* =========================================
   AegisOne Technologies – Global Styles
   Consolidated & Cleaned Up
   ========================================= */

/* CSS VARIABLES */
:root {
  /* Core Colors */
  --bg-dark: #050710;
  --bg-card: #0e1220;
  --accent: #27c3ff;
  --accent-soft: rgba(39, 195, 255, 0.15);
  --accent-secondary: #8f7bff;
  --text-main: #f5f7ff;
  --text-muted: #a0a4c0;
  --border-subtle: #262a3f;
  
  /* Status Colors */
  --danger: #ff5a7a;
  --success: #4fd1c5;
  --warning: #f6ad55;
  
  /* Layout */
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.55);
  --max-width: 1120px;
}

/* RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top, #151a3b 0, #050710 55%);
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

/* LAYOUT */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   HEADER & NAVIGATION
   ⚠️  DO NOT MODIFY - PROTECTED CODE
   This section controls the header structure:
   - Hamburger menu (left)
   - Logo (center)
   - Navigation (hidden, opens in hamburger)
   If accidentally changed, restore with: git checkout style.css
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 7, 16, 0.96), rgba(5, 7, 16, 0.84));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0;
  min-height: 56px;
}

/* BRAND */
.brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 0, #27c3ff 0, #2438ff 45%, #050710 100%);
  box-shadow: 0 0 20px rgba(39, 195, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 35%;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.96rem;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* HAMBURGER MENU */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 7, 22, 0.96);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #f5f7ff;
  margin: 0 auto;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle:hover {
  background: rgba(5, 7, 22, 1);
  border-color: rgba(255, 255, 255, 0.22);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* NAVIGATION LINKS */
.nav-links {
  display: none;
  position: fixed;
  inset: 56px 0 0 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: rgba(5, 7, 22, 0.98);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
  font-size: 0.95rem;
}

.nav-links.is-open {
  display: flex;
}

.nav-link {
  color: var(--text-muted);
  padding: 8px 0;
  position: relative;
  text-decoration: none;
  transition: color 0.2s ease;
  width: 100%;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #27c3ff, #8f7bff);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top left, rgba(39, 195, 255, 0.18), rgba(8, 12, 38, 0.96));
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: filter 0.2s ease;
  text-align: center;
  margin-top: 8px;
  width: 100%;
}

.nav-cta:hover {
  filter: brightness(1.15);
}

/* ⚠️  END PROTECTED HEADER CODE */

/* ===========================
   COMMON PAGE ELEMENTS
   =========================== */

/* Hero Section */
.page-header {
  padding: 56px 0 32px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 192, 255, 0.12);
  border: 1px solid rgba(39, 195, 255, 0.35);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 18px;
}

.page-title {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
}

.hero-highlight {
  background: linear-gradient(to right, var(--accent), #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* DEVICE RENDER */
.hub-render {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.hub-device {
  position: relative;
  width: 260px;
  height: 240px;
  border-radius: 22px;
  background: radial-gradient(circle at 0 0, #1e263f 0, #050710 60%);
  box-shadow: 0 24px 70px rgba(0,0,0,0.9);
  padding: 18px 18px 12px;
  transform: perspective(900px) rotateY(-16deg) rotateX(8deg);
}

.hub-device-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(145deg, #060918, #111831);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.hub-screen {
  background: radial-gradient(circle at 15% 0, #223451 0, #030613 65%);
  border-radius: 16px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.7);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hub-screen-header {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hub-screen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  flex: 1;
}

.hub-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(8,12,32,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hub-tile:hover {
  background: rgba(12,18,42,0.95);
  border-color: rgba(39,195,255,0.4);
  transform: scale(1.02);
}

.hub-tile-icon {
  font-size: 1.1rem;
  filter: grayscale(0.3);
}

.hub-tile-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}

.hub-screen-cta {
  text-align: center;
  padding: 6px;
  border-radius: 8px;
  background: radial-gradient(circle at top, rgba(39,195,255,0.22), rgba(8,12,38,0.95));
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.hub-cartridge-slot {
  height: 22px;
  border-radius: 10px;
  background: linear-gradient(to bottom, #020408, #0a0e1f);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-cartridge-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
}

@media (max-width: 900px) {
  .hub-device {
    transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
  }
}

.page-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.hero-bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* CTA Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--accent), #7f5dff);
  color: #050710;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-soft);
  transition: filter 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.primary-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.secondary-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  font-size: 0.85rem;
}

/* Trust Strip */
.trust-strip {
  padding: 0 0 32px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.trust-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  opacity: 0.9;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 10, 32, 0.96);
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4fd1c5;
  box-shadow: 0 0 8px rgba(79, 209, 197, 0.9);
}

/* Sections */
.section {
  padding: 14px 0 44px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 30rem;
}

/* Cards */
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 960px) {
  .cards-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  background: rgba(7, 11, 32, 0.96);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.86rem;
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-heading {
  font-size: 0.98rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.card-body {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-list li {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.card-list li::before {
  content: "•";
  color: var(--accent);
  margin-top: 1px;
}

/* Acquisition CTA Strip */
.acq-strip {
  border-radius: 20px;
  padding: 16px 18px;
  background: linear-gradient(90deg, rgba(39, 195, 255, 0.16), rgba(127, 93, 255, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 40px;
}

.acq-strip-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.acq-strip-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
  padding: 16px 0 18px;
  background: radial-gradient(circle at bottom, #14162d, #050710 65%);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-main);
}
