/*
  TeraEdge — Light Theme
  White content pages + PDF blue (#5b82c9) for hero / footer / CTA
*/
:root {
  /* Page backgrounds */
  --ink:      #ffffff;
  --deep:     #f4f7fb;
  --panel:    #ffffff;
  --steel:    #eaf0f8;
  --rim:      #dde6f2;

  /* Brand blue — PDF last page #5b82c9 */
  --accent:   #5b82c9;
  --accent-l: #7a9fd4;
  --accent-d: #3d65b0;
  --accent-bg: rgba(91,130,201,0.10);
  --blue2:    #4a9fd4;

  /* Text */
  --white:    #ffffff;
  --heading:  #1a2536;
  --text:     #3d4f63;
  --muted:    #7a8fa8;
  --dim:      #b8c8d8;

  /* Typography */
  --mono:    'Share Tech Mono', monospace;
  --display: 'Rajdhani', sans-serif;
  --body:    'Noto Sans SC', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(91,130,201,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 5% 95%, rgba(91,130,201,0.04) 0%, transparent 50%);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(91,130,201,0.15);
  box-shadow: 0 1px 12px rgba(91,130,201,0.08);
}
.nav-logo {
  font-family: var(--display); font-size: 22px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--heading);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-family: var(--body); font-size: 14px; font-weight: 500;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--heading); }
.nav-cta {
  font-family: var(--body); font-size: 13px; font-weight: 600;
  color: var(--white); background: var(--accent);
  padding: 9px 22px; text-decoration: none; border-radius: 2px;
  transition: background 0.2s; border: none;
}
.nav-cta:hover { background: var(--accent-d); }

/* ── LAYOUT ── */
section { position: relative; z-index: 1; }
.section-wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

/* ── PAGE HERO — global blue background for inner pages ── */
.page-hero {
  background: linear-gradient(135deg, var(--accent-d) 0%, var(--accent) 100%) !important;
  border-bottom: none !important;
}
.page-hero::before {
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px) !important;
  background-size: 40px 40px !important;
  background-color: transparent !important;
  content: '' !important;
  position: absolute; inset: 0; pointer-events: none;
  font-size: 0 !important;
  color: transparent !important;
  opacity: 0.5;
}

/* ── EYEBROW labels ── */
.eyebrow,
.section-eyebrow,
.page-hero-eyebrow {
  font-family: var(--body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; color: var(--accent);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before,
.section-eyebrow::before,
.page-hero-eyebrow::before {
  content: '';
  display: block; width: 3px; height: 18px;
  background: var(--accent); flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--body); font-size: 14px; font-weight: 600;
  color: var(--white); background: var(--accent);
  border: none; padding: 13px 32px;
  cursor: pointer; text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--accent-d); }

.btn-ghost {
  font-family: var(--body); font-size: 14px; font-weight: 600;
  color: var(--text); background: transparent;
  border: 1px solid var(--rim); padding: 13px 32px;
  cursor: pointer; text-decoration: none; border-radius: 2px;
  transition: border-color 0.2s, color 0.2s; display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── TAGS ── */
.tag {
  font-family: var(--body); font-size: 11px; font-weight: 500;
  color: var(--accent); background: var(--accent-bg);
  border: 1px solid rgba(91,130,201,0.25);
  padding: 3px 10px; border-radius: 2px;
}

/* ── DIVIDER ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,130,201,0.25), transparent);
  margin: 0;
}

/* ── FADE UP ── */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── CARD BASE ── */
.card-base {
  background: var(--panel);
  border: 1px solid rgba(91,130,201,0.15);
  box-shadow: 0 1px 4px rgba(91,130,201,0.06);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.card-base:hover {
  border-color: rgba(91,130,201,0.4);
  box-shadow: 0 4px 16px rgba(91,130,201,0.12);
}

/* ── FOOTER — PDF blue ── */
footer {
  background: linear-gradient(135deg, var(--accent-d) 0%, var(--accent) 100%);
  padding: 64px 0 32px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1280px; margin: 0 auto; padding: 0 48px 48px;
}
.footer-logo {
  font-family: var(--display); font-size: 22px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--white);
  margin-bottom: 14px;
}
.footer-logo span { color: rgba(255,255,255,0.80); }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.75; max-width: 280px; }
.footer-col h4 {
  font-size: 13px; font-weight: 600; color: var(--white);
  margin-bottom: 16px; letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1280px; margin: 0 auto; padding: 24px 48px 0;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.55); }
.footer-addr { font-size: 12px; color: rgba(255,255,255,0.55); }

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px;
  margin-left: 12px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--heading); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU DRAWER ── */
.nav-mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(91,130,201,0.15);
  box-shadow: 0 8px 24px rgba(91,130,201,0.12);
  padding: 16px 24px 24px;
  flex-direction: column; gap: 0;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: var(--body); font-size: 16px; font-weight: 500;
  color: var(--heading); text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(91,130,201,0.08);
  display: block;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--accent); }
.nav-mobile-menu .nav-cta-mobile {
  margin-top: 16px;
  text-align: center;
  background: var(--accent); color: var(--white);
  padding: 13px; border-radius: 2px;
  font-weight: 600; font-size: 14px;
  border-bottom: none;
}
.nav-mobile-menu .nav-cta-mobile:hover { background: var(--accent-d); color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .section-wrap { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; padding: 0 20px 40px; }
  .footer-bottom { padding: 20px 20px 0; flex-direction: column; gap: 8px; text-align: center; }
}
