:root {
  --bg: #eef3fb;
  --surface: rgba(255,255,255,0.82);
  --surface-2: rgba(255,255,255,0.72);
  --border: rgba(205, 216, 232, 0.9);
  --text: #13203a;
  --text-soft: #5d6f89;
  --primary: #2563eb;
  --primary-2: #56ccff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Times New Roman", Times, serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.dark-theme {
  --bg: #071427;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.05);
  --border: rgba(90, 129, 196, 0.18);
  --text: #eff6ff;
  --text-soft: #c7d8ef;
  --primary: #56ccff;
  --primary-2: #7ddcff;
}

img {
  display: block;
  max-width: 100%;
}

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

.page-shell {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 18px;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(180, 195, 220, 0.35);
  backdrop-filter: blur(10px);
}

body.dark-theme .site-header {
  background: rgba(3, 12, 30, 0.78);
  border-bottom: 1px solid rgba(90, 129, 196, 0.18);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 12px;
}

.brand-title {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  color: #13203a;
}

.brand-title span {
  color: #2563eb;
}

body.dark-theme .brand-title {
  color: #f2f7ff;
}

body.dark-theme .brand-title span {
  color: #56ccff;
}

.brand-sub {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #64748b;
}

body.dark-theme .brand-sub {
  color: #c6d7f0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 17px;
  font-weight: 700;
  color: #64748b;
}

.main-nav a.active,
.main-nav a:hover {
  color: #2563eb;
}

body.dark-theme .main-nav a {
  color: #c6d7f0;
}

body.dark-theme .main-nav a.active,
body.dark-theme .main-nav a:hover {
  color: #56ccff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  font-size: 18px;
}

body.dark-theme .theme-toggle,
body.dark-theme .menu-toggle {
  background: rgba(255,255,255,0.04);
  border-color: rgba(92, 138, 209, 0.24);
  color: #dceaff;
}

.menu-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  transition: .25s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
}

.btn-outline {
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: #ffffff;
  color: #2563eb;
}

body.dark-theme .btn-outline {
  background: rgba(255,255,255,0.03);
  border-color: rgba(86, 204, 255, 0.18);
  color: #56ccff;
}

/* footer */
.site-footer {
  position: relative;
  margin-top: 40px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  border-top: 1px solid rgba(180, 195, 220, 0.45);
  overflow: hidden;
}

body.dark-theme .site-footer {
  background: linear-gradient(180deg, #071427 0%, #091a31 100%);
  border-top: 1px solid rgba(90, 129, 196, 0.16);
}

.footer-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background:
    radial-gradient(circle at left bottom, rgba(59, 130, 246, 0.08), transparent 22%),
    radial-gradient(circle at right top, rgba(59, 130, 246, 0.08), transparent 24%);
}

body.dark-theme .footer-bg-pattern {
  opacity: 0.22;
}

.site-footer .page-shell {
  position: relative;
  z-index: 2;
  padding-top: 54px;
  padding-bottom: 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 0.7fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.footer-brand-title {
  font-size: 26px;
  font-weight: 900;
  color: #13203a;
  line-height: 1;
}

.footer-brand-title span {
  color: #2563eb;
}

body.dark-theme .footer-brand-title {
  color: #eaf2ff;
}

body.dark-theme .footer-brand-title span {
  color: #56ccff;
}

.footer-brand-sub {
  margin-top: 6px;
  font-size: 12px;
  color: #40526f;
}

body.dark-theme .footer-brand-sub {
  color: #a9bdd8;
}

.footer-desc {
  margin: 0 0 22px;
  color: #24385a;
  font-size: 18px;
  line-height: 1.8;
  max-width: 460px;
}

body.dark-theme .footer-desc {
  color: #d2e0f3;
}

.footer-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-socials a {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(186, 198, 220, 0.8);
  color: #2563eb;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

body.dark-theme .footer-socials a {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(90, 129, 196, 0.18);
  color: #56ccff;
}

.footer-col h4 {
  margin: 18px 0 18px;
  font-size: 22px;
  font-weight: 900;
  color: #13203a;
}

.footer-col h4 span {
  color: #2563eb;
}

body.dark-theme .footer-col h4 {
  color: #f2f7ff;
}

body.dark-theme .footer-col h4 span {
  color: #56ccff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 18px;
}

.footer-links a {
  color: #22375a;
  font-size: 17px;
  line-height: 1.5;
}

body.dark-theme .footer-links a {
  color: #d3e0f3;
}

.footer-newsletter {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

body.dark-theme .footer-newsletter {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(90, 129, 196, 0.18);
}

.footer-newsletter p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 16px;
  line-height: 1.7;
}

body.dark-theme .footer-newsletter p {
  color: #d0def2;
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-form input {
  width: 100%;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(180, 195, 220, 0.8);
  background: #ffffff;
  padding: 0 16px;
  font-size: 16px;
  color: #13203a;
}

body.dark-theme .footer-form input {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(90, 129, 196, 0.2);
  color: #eaf2ff;
}

.footer-form button {
  height: 56px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.footer-note {
  margin-top: 16px;
  color: #4b5d79;
  font-size: 15px;
  line-height: 1.6;
}

body.dark-theme .footer-note {
  color: #baccdf;
}

.footer-contact-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.footer-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 20px;
  padding: 20px;
  min-height: 150px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

body.dark-theme .footer-contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(90, 129, 196, 0.18);
}

.footer-contact-icon {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #6ea8ff 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
}

.footer-contact-card h5 {
  margin: 4px 0 10px;
  font-size: 20px;
  font-weight: 900;
  color: #2563eb;
}

body.dark-theme .footer-contact-card h5 {
  color: #56ccff;
}

.footer-contact-card p,
.footer-contact-card small {
  display: block;
  margin: 0 0 8px;
  color: #22375a;
  font-size: 17px;
  line-height: 1.7;
}

body.dark-theme .footer-contact-card p,
body.dark-theme .footer-contact-card small {
  color: #d3e0f3;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(180, 195, 220, 0.5);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 18px;
  align-items: center;
}

body.dark-theme .footer-bottom {
  border-top: 1px solid rgba(90, 129, 196, 0.18);
}

.footer-copy {
  color: #31415d;
  font-size: 16px;
}

body.dark-theme .footer-copy {
  color: #cfddf1;
}

.footer-center-logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-center-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.footer-line {
  display: block;
  width: 150px;
  height: 2px;
  background: rgba(37, 99, 235, 0.2);
}

body.dark-theme .footer-line {
  background: rgba(86, 204, 255, 0.18);
}

.footer-policy-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-policy-links a {
  color: #31415d;
  font-size: 16px;
}

body.dark-theme .footer-policy-links a {
  color: #d1def1;
}

.footer-top-btn {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(180, 195, 220, 0.8);
  color: #2563eb;
  font-size: 30px;
  font-weight: 900;
}

body.dark-theme .footer-top-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(90, 129, 196, 0.18);
  color: #56ccff;
}

@media (max-width: 1300px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-newsletter {
    grid-column: 1 / -1;
  }

  .footer-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-policy-links,
  .footer-center-logo {
    justify-content: center;
  }

  .footer-top-btn {
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    border-top: 1px solid rgba(180, 195, 220, 0.35);
    padding: 16px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  body.dark-theme .main-nav {
    background: rgba(3, 12, 30, 0.98);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .login-btn {
    display: none;
  }
}

@media (max-width: 767px) {
  .page-shell {
    padding: 0 12px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-line {
    width: 70px;
  }
}
