/* ═══════════════════════════════════════════════
   SHILVIND TECHNOLOGIES — GLOBAL STYLESHEET
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg:        #04060f;
  --bg2:       #070b18;
  --surface:   rgba(255,255,255,0.04);
  --border:    rgba(255,255,255,0.07);
  --accent:    #1e8fff;
  --accent2:   #00d4aa;
  --glow:      rgba(30,143,255,0.18);
  --text:      #dce8f5;
  --muted:     #667080;
  --dim:       #3a4555;
  --display:   'Bebas Neue', sans-serif;
  --body:      'Outfit', sans-serif;
  --nav-h:     76px;
  --r:         14px;
  --max:       1280px;
}

html { scroll-behavior: smooth; font-size: 18px; }

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

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font-family: var(--body); cursor: pointer; border: none; }

/* ── NOISE ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.018;
}

/* ══════════════ NAV ══════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 clamp(20px, 5vw, 60px);
  background: rgba(4,6,15,0.5);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s;
  gap: 40px;
}
nav.scrolled { background: rgba(4,6,15,0.92); }

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  color: #fff;
  flex: 1;
  white-space: nowrap;
}

.nav-links {
  display: flex; gap: 2.8rem; list-style: none;
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.04em;
}
.nav-links a {
  color: var(--muted);
  transition: color 0.2s;
  position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  padding: 0.55rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 0.88rem; font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: #0d7ae0;
  box-shadow: 0 0 24px rgba(30,143,255,0.5);
  transform: translateY(-1px);
}

/* hamburger */
.ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; margin-left: auto; }
.ham span { display: block; width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(4,6,15,0.97); backdrop-filter: blur(20px);
  flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--display); font-size: 3.5rem; letter-spacing: 0.05em;
  color: var(--text); transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--accent); }
.close-x {
  position: absolute; top: 28px; right: 28px;
  font-size: 2rem; color: var(--muted); cursor: pointer; background: none; border: none;
}

/* ══════════════ BUTTONS ══════════════ */
.btn-primary {
  padding: 1rem 2.4rem;
  background: var(--accent);
  color: #fff; border-radius: 10px;
  font-size: 1rem; font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  background: #0d7ae0;
  box-shadow: 0 0 32px rgba(30,143,255,0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 1rem 2.4rem;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 1rem; font-weight: 500;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover {
  border-color: rgba(30,143,255,0.4);
  background: rgba(30,143,255,0.06);
  transform: translateY(-2px);
}

/* ══════════════ SECTION SHARED ══════════════ */
section { padding: clamp(80px, 10vw, 130px) clamp(20px, 5vw, 60px); }

.container { max-width: var(--max); margin: 0 auto; }

.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px; margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: ''; display: block; width: 28px; height: 1px; background: var(--accent);
}

.display-xl {
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 9rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #fff;
}

.display-lg {
  font-family: var(--display);
  font-size: clamp(3rem, 5.5vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #fff;
}

.display-md {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
}

.body-lg {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
}

.accent-grad {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════ REVEAL ══════════════ */
/* Reveal — only hide if JS has loaded and marked body */
body.js-loaded .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
body.js-loaded .reveal.up { opacity: 1; transform: translateY(0); }
/* Fallback: always visible without JS */
.reveal { opacity: 1; transform: none; }

/* ══════════════ FOOTER ══════════════ */
footer {
  background: #020409;
  border-top: 1px solid var(--border);
  padding: 60px clamp(20px, 5vw, 60px) 40px;
}

.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px; padding-bottom: 50px;
  border-bottom: 1px solid var(--border); margin-bottom: 36px;
}

.footer-logo {
  font-family: var(--display); font-size: 1.8rem;
  letter-spacing: 0.08em; color: #fff;
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}

.footer-tagline { font-size: 0.9rem; color: var(--muted); line-height: 1.65; max-width: 250px; }

.footer-col h5 {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--dim); flex-wrap: wrap; gap: 10px;
}

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .ham { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
