:root {
  --primary: #6366F1;
  --secondary: #8B5CF6;
  --accent: #EC4899;
  --success: #10B981;
  --warning: #F59E0B;
  --info: #3B82F6;
  --light: #F8FAFC;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow-modern: 0 0 25px rgba(99, 102, 241, 0.15);
  --shadow-hover: 0 0 35px rgba(99, 102, 241, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--light);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all .25s ease;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-modern);
}

.btn-primary:hover {
  box-shadow: var(--shadow-hover);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-modern);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 0 16px 16px;
  position: relative;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.desktop-nav a {
  color: #374151;
  font-weight: 500;
  white-space: nowrap;
}

.desktop-nav a i,
.mobile-nav a i {
  margin-right: 6px;
}

.desktop-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
}

.header-text-action {
  border: none;
  background: transparent;
  color: #1d4e89;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease;
}

.header-text-action:hover {
  color: #0f766e;
}

.header-divider {
  color: #8da0b6;
  font-weight: 600;
}

.mobile-auth-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 4px;
}

.mobile-menu-btn {
  display: none;
  border: none;
  background: transparent;
  color: #374151;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #f1f5f9;
  background: #fff;
}

.mobile-nav .inner {
  padding: 14px 0 18px;
  display: grid;
  gap: 8px;
}

.mobile-nav a,
.mobile-nav button {
  border-radius: 12px;
  padding: 12px 14px;
}

.mobile-nav a {
  color: #374151;
  background: #fff;
}

.mobile-nav a.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, .12), rgba(236, 72, 153, .12));
  color: var(--primary);
  font-weight: 600;
}

.hero {
  padding: 120px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, .06), rgba(236, 72, 153, .06));
  z-index: -3;
}

.bg-blur-1,
.bg-blur-2 {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  z-index: -2;
}

.bg-blur-1 {
  width: 420px;
  height: 420px;
  top: 40px;
  right: -130px;
  background: rgba(99, 102, 241, .24);
}

.bg-blur-2 {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: 20px;
  background: rgba(236, 72, 153, .22);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
}

.hero-grid > div:first-child {
  max-width: 760px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.3vw, 3.8rem);
  line-height: 1.12;
}

.hero p {
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 640px;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 34px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-stats .num {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

.hero-stats .num.stat-primary {
  color: var(--primary);
}

.hero-stats .num.stat-accent {
  color: var(--accent);
}

.hero-stats .num.stat-success {
  color: var(--success);
}

.hero-stats .label {
  margin: 4px 0 0;
  color: var(--muted);
}

.features {
  background: #fff;
  padding: 78px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.section-head p {
  margin: 14px auto 0;
  max-width: 760px;
  color: #6b7280;
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  border-radius: 18px;
  border: 1px solid #eef2f7;
  box-shadow: var(--shadow-modern);
  padding: 22px;
  transition: all .28s ease;
  background: #fff;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(99, 102, 241, .22);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.feature-card h3 {
  margin: 16px 0 10px;
  font-size: 1.24rem;
}

.feature-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.72;
}

.site-footer {
  background: #0f172a;
  color: #fff;
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.footer-brand p,
.footer-col p,
.footer-col a {
  color: #9ca3af;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 28px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 70;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: min(460px, calc(100vw - 32px));
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 18px;
  border: 1px solid #dbe7ff;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  transform: scale(.96);
  transition: transform .25s ease;
}

.modal.open .modal-dialog {
  transform: scale(1);
}

.modal-head {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-head h3 {
  margin: 0;
}

.close-btn {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  padding: 18px;
}

.form-item {
  margin-bottom: 14px;
}

.form-item label {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
}

.form-item input {
  width: 100%;
  border: 1px solid #d8e1ef;
  background: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-item input:focus {
  border-color: rgba(99, 102, 241, .55);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.form-item label:has(input[type="checkbox"]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-weight: 500;
  font-size: 13px;
  color: #4b5563;
}

.form-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--primary);
  box-shadow: none;
}

.form-actions {
  margin-top: 16px;
}

.form-actions .btn {
  width: 100% !important;
  border-radius: 12px;
  padding: 11px 16px;
}

.form-submit-btn {
  width: 100%;
}

.form-tip {
  margin-top: 12px;
  color: #6b7280;
  font-size: 14px;
}

.form-tip button {
  border: none;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .showcase img {
    height: 420px;
  }

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

@media (max-width: 1120px) {
  .site-header .bar {
    justify-content: space-between;
    padding: 14px 0 14px 12px;
  }

  .desktop-nav {
    position: static;
    left: auto;
    transform: none;
    gap: 16px;
    font-size: 14px;
  }

  .header-actions {
    margin-left: 0;
    gap: 8px;
  }

  .header-text-action {
    font-size: 16px;
  }
}

@media (max-width: 880px) {
  .desktop-nav {
    gap: 10px;
    font-size: 13px;
  }

  .header-text-action {
    font-size: 14px;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    gap: 8px;
    font-size: 12px;
  }

  .header-text-action {
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .mobile-nav.open {
    display: block;
  }

  .hero {
    padding-top: 104px;
  }

  .showcase img {
    height: 320px;
  }

  .float-card {
    min-width: unset;
    max-width: calc(100% - 26px);
  }
}

/* Modern minimalist visual refresh */
:root {
  --primary: #0f766e;
  --secondary: #0f766e;
  --accent: #ea580c;
  --success: #059669;
  --warning: #d97706;
  --info: #0ea5e9;
  --light: #f5f7fb;
  --ink: #1b2230;
  --muted: #5f6b7b;
  --line: #d8dee8;
  --white: #ffffff;
  --shadow-modern: 0 16px 44px rgba(23, 34, 56, 0.12);
  --shadow-hover: 0 24px 54px rgba(23, 34, 56, 0.18);
}

body {
  font-family: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.13), transparent 44%),
    radial-gradient(circle at 100% 100%, rgba(234, 88, 12, 0.11), transparent 46%),
    #f5f7fb;
  color: var(--ink);
}

.site-header {
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(216, 222, 232, 0.8);
  box-shadow: none;
}

.desktop-nav a,
.mobile-nav a {
  color: #39475a;
}

.desktop-nav a.active,
.mobile-nav a.active,
.desktop-nav a:hover {
  color: var(--primary);
}

.btn {
  border-radius: 14px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1d4e89);
}

.btn-outline {
  border: 1px solid rgba(15, 118, 110, 0.34);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline:hover {
  background: rgba(15, 118, 110, 0.1);
  color: #0b5e56;
}

.hero {
  padding-top: 132px;
}

.hero::before {
  background:
    linear-gradient(125deg, rgba(15, 118, 110, 0.07), rgba(29, 78, 137, 0.07)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8));
}

.bg-blur-1 {
  background: rgba(15, 118, 110, 0.22);
}

.bg-blur-2 {
  background: rgba(234, 88, 12, 0.19);
}

.hero p,
.section-head p,
.feature-card p,
.footer-brand p,
.footer-col a,
.footer-col p,
.hero-stats .label {
  color: var(--muted);
}

.feature-card {
  border: 1px solid rgba(216, 222, 232, 0.9);
  box-shadow: 0 12px 30px rgba(22, 33, 52, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.feature-card:hover {
  border-color: rgba(15, 118, 110, 0.34);
}

.feature-icon,
.logo-icon {
  background: linear-gradient(145deg, #0f766e, #1d4e89);
}

.site-footer {
  background: linear-gradient(180deg, #111827, #0f172a);
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.modal-head {
  background: linear-gradient(135deg, #0f766e, #1d4e89);
}

.modal-dialog {
  border: 1px solid rgba(216, 222, 232, 0.9);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.2);
}

.hero-grid > div,
.feature-card,
.site-footer,
.section-head {
  animation: fadeRise 0.7s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0.06s; }
.feature-card:nth-child(2) { animation-delay: 0.12s; }
.feature-card:nth-child(3) { animation-delay: 0.18s; }

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-grid > div,
  .feature-card,
  .site-footer,
  .section-head {
    animation: none;
  }
}
