/* =========================
   GLOBAL RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0F1115;
  color: #E6EAF2;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* =========================
   LAYOUT
========================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

.border-top {
  position: relative;
  border-top: 1px solid #232A35;
}

.border-top::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 120px;
  height: 1px;
  background: #1F4FFF;
}

.center {
  text-align: center;
}

/* =========================
   NAVIGATION
========================= */
.nav {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(15, 17, 21, 0.95);
  border-bottom: 1px solid #232A35;
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  letter-spacing: 1px;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: #9BA6B2;
  font-size: 14px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #1F4FFF;
}

.nav-cta {
  color: #E6EAF2;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  padding-top: 200px;
  padding-bottom: 160px;
}

.hero::after {
  content: "";
  position: absolute;
  top: 120px;
  right: 8%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(31,79,255,0.2);
  transform: rotate(45deg);
  opacity: 0.5;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 600;
  max-width: 800px;
}

.hero-sub {
  margin-top: 30px;
  color: #9BA6B2;
  max-width: 700px;
  font-size: 18px;
}

.primary-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 32px;
  background-color: #1F4FFF;
  color: white;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
}

.primary-btn:hover {
  background-color: #163ECC;
}

/* =========================
   GRID
========================= */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  margin-top: 60px;
}

.grid-4 h3 {
  font-size: 18px;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.grid-4 div:hover h3 {
  color: #1F4FFF;
}

.grid-4 p {
  color: #9BA6B2;
  font-size: 15px;
}

/* =========================
   FOOTER
========================= */
footer {
  border-top: 1px solid #232A35;
  padding: 40px 0;
  font-size: 14px;
  color: #9BA6B2;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1000px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 42px;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }
}

/* =========================
   FORM STYLES
========================= */

form label {
  font-size: 14px;
  color: #9BA6B2;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: #161A21;
  border: 1px solid #232A35;
  color: #E6EAF2;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: #1F4FFF;
}

/* =========================
   ACTIVE NAV STATE
========================= */

nav a.active {
  color: #E6EAF2;
  border-bottom: 1px solid #1F4FFF;
  padding-bottom: 4px;
}