/* ============================================
   IR SECURITY — Corporate Site
   Design: Deep Navy + Electric Cyan
   ============================================ */

:root {
  --bg:        #0A0E1A;
  --bg-alt:    #0D1424;
  --bg-card:   #111827;
  --cyan:      #00D4FF;
  --cyan-dim:  rgba(0, 212, 255, 0.15);
  --cyan-glow: rgba(0, 212, 255, 0.06);
  --white:     #E8EDF5;
  --muted:     #8896B3;
  --border:    rgba(255,255,255,0.07);
  --red:       #FF4B4B;
  --yellow:    #FFD166;
  --green:     #06D6A0;
  --radius:    12px;
  --radius-sm: 6px;
  --mono:      'JetBrains Mono', monospace;
  --display:   'Space Grotesk', sans-serif;
  --body:      'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--mono); }
.accent-text { color: var(--cyan); }
.sp-only { display: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 3px; }

/* ── NAV ── */
.nav-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--display);
  font-weight: 700; font-size: 1.25rem;
  text-decoration: none; color: var(--white);
  letter-spacing: 0.05em;
}
.logo-bracket { color: var(--muted); }
.logo-accent  { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  color: var(--cyan) !important;
  border: 1px solid var(--cyan) !important;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--cyan-dim) !important; }
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 2rem 60px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.3;
  animation: scanLine 4s linear infinite;
}
@keyframes scanLine {
  from { top: -10%; }
  to   { top: 110%; }
}
.hero-inner {
  position: relative; max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  grid-column: 1 / -1;
}
.hero-inner > *:not(.hero-terminal) { grid-column: 1; }
.hero-terminal { grid-column: 2; grid-row: 1 / 5; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--cyan); letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-title-line { display: block; }

.hero-sub {
  font-size: 1.05rem; color: var(--muted);
  line-height: 1.8; margin-bottom: 2rem;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--cyan); color: #0A0E1A;
  font-weight: 700; font-size: 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: box-shadow 0.25s, transform 0.15s;
}
.btn-primary:hover {
  box-shadow: 0 0 24px rgba(0,212,255,0.4);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border); color: var(--muted);
  font-weight: 500; font-size: 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ── TERMINAL ── */
.hero-terminal {
  background: #070B14;
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,212,255,0.06), 0 20px 60px rgba(0,0,0,0.6);
}
.terminal-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 0.6rem 1rem;
  background: #0E1420;
  border-bottom: 1px solid rgba(0,212,255,0.1);
}
.t-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.t-dot.red    { background: #FF5F57; }
.t-dot.yellow { background: #FEBC2E; }
.t-dot.green  { background: #28C840; }
.t-label { color: var(--muted); font-size: 0.75rem; margin-left: 0.5rem; }
.terminal-body {
  padding: 1.25rem 1.5rem;
  font-size: 0.82rem; line-height: 2;
}
.t-prompt { color: var(--cyan); margin-right: 0.5rem; }
.t-cmd    { color: var(--white); }
.t-output { color: var(--muted); padding-left: 1rem; }
.t-green  { color: var(--green); }
.t-yellow { color: var(--yellow); }
.t-red    { color: var(--red); }
.t-blink  { animation: blink-row 1.5s step-start infinite; }
@keyframes blink-row {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.6; }
}
.cursor { animation: blink-cursor 1s step-start infinite; }
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}
.trust-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
}
.trust-num {
  font-family: var(--display);
  font-weight: 700; font-size: 1.4rem;
  color: var(--cyan);
}
.trust-label { font-size: 0.78rem; color: var(--muted); text-align: center; }
.trust-divider {
  width: 1px; height: 40px;
  background: var(--border);
}

/* ── SECTION COMMONS ── */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em;
  color: var(--cyan); margin-bottom: 0.75rem;
  display: block;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-desc { color: var(--muted); line-height: 1.8; }

/* ── SERVICES ── */
.services { padding: 100px 2rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.services-grid .service-card:last-child {
  grid-column: 2;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px rgba(0,212,255,0.04);
}
.service-card--highlight {
  border-color: rgba(0,212,255,0.25);
  background: linear-gradient(145deg, #111827, #0D1C2E);
}
.service-badge {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-size: 0.6rem; letter-spacing: 0.12em;
  color: var(--red); border: 1px solid var(--red);
  padding: 0.15rem 0.5rem; border-radius: 3px;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.6; }
}
.service-icon {
  width: 48px; height: 48px; color: var(--cyan);
  margin-bottom: 1.25rem;
}
.service-name {
  font-family: var(--display);
  font-size: 1.1rem; font-weight: 600;
  line-height: 1.35; margin-bottom: 0.75rem;
}
.service-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.75; margin-bottom: 1rem; }
.service-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.service-tags span {
  font-family: var(--mono); font-size: 0.65rem;
  color: var(--cyan); background: var(--cyan-glow);
  border: 1px solid var(--cyan-dim);
  padding: 0.2rem 0.6rem; border-radius: 3px;
}
.service-link {
  font-size: 0.85rem; font-weight: 600;
  color: var(--cyan); text-decoration: none;
  transition: gap 0.2s;
}
.service-link:hover { text-decoration: underline; }

/* ── WHY ── */
.why {
  padding: 100px 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.why-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s;
}
.why-card:hover { border-color: rgba(0,212,255,0.2); }
.why-num {
  font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--cyan); margin-bottom: 0.75rem;
}
.why-card h3 {
  font-family: var(--display);
  font-size: 1.05rem; font-weight: 600;
  margin-bottom: 0.75rem;
}
.why-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }

/* ── ABOUT ── */
.about { padding: 100px 2rem; }
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-table {
  width: 100%; border-collapse: collapse;
  margin-top: 2rem;
}
.about-table th, .about-table td {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left; vertical-align: top;
}
.about-table th {
  color: var(--muted); white-space: nowrap;
  font-weight: 500; width: 8rem;
}
.about-table td { color: var(--white); line-height: 1.8; }

.about-visual {
  display: flex; justify-content: center; align-items: center;
}
.about-shield {
  width: 280px; height: 280px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.about-shield svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 30px rgba(0,212,255,0.2));
  animation: shield-float 4s ease-in-out infinite;
}
@keyframes shield-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ── CONTACT ── */
.contact {
  padding: 100px 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.contact-inner { text-align: center; }
.contact-sub {
  color: var(--muted); font-size: 1.05rem;
  line-height: 1.8; margin-bottom: 2.5rem;
}
.contact-actions { margin-bottom: 3rem; }
.contact-info {
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
}
.contact-info-item {
  display: flex; flex-direction: column; gap: 0.3rem;
  align-items: center;
}
.ci-label {
  font-size: 0.65rem; letter-spacing: 0.14em;
  color: var(--cyan);
}
.contact-info-item span:last-child {
  font-size: 0.875rem; color: var(--muted);
}

/* ── FOOTER ── */
.footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-tagline { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a {
  font-size: 0.875rem; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.78rem; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-inner > *:not(.hero-terminal) { grid-column: 1; }
  .hero-terminal { grid-column: 1; grid-row: auto; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .service-card:last-child { grid-column: auto; }
  .about-layout { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { display: none; }
}

@media (max-width: 640px) {
  .sp-only { display: inline; }
  .nav-links { 
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10,14,26,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 2rem; }
  .nav-hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .trust-inner { gap: 1.5rem; }
  .trust-divider { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
  .hero { padding-top: 80px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOCUS / A11Y ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
