/* ===== SH STUDIOS — SHARED STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
  --navy:       #0D1B2A;
  --navy-deep:  #080F18;
  --navy-card:  #0F2138;
  --navy-hover: #112B4A;
  --blue:       #2563EB;
  --blue-bright:#3B82F6;
  --blue-glow:  #60A5FA;
  --white:      #FFFFFF;
  --muted:      #94A3B8;
  --subtle:     #4B6280;
  --border:     rgba(37,99,235,0.18);
  --border-mid: rgba(37,99,235,0.35);
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Dot grid */
  background-image: radial-gradient(rgba(37,99,235,0.12) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

h1,h2,h3,h4,h5 { font-family: 'Space Grotesk', sans-serif; }

a { color: inherit; text-decoration: none; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 24px;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: rgba(8,15,24,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
}
.nav-logo span { color: var(--blue); }
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--blue); color: var(--white);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 0.875rem; padding: 10px 22px; border-radius: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s; cursor: pointer;
}
.nav-cta:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 0 18px rgba(37,99,235,0.4); }

/* Mobile nav */
.nav-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; color: white;
}
.mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(8,15,24,0.98); border-bottom: 1px solid var(--border);
  padding: 16px 24px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 0; font-size: 1rem; font-weight: 500;
  color: var(--muted); border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border: none; }
.mobile-menu a:hover { color: white; }
.mobile-menu .nav-cta { display: block; text-align: center; margin-top: 14px; padding: 13px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  border-radius: 8px; cursor: pointer; transition: all 0.2s; border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue); color: white;
  padding: 14px 28px; font-size: 0.95rem;
  box-shadow: 0 0 0 0 rgba(37,99,235,0);
}
.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(37,99,235,0.45), 0 6px 20px rgba(37,99,235,0.25);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-ghost {
  background: transparent; color: white;
  padding: 13px 27px; font-size: 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); box-shadow: 0 0 20px rgba(255,255,255,0.05); }

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ===== TAG PILL ===== */
.tag {
  display: inline-block;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  color: #FBB740;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
}

/* ===== CARDS ===== */
.card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  border-color: var(--border-mid);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.15), 0 8px 32px rgba(0,0,0,0.35), 0 0 40px rgba(37,99,235,0.07);
}
.card-flat { background: var(--navy-card); border: 1px solid var(--border); border-radius: 12px; }

/* ===== DIVIDERS ===== */
.divider {
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(245,158,11,0.4), rgba(37,99,235,0.4), transparent);
  margin: 0;
}

/* ===== SECTIONS ===== */
.section { padding: 96px 24px; }
.section-sm { padding: 64px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 780px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .tag { margin-bottom: 18px; }
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.025em;
}
.section-header p {
  color: var(--muted); font-size: 1.05rem;
  margin-top: 16px; max-width: 560px; margin-left: auto; margin-right: auto;
}

/* ===== FORMS ===== */
.form-label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: var(--muted); margin-bottom: 8px; letter-spacing: 0.01em;
}
.form-input {
  width: 100%; background: rgba(15,33,56,0.8);
  border: 1px solid var(--border); border-radius: 8px;
  color: white; padding: 13px 16px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  transition: border-color 0.2s; outline: none;
}
.form-input:focus { border-color: var(--blue); }
.form-input::placeholder { color: var(--subtle); }
select.form-input { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%234B6280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px;
}
select.form-input option { background: var(--navy-deep); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 160px 24px 80px;
  background: radial-gradient(ellipse 70% 50% at 50% -5%, rgba(37,99,235,0.14) 0%, transparent 70%);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  margin-top: 18px; margin-bottom: 18px;
}
.page-hero p {
  color: var(--muted); font-size: 1.1rem; max-width: 560px;
  margin: 0 auto; line-height: 1.7;
}

/* ===== CTA STRIP ===== */
.cta-strip {
  background: linear-gradient(135deg, #0F2138 0%, #112B4A 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 72px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 65%);
  top: -200px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.025em; margin-bottom: 14px;
}
.cta-strip p { color: var(--muted); margin-bottom: 32px; font-size: 1rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  padding: 56px 24px 36px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
}
.footer-top {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 36px;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em;
}
.footer-logo span { color: var(--blue); }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 24px;
}
.footer-links a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-email a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.footer-email a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--subtle); }

/* ===== UTILS ===== */
.text-blue { color: var(--blue); }
.text-muted { color: var(--muted); }
.text-subtle { color: var(--subtle); }
.bold { font-weight: 700; }
.gap-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== GRID HELPERS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2-1 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }

/* ===== RESPONSIVE ===== */
/* Portal link — desktop only, subtle */
@media (min-width: 769px) {
  .portal-link { display: inline !important; }
  .portal-link:hover { opacity: 1 !important; color: var(--white) !important; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta-desktop { display: none; }
  .nav-hamburger { display: block; }
  .grid-2, .grid-3, .grid-2-1 { grid-template-columns: 1fr; }
  .section { padding: 72px 20px; }
  .page-hero { padding: 130px 20px 60px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 480px) {
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
