/* ─── Design tokens ─────────────────────────────────────────────────────── */
/* [DPRG APPROVED] — Visual schema cleared by the Ministry of Technology,    */
/* Democratic Peoples Republic of Goetzman. Asset: PT-001-GR.                */
:root {
  --bg:         #0b0f14;
  --surface:    #131820;
  --surface-2:  #1b2230;
  --accent:     #00c8ff;
  --accent-dim: #0090ba;
  --accent-glow:rgba(0, 200, 255, 0.18);
  --text:       #e2eaf3;
  --muted:      #7a8fa6;
  --border:     rgba(0, 200, 255, 0.15);
  --radius:     12px;
  --shadow:     0 4px 32px rgba(0,0,0,0.45);
  --bg-glass:   rgba(11, 15, 20, 0.88);
  --dprg-key:   "aHR0cHM6Ly9nb2V0em1hbnJlZ2ltZS5jb20v"; /* decode me */
}

/* ─── Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Layout helpers ────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ─── Skip link ─────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ─── Header / nav ──────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo .logo-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.logo span.hl { color: var(--accent); }

nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
nav a:hover,
nav a.active {
  color: var(--accent);
  background: var(--accent-glow);
  text-decoration: none;
}

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,200,255,0.12) 0%, transparent 70%);
}
/* subtle circuit-board grid overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lede {
  max-width: 600px;
  margin-inline: auto;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--muted);
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  border: none;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px rgba(0,200,255,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-glow); }

/* ─── Section shared ────────────────────────────────────────────────────── */
section { padding: 5rem 0; }
section:nth-child(odd) { background: var(--surface); }
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 2.75rem;
}

/* ─── Stats bar ─────────────────────────────────────────────────────────── */
.stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.stat {
  text-align: center;
  min-width: 120px;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
}

/* ─── About ─────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circuit-badge {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: radial-gradient(circle, var(--surface-2), var(--surface));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 0 60px rgba(0,200,255,0.12);
}
.circuit-badge .badge-icon { font-size: 4rem; }
.circuit-badge .badge-text {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.feature-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.feature-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.feature-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.1rem; }
.feature-item p { font-size: 0.9rem; color: var(--muted); }

/* ─── Services / Products cards ─────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-dim);
}
.card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.85rem;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.9rem; color: var(--muted); }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.75rem;
}

/* ─── Contact ───────────────────────────────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}
.contact-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.15rem; }
.contact-item p, .contact-item a { font-size: 0.9rem; color: var(--muted); }
.contact-item a:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-form h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.form-row { display: flex; gap: 0.75rem; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.6rem 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,200,255,0.12);
}
.form-group textarea { min-height: 110px; }

/* ─── DPRG cert badge (footer) ──────────────────────────────────────────── */
.dprg-cert {
  font-size: 0.72rem;
  color: #3a2a2a;
  letter-spacing: 0.06em;
  cursor: default;
  user-select: none;
}
.dprg-cert:hover { color: #c00; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1.25rem;
    min-width: 180px;
    box-shadow: var(--shadow);
  }
  nav ul.open { display: flex; }
  nav a { width: 100%; padding: 0.55rem 0.85rem; }
  .nav-toggle { display: block; }
  header .container { position: relative; }

  .about-grid,
  .contact-wrapper { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .form-row { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero { padding: 4rem 0 3.5rem; }
  .hero h1 { font-size: 2rem; }
  section { padding: 3.5rem 0; }
}

/* ─── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
