:root {
  --bg: #f6f9ff;
  --surface: #ffffff;
  --text: #1d2433;
  --muted: #5f6b85;
  --brand: #3366ff;
  --brand-2: #00bcd4;
  --accent: #ff6b6b;
  --ok: #159a52;
  --err: #d6336c;
  --shadow: 0 16px 35px rgba(20, 32, 66, 0.15);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f9ff 0%, #eef4ff 40%, #fdfcff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(9px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(51, 102, 255, 0.12);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
}

.logo {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 700;
  color: #1f2b6c;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 8px 15px rgba(51, 102, 255, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links a {
  font-weight: 500;
  color: #34415f;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  padding: 0.8rem 1.15rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #5789ff);
  box-shadow: 0 11px 22px rgba(51, 102, 255, 0.28);
}

.btn-secondary {
  color: #1f2b6c;
  background: #eaf0ff;
}

.btn:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  color: #2f3f70;
}

.hero {
  position: relative;
  padding: 6.2rem 0 4.4rem;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(24, 47, 120, 0.82), rgba(0, 188, 212, 0.78)),
    var(--hero-image) center / cover no-repeat;
  z-index: -1;
}

.hero-content {
  max-width: 660px;
}

.hero h1 {
  margin: 0 0 1rem;
  line-height: 1.15;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.hero p {
  margin: 0 0 1.35rem;
  color: #e7ecff;
  font-size: 1.05rem;
}

main section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.5rem, 2.7vw, 2.1rem);
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

.cards {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e2eafe, #ddfaff);
  color: #2a45aa;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 280px;
  object-fit: cover;
}

.testimonial {
  border-left: 4px solid var(--brand);
}

.cta-band {
  background: linear-gradient(120deg, #1f2b6c, #3366ff);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

th, td {
  padding: 0.95rem;
  border-bottom: 1px solid #edf1fc;
  text-align: left;
}

th {
  background: #eff4ff;
  color: #21316f;
}

.form-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  max-width: 680px;
  margin: 0 auto;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #d9e4ff;
  border-radius: 10px;
  font: inherit;
  margin-bottom: 0.85rem;
}

input:focus,
textarea:focus {
  border-color: #4d78ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(77, 120, 255, 0.15);
}

.msg {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  min-height: 1.2rem;
}

.msg.error {
  color: var(--err);
}

.msg.success {
  color: var(--ok);
}

.site-footer {
  margin-top: 3rem;
  background: #101b48;
  color: #dce6ff;
  padding: 2.2rem 0;
}

.site-footer .logo {
  color: #ffffff;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: #ffffff;
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 11px 22px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: none;
}

.to-top.show {
  display: inline-grid;
  place-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    right: 4%;
    background: #fff;
    border: 1px solid #ebf0ff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1rem;
    min-width: 220px;
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .split {
    grid-template-columns: 1fr;
  }
}
