/* ATI v3 — Full Dark */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --bg0:   #0a1520;
  --bg1:   #0d1a28;
  --bg2:   #0f1e2e;
  --bg3:   #162840;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --accent: #56d68a;
  --accent2: #3cb870;
  --text0: #e8f4ff;
  --text1: #c8d8e8;
  --text2: rgba(200,216,232,0.65);
  --text3: rgba(200,216,232,0.38);
  --max: 1100px;
  --rad: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg0);
  color: var(--text2);
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

/* NAV */
header {
  background: var(--bg0);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 0.5px solid var(--border);
}
nav {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center;
  padding: 0.65rem 1.5rem; gap: 0.5rem;
}
.logo img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; gap: 0; margin-left: auto; position: relative; }
.nav-links a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text3); padding: 0.4rem 0.85rem;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent); border-bottom-color: var(--accent);
  text-decoration: none;
}
/* DROPDOWN */
.nav-group { position: relative; }
.nav-group > a { display: block; }
.nav-dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--bg1);
  border: 0.5px solid var(--border2);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 4px 4px;
  min-width: 220px; z-index: 200;
  padding: 0.4rem 0;
}
.nav-group:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 0.45rem 1rem;
  font-size: 0.75rem; color: var(--text2);
  border-bottom: none; letter-spacing: 0.05em;
  white-space: nowrap;
}
.nav-dropdown a:hover { color: var(--accent); background: var(--bg2); }
.nav-contact {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bg0); background: var(--accent);
  padding: 0.38rem 1rem; border-radius: var(--rad);
  text-decoration: none; margin-left: 1rem;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.15s;
}
.nav-contact:hover { background: var(--accent2); color: var(--bg0); text-decoration: none; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; margin-left: auto; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--text3); margin: 4px 0; }

/* HOMEPAGE HERO */
.hero {
  position: relative; min-height: 300px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.3; display: block;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg0) 0%, rgba(10,21,32,0.5) 55%, rgba(10,21,32,0.15) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto; width: 100%;
  padding: 2.5rem 1.5rem 2rem;
}
.hero-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.6rem; display: block;
}
.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; color: var(--text0);
  line-height: 1.15; margin-bottom: 0.65rem; max-width: 600px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { font-size: 0.92rem; color: var(--text3); max-width: 500px; line-height: 1.6; }

/* CAPABILITIES SECTION */
.caps { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.5rem 2rem; }
.caps-header {
  display: flex; align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--border);
}
.caps-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text3);
}
.caps-meta { font-size: 0.68rem; color: var(--text3); letter-spacing: 0.08em; }

/* DOMAIN GROUPS */
.domain { margin-bottom: 1.75rem; }
.domain-header {
  display: flex; align-items: center; gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.domain-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.15em; color: var(--accent);
}
.domain-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text3);
}

/* TECH CARDS GRID */
.tech-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 0.5px solid var(--border); border-radius: var(--rad);
  overflow: hidden;
}
.tech-card {
  background: var(--bg2);
  padding: 1rem 1rem 2.5rem;
  cursor: pointer; position: relative;
  transition: background 0.15s;
  display: block; text-decoration: none;
}
.tech-card:hover { background: var(--bg3); text-decoration: none; }
.tech-card-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.8rem; font-weight: 700;
  color: rgba(86,214,138,0.07);
  line-height: 1; margin-bottom: 0.5rem;
  display: block;
}
.tech-card-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.92rem; font-weight: 700;
  color: var(--text1); margin-bottom: 0.3rem;
  line-height: 1.25;
}
.tech-card-desc {
  font-size: 0.76rem; color: var(--text3);
  line-height: 1.45;
}
.tech-card-badge {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent2); display: block; margin-bottom: 0.35rem;
}
.tech-card-arrow {
  position: absolute; bottom: 0.75rem; right: 0.85rem;
  font-size: 0.85rem; color: rgba(86,214,138,0.35);
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
}

/* CONTACT STRIP */
.contact-strip {
  background: var(--bg1);
  border-top: 0.5px solid var(--border);
  padding: 1.1rem 1.5rem;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.contact-strip-text { font-size: 0.85rem; color: var(--text3); }
.contact-strip-text strong {
  display: block; color: var(--text1);
  font-size: 0.95rem; margin-bottom: 1px; font-weight: 600;
}
.btn-outline {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 0.5px solid rgba(86,214,138,0.5);
  color: var(--accent); padding: 0.5rem 1.1rem;
  border-radius: var(--rad); white-space: nowrap;
  text-decoration: none; transition: background 0.15s;
}
.btn-outline:hover { background: rgba(86,214,138,0.08); text-decoration: none; }
.btn-solid {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: var(--bg0);
  padding: 0.5rem 1.1rem; border-radius: var(--rad);
  border: none; cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: background 0.15s;
}
.btn-solid:hover { background: var(--accent2); text-decoration: none; }

/* PAGE HERO (tech pages) */
.page-head {
  background: var(--bg1);
  border-bottom: 0.5px solid var(--border);
  padding: 1.25rem 1.5rem 1.1rem;
}
.page-head-inner {
  max-width: var(--max); margin: 0 auto;
  position: relative;
}
.breadcrumb { font-size: 0.7rem; color: var(--text3); margin-bottom: 0.4rem; letter-spacing: 0.03em; }
.breadcrumb a { color: var(--text3); }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.breadcrumb span { color: var(--accent); }
.page-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.3rem; display: block;
}
.page-h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700; color: var(--text0);
  line-height: 1.2; margin-bottom: 0.25rem;
}
.page-sub { font-size: 0.88rem; color: var(--text3); font-style: italic; }
.page-ghost-num {
  position: absolute; right: 0; top: -0.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 5rem; font-weight: 700;
  color: rgba(86,214,138,0.06);
  line-height: 1; pointer-events: none;
  user-select: none;
}

/* HERO IMAGE */
.hero-img-wrap {
  width: 100%; height: 260px; overflow: hidden;
  background: var(--bg2); position: relative;
}
.hero-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; opacity: 0.78;
}
.hero-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text3); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* SPECS STRIP */
.specs-strip-outer {
  background: var(--bg0);
  border-bottom: 0.5px solid var(--border);
}
.specs-strip {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap;
  padding: 0 1.5rem;
}
.spec-item {
  padding: 0.65rem 1.5rem 0.65rem 0; border-right: 0.5px solid var(--border);
  flex: 1; min-width: 140px; margin-right: 1.5rem;
}
.spec-item:last-child { border-right: none; margin-right: 0; }
.spec-label {
  font-size: 0.65rem; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 3px; display: block;
}
.spec-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem; font-weight: 700; color: var(--accent);
}

/* PAGE CONTENT */
.page-content {
  max-width: var(--max); margin: 0 auto;
  padding: 1.75rem 1.5rem 2.5rem;
  background: var(--bg1);
}
h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--text0); margin-bottom: 0.5rem; margin-top: 1.5rem;
}
p { margin-bottom: 0.9rem; font-size: 1rem; color: var(--text2); line-height: 1.7; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text1); font-weight: 600; }
sup { font-size: 0.65em; vertical-align: super; color: var(--text1); }

/* SUPPORTING IMAGE */
.supporting-img-wrap { margin: 1.1rem 0; cursor: zoom-in; }
.supporting-img-wrap img {
  width: 100%; display: block;
  border-radius: var(--rad);
  border: 0.5px solid var(--border2);
  opacity: 0.85; transition: opacity 0.2s;
}
.supporting-img-wrap:hover img { opacity: 0.95; }
.supporting-img-caption {
  font-size: 0.7rem; color: var(--text3);
  text-align: center; margin-top: 0.3rem; font-style: italic;
}

/* LIGHTBOX */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 999;
  align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: var(--rad); }

/* CALLOUT */
.callout {
  background: var(--bg2); border: 0.5px solid var(--border2);
  border-left: 3px solid var(--accent2);
  border-radius: 0 var(--rad) var(--rad) 0;
  padding: 0.8rem 1rem; margin: 1rem 0; font-size: 0.9rem;
}

/* BULLETS */
ul.styled { list-style: none; padding: 0; margin: 0.75rem 0 1rem; }
ul.styled li {
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative; color: var(--text2);
  border-bottom: 0.5px solid var(--border);
  font-size: 0.9rem; line-height: 1.5;
}
ul.styled li:last-child { border-bottom: none; }
ul.styled li::before { content: '▸'; color: var(--accent2); position: absolute; left: 0; font-size: 0.75rem; top: 0.5rem; }
ul.styled li strong { color: var(--text1); }

/* FOOTNOTES */
.footnotes { margin-top: 1.25rem; padding-top: 0.85rem; border-top: 0.5px solid var(--border); }
.footnotes p { font-size: 0.72rem; color: var(--text3); margin-bottom: 0.25rem; line-height: 1.4; }
.footnotes a { color: var(--accent2); }

hr { border: none; border-top: 0.5px solid var(--border); margin: 1.25rem 0; }

/* FOOTER */
footer {
  background: var(--bg0);
  border-top: 0.5px solid var(--border);
  padding: 1.1rem 1.5rem; text-align: center;
}
footer p { color: var(--text3); font-size: 0.78rem; }

/* CONTACT PAGE */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.info-item { display: flex; gap: 0.65rem; margin-bottom: 1rem; align-items: flex-start; }
.info-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.info-item a { color: var(--accent2); }
.contact-form { background: var(--bg2); border: 0.5px solid var(--border); border-radius: var(--rad); padding: 1.25rem; }
.form-group { margin-bottom: 0.85rem; }
label { display: block; font-family: 'Rajdhani', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text2); margin-bottom: 0.25rem; }
input[type=text], input[type=email], textarea {
  width: 100%; padding: 0.5rem 0.75rem;
  background: var(--bg1); border: 0.5px solid var(--border);
  border-radius: var(--rad); color: var(--text1);
  font-family: 'Source Sans 3', sans-serif; font-size: 0.9rem;
  transition: border-color 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent2); }
textarea { min-height: 100px; resize: vertical; }
.checkbox-label { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.77rem; color: var(--text3); cursor: pointer; font-family: 'Source Sans 3', sans-serif; }
.checkbox-label input { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent2); }
.form-msg { display: none; padding: 0.55rem 0.8rem; border-radius: var(--rad); margin-top: 0.65rem; font-size: 0.85rem; }
.form-msg.success { background: rgba(60,184,112,0.1); border: 0.5px solid rgba(60,184,112,0.3); color: #56d68a; display: block; }
.form-msg.error { background: rgba(220,60,60,0.1); border: 0.5px solid rgba(220,60,60,0.3); color: #f08080; display: block; }

/* ABOUT */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; margin-bottom: 1.25rem; }
.two-col img { width: 100%; border-radius: var(--rad); border: 0.5px solid var(--border); opacity: 0.85; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .two-col { grid-template-columns: 1fr; }
  .spec-item { min-width: 50%; }
  .nav-links a { padding: 0.4rem 0.55rem; font-size: 0.72rem; }
}
@media (max-width: 600px) {
  .hamburger { display: block; }
  .nav-links { display: none; position: fixed; inset: 0; top: 60px; background: var(--bg0); flex-direction: column; padding: 1.25rem; gap: 0.35rem; z-index: 99; overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; padding: 0.6rem 1rem; border-bottom: 0.5px solid var(--border); }
  .tech-grid { grid-template-columns: 1fr; }
  nav { padding: 0.6rem 1rem; }
  .page-content { padding: 1.1rem 1rem 1.5rem; }
  .caps { padding: 1.1rem 1rem 1.5rem; }
  .contact-strip { flex-direction: column; align-items: flex-start; gap: 0.65rem; }
  .hero-img-wrap { height: 190px; }
  .hero-content { padding: 2rem 1rem 1.5rem; }
  .spec-item { min-width: 100%; }
  .page-ghost-num { display: none; }
}
