/* ===========================================================
   CYBERIX — design system
   =========================================================== */

:root {
  --bg: #050b14;
  --bg-alt: #081120;
  --surface: #0c1626;
  --surface-2: #10203a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f7fb;
  --text-muted: #93a5bc;
  --text-faint: #5b6d84;
  --accent: #22d3ee;
  --accent-light: #7ce9fb;
  --accent-dim: rgba(34, 211, 238, 0.14);
  --accent-2: #4c6dff;
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --font: "Barlow", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 700; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; padding: 110px 0; }
section.tight { padding: 70px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

h2.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.section-lead {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 18px;
}

/* ---------- background texture ---------- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #04121a;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(34, 211, 238, 0.4); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 11, 20, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo { display: flex; align-items: center; }
.logo .logo-img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: all .25s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

/* ---------- hero ---------- */
.hero {
  padding: 150px 0 130px;
  position: relative;
  overflow: hidden;
}
.hero .glow-a { width: 560px; height: 560px; background: var(--accent); top: -220px; right: -140px; }
.hero .glow-b { width: 420px; height: 420px; background: var(--accent-2); opacity: 0.22; bottom: -180px; left: -120px; }
.hero-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 40px; }
.hero-content { max-width: 660px; flex: 1 1 560px; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero h1 .accent-text {
  background: linear-gradient(120deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 19px; color: var(--text-muted); max-width: 580px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  flex: 0 0 auto;
  width: clamp(280px, 30vw, 460px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img { position: absolute; max-width: none; }
.hero-visual-shield { width: 100%; height: 100%; top: 0; left: 0; }
.hero-visual-lines { width: 210%; left: -55%; top: 38%; transform: translateY(-50%); opacity: 0.85; }
.hero-visual-pulse { width: 160%; left: -30%; top: 42%; transform: translateY(-50%); opacity: 0.9; }
.hero-stats {
  position: relative; z-index: 1;
  display: flex; gap: 48px; flex-wrap: wrap;
  margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--border);
}
.hero-stats .stat-num { font-size: 30px; font-weight: 700; color: var(--text); }
.hero-stats .stat-label { font-size: 13.5px; color: var(--text-faint); }

/* ---------- about ---------- */
.about {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text p { font-size: 17px; }
.about-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.about-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(34,211,238,0.16), transparent 60%);
  pointer-events: none;
}
.about-card-title { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 6px; position: relative; z-index: 1; }
.about-card h3 { position: relative; z-index: 1; font-size: 19px; }
.about-card p { position: relative; z-index: 1; }
.cred-list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.cred-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.cred-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex-shrink: 0; }

/* ---------- check grid (consulting services) ---------- */
.check-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 26px;
  margin-top: 44px;
}
.check-item {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: var(--text);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.check-item .check-ico {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0; margin-top: 1px;
}

/* ---------- tech partner banner ---------- */
.tech-banner {
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: linear-gradient(120deg, rgba(34,211,238,0.14), rgba(34,211,238,0.02));
  padding: 40px 44px;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 56px;
}
.tech-banner img { height: 40px; width: auto; filter: brightness(0) invert(1); flex-shrink: 0; }
.tech-banner .tech-banner-title { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent-light); text-transform: uppercase; margin-bottom: 8px; }
.tech-banner p { margin: 0; font-size: 15.5px; color: var(--text); max-width: 640px; }

/* ---------- service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  background: var(--surface-2);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--accent-light);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 19px; }
.service-card p { font-size: 15px; margin: 0 0 14px; }
.service-card .sub-list { display: flex; flex-direction: column; gap: 8px; }
.service-card .sub-list li { font-size: 13.5px; color: var(--text-muted); display: flex; gap: 9px; align-items: flex-start; }
.service-card .sub-list li::before { content: "—"; color: var(--accent); flex-shrink: 0; }
.service-card .sub-list li > span { flex: 1 1 auto; min-width: 0; }
.service-card .sub-list li strong { color: var(--text); font-weight: 600; }

/* ---------- partners ---------- */
.partners { background: var(--bg-alt); }
.partner-list { display: flex; flex-direction: column; margin-top: 50px; }
.partner-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.partner-list .partner-row:last-child { border-bottom: none; }
.partner-brand { display: flex; align-items: center; height: 48px; }
.partner-logo {
  max-height: 48px;
  max-width: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 0.5px rgba(255,255,255,0.9)) drop-shadow(0 0 0.5px rgba(255,255,255,0.9)) drop-shadow(0 1px 6px rgba(255,255,255,0.18));
}
.partner-wordmark {
  font-size: 22px; font-weight: 800; letter-spacing: 0.01em; color: var(--text);
}
.partner-desc { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* ---------- contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg), var(--bg-alt)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; }
.contact-info-card, .contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card h3 { font-size: 18px; margin-bottom: 22px; }
.contact-line { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; font-size: 15.5px; color: var(--text); }
.contact-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex-shrink: 0; }
.contact-line a { color: var(--accent-light); }
.legal-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-faint); line-height: 1.9; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--text-faint); font-weight: 600; }
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-faint); margin: 18px 0 22px; }
.consent input { margin-top: 3px; }
.form-note { font-size: 13px; color: var(--text-faint); margin-top: 14px; text-align: center; }
.form-success { display: none; color: var(--accent-light); font-size: 14.5px; font-weight: 600; margin-top: 14px; text-align: center; }
.form-error { display: none; color: #ff8a8a; font-size: 14.5px; font-weight: 600; margin-top: 14px; text-align: center; }
.form-error a { color: inherit; text-decoration: underline; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  margin: 0 !important;
}
.btn[disabled] { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 56px 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: var(--text-muted); }
.footer-nav a:hover { color: var(--accent-light); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.footer-social a:hover { color: var(--accent-light); border-color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ---------- fade-in animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .partner-row { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner.menu-open .main-nav {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 12px 32px 24px; gap: 4px;
  }
  section { padding: 72px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 80px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .tech-banner { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
