/* SkyRelay Marketing Site — Shared layout and components
   Nav, footer, buttons, container, headings, animations. */

html { scroll-behavior: smooth; }

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

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.25rem;
  letter-spacing: 0.15em; color: var(--text-bright);
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }

.nav-login {
  padding: 8px 20px; border-radius: 6px; font-size: 0.9rem; font-weight: 600;
  font-family: var(--font-heading); text-decoration: none;
  background: var(--cyan); color: var(--bg) !important;
  transition: all 0.2s; margin-left: 8px;
}
.nav-login:hover { background: #33ddff; box-shadow: 0 0 30px rgba(0, 212, 255, 0.4); }

.mobile-login {
  display: block; padding: 14px 0; text-align: center; margin-top: 8px;
  background: var(--cyan); color: var(--bg) !important; border-radius: 6px;
  font-weight: 600; font-family: var(--font-heading); text-decoration: none;
}

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); transition: all 0.3s;
}

.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(10, 14, 23, 0.98);
  border-bottom: 1px solid var(--card-border);
  padding: 16px 24px; z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 0; color: var(--text-dim);
  text-decoration: none; font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid var(--card-border);
}
.mobile-menu a:hover { color: var(--cyan); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-login { padding: 6px 14px; font-size: 0.8rem; }
}

/* ── SECTIONS & LAYOUT ──────────────────────────── */

section { position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--heading); line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

/* ── BUTTONS ────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px; font-family: var(--font-heading);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--cyan); color: var(--bg);
  box-shadow: var(--cyan-glow);
}
.btn-primary:hover {
  background: #33ddff; box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent; color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.4);
}
.btn-secondary:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
}
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ── FOOTER ─────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--card-border);
  padding: 60px 0 0; margin-top: 40px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand-col {
  display: flex; flex-direction: column; gap: 16px;
}
.footer-logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.footer-logo-text {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem;
  letter-spacing: 0.15em; color: var(--text-bright);
}
.footer-tagline {
  color: var(--text-dim); font-size: 0.9rem; line-height: 1.7;
  max-width: 320px;
}
.footer-column h5 {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-bright); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1200px; margin: 48px auto 0; padding: 24px 24px;
  border-top: 1px solid var(--card-border);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-dim); font-size: 0.8rem;
}
.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--cyan); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── SECTION LABELS ─────────────────────────────── */

.section-center { text-align: center; }
.section-label {
  color: var(--cyan); font-family: var(--font-heading);
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-sub {
  color: var(--text-dim); font-size: 1.1rem;
  max-width: 600px; margin: 0 auto 48px;
}

/* ── PAGE HERO (sub-pages) ──────────────────────── */

.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 span { color: var(--cyan); }
.page-hero .hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim); max-width: 600px;
  margin: 16px auto 0; line-height: 1.7;
}

/* ── ANIMATIONS ─────────────────────────────────── */

.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
