/* Revamped Gateway - main stylesheet
   Includes layout, hero background, cards, responsive rules, and utility classes.
*/

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --accent: #0b5ed7;
  --glass: rgba(255,255,255,0.7);
  --radius: 12px;
  --container: 1100px;
}

* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: Inter, system-ui, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 24px }

/* Header */
.site-header {
  background: var(--card);
  box-shadow: 0 2px 8px rgba(2,6,23,0.06);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.brand { font-weight: 700; font-size: 18px; color: var(--accent); text-decoration: none }
.nav { display: flex; align-items: center; gap: 8px }
.nav a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 14px }
.nav a:hover { background: rgba(11,94,215,0.06) }
.nav .cta { background: var(--accent); color: white; padding: 9px 12px; border-radius: 8px; text-decoration: none }

/* Hero (merged) */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  text-shadow: 0 6px 18px rgba(2,6,23,0.45);
  display: block;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(2,6,23,0.08), transparent);
  padding: 32px;
  border-radius: 12px;
  backdrop-filter: blur(3px);
}
.hero h1 { font-size: 32px; margin: 0 0 12px }
.hero p { margin: 0 0 16px }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(2,6,23,0.06);
  background: var(--card);
  color: var(--text);
}
.btn.primary { background: var(--accent); color: white; border: none }

/* Sections and cards */
.section { margin: 48px 0 }
.section h2 { font-size: 22px; color: var(--accent); margin-bottom: 18px }

/* Responsive grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px }

/* Card */
.card {
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(2,6,23,0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 12px }
.card h3 { margin: 0 0 8px; font-size: 18px }
.card p { margin: 0; color: var(--muted); font-size: 14px }
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 6px 20px rgba(2,6,23,0.15);
}

/* Info-cards (index-specific) */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 28px }

/* Footer */
.site-footer {
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: transparent;
  border-top: 1px solid rgba(2,6,23,0.03);
  margin-top: 40px;
}

/* Utilities */
.small { font-size: 13px; color: var(--muted) }

/* Responsive adjustments */
@media(min-width:900px){
  .hero h1 { font-size: 40px }
  .hero { padding: 100px 0 }
}
@media(max-width:600px){
  .site-header .container { padding: 12px }
  .container { padding: 16px }
  .hero h1 { font-size: 22px }
}
