/* ScreamCode — shared stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2c5f8a;
  --blue-mid: #3570a0;
  --blue-light: #7ec8e3;
  --blue-dark: #1a3d5c;
  --blue-glow: rgba(44,95,138,0.35);
  --red: #e63946;
  --red-dim: rgba(230,57,70,0.12);
  --bg: #080d12;
  --bg-2: #0d1520;
  --surface: #182232;
  --surface-2: #1f2e42;
  --border: rgba(126,200,227,0.09);
  --border-mid: rgba(126,200,227,0.18);
  --border-bright: rgba(126,200,227,0.28);
  --text: #e2eaf2;
  --text-muted: #7a90a8;
  --text-dim: #405060;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --r: 10px;
  --r-sm: 6px;
}

html { scroll-behavior: smooth; }

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

.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(126,200,227,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,200,227,0.024) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 64px;
  background: rgba(8,13,18,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); transition: border-color 0.3s;
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 34px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }

.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; font-weight: 400; transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--blue) !important; color: #fff !important;
  padding: 7px 18px; border-radius: var(--r-sm);
  font-weight: 500 !important; font-size: 13px !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--blue-mid) !important; }

/* PAGE HEADER (shared hero for inner pages) */
.page-header {
  position: relative; z-index: 1;
  padding: 130px 2rem 70px; text-align: center;
  overflow: hidden;
}

.page-header-glow {
  position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(44,95,138,0.25) 0%, transparent 65%);
  pointer-events: none;
}

.page-header .sec-label { margin-bottom: 0.75rem; }

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; letter-spacing: -1.2px; line-height: 1.1;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-muted); font-size: 1.1rem;
  font-weight: 300; max-width: 520px; margin: 0 auto;
}

/* SECTION COMMONS */
section { position: relative; z-index: 1; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 2rem; }

.sec-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue-light); font-weight: 500; margin-bottom: 0.9rem;
  display: block;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 700; letter-spacing: -1px; line-height: 1.1;
  margin-bottom: 1.25rem;
}

.sec-sub { color: var(--text-muted); font-size: 1.05rem; font-weight: 300; max-width: 480px; }
.sec-hr { border: none; border-top: 1px solid var(--border); margin: 0; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--r);
  font-weight: 500; font-size: 15px; text-decoration: none;
  transition: all 0.2s; font-family: var(--font-body);
  cursor: pointer; border: none;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--border-bright); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: rgba(126,200,227,0.5); color: var(--blue-light); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* FOOTER */
footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 4rem 0 2rem; }

.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}

.footer-brand p { font-size: 13px; color: var(--text-dim); margin-top: 1rem; max-width: 230px; line-height: 1.6; }
.footer-logo { height: 38px; width: auto; }

.footer-col h5 {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-dim); font-weight: 500; margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim); flex-wrap: wrap; gap: 1rem;
}

.footer-bottom a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 960px) {
  nav { padding: 0 1.5rem; }
  .nav-links { gap: 1.25rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links .hide-mobile { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}
