:root {
  --primary: #1a6ef5;
  --primary-dark: #0d4fc2;
  --accent: #f5a623;
  --bg: #f7f9ff;
  --dark: #0d1526;
  --dark2: #1c2a45;
  --text: #3a4a66;
  --text-light: #7a8aaa;
  --white: #ffffff;
  --card-bg: #ffffff;
  --border: #e2e8f7;
  --success: #22c55e;
  --hero-bg: linear-gradient(135deg, #0d1526 0%, #1a2d5a 50%, #1a6ef5 100%);
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { 
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; 
}

/* ========== NAV ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  height: 70px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 30px rgba(26,110,245,0.07);
  transition: all 0.3s;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--dark);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg { 
  width: 20px; 
  height: 20px; 
  fill: white; 
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(26,110,245,0.08);
}

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 10px !important;
}

.nav-cta:hover { 
  background: var(--primary-dark) !important; 
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger:hover {
  opacity: 0.7;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
  transform-origin: center;
}

.nav-links.open ~ .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-links.open ~ .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-links.open ~ .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #0d1526 0%, #1a2d5a 50%, #1a6ef5 100%);
  color: var(--white);
  padding: 130px 20px 52px;
  text-align: center;
}

.hero small {
  display: inline-block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero p {
  margin: 14px auto 0;
  max-width: 740px;
  color: rgba(255,255,255,0.8);
}

/* ========== CONTAINER & SECTIONS ========== */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 20px 56px;
}

.section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 1.15rem;
}

.section p {
  margin: 0;
  color: var(--text-light);
}

.section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-light);
}

.section li { 
  margin: 8px 0; 
}

/* ========== PAGES ========== */
.page { 
  display: none; 
}

.page.active { 
  display: block; 
}

/* ========== FOOTER ========== */
footer {
  background: var(--dark);
  padding: 60px 6vw 30px;
  color: rgba(255,255,255,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand .logo { 
  color: white; 
  margin-bottom: 16px; 
  display: flex; 
}

.footer-brand p { 
  font-size: 0.9rem; 
  line-height: 1.7; 
  max-width: 240px; 
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul { 
  list-style: none; 
}

.footer-col ul li { 
  padding: 5px 0; 
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
  cursor: pointer;
}

.footer-col ul li a:hover { 
  color: white; 
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .footer-grid { 
    grid-template-columns: 1fr 1fr; 
  }
  
  nav {
    padding: 0 4vw;
  }
}

@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    animation: fadeIn 0.3s ease-out;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--white) 0%, rgba(247, 249, 255, 0.98) 100%);
    border-bottom: 2px solid var(--primary);
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(26, 110, 245, 0.15);
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    animation: slideDown 0.3s ease-out;
  }

  .nav-links.open { 
    display: flex !important; 
  }

  .hamburger { 
    display: flex !important;
    z-index: 1001;
  }

  .nav-links li {
    margin-bottom: 8px;
  }

  .nav-links li:last-child {
    margin-bottom: 0;
  }

  .nav-links a {
    display: block;
    padding: 14px 16px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(26, 110, 245, 0.1);
    color: var(--primary);
    padding-left: 20px;
  }

  .nav-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    padding: 12px 16px !important;
    background: var(--primary) !important;
    color: white !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .nav-cta:active {
    transform: scale(0.98);
  }

  .footer-grid { 
    grid-template-columns: 1fr 1fr; 
  }

  .footer-bottom { 
    flex-direction: column; 
    gap: 12px; 
    align-items: flex-start; 
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 0 3vw;
    height: 65px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--white) 0%, rgba(247, 249, 255, 0.98) 100%);
    border-bottom: 2px solid var(--primary);
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(26, 110, 245, 0.15);
    z-index: 999;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    animation: slideDown 0.3s ease-out;
  }

  .nav-links.open { 
    display: flex !important; 
  }

  .hamburger { 
    display: flex !important;
    z-index: 1001;
  }

  .logo {
    font-size: 1rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .nav-links li {
    margin-bottom: 6px;
  }

  .nav-links li:last-child {
    margin-bottom: 0;
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(26, 110, 245, 0.1);
    color: var(--primary);
    padding-left: 18px;
  }

  .nav-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 10px 14px !important;
    background: var(--primary) !important;
    color: white !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .nav-cta:active {
    transform: scale(0.98);
  }

  .footer-grid { 
    grid-template-columns: 1fr; 
  }

  .footer-bottom { 
    flex-direction: column; 
    gap: 12px; 
    align-items: flex-start;
    font-size: 0.75rem;
  }

  .footer-bottom > div {
    width: 100%;
  }
}
