/* assets/css/style.css */
:root {
  --primary: #1663ff;
  --dark: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --bg: #f8fafc;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.6;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(15,23,42,.05);
}

.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: radial-gradient(circle, #1663ff, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  color: #0f172a;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}

.hero {
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 0 16px 40px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}

.hero-left h1 {
  font-size: 38px;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.hero-left p {
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 520px;
}

.badge {
  display: inline-flex;
  gap: 6px;
  background: rgba(22,99,255,.08);
  color: #0f172a;
  padding: 5px 18px 5px 5px;
  border-radius: 999px;
  align-items: center;
  margin-bottom: 16px;
}

.badge-dot {
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 700;
}

.hero-right {
  background: radial-gradient(circle at 20% 20%, rgba(22,99,255,.8), rgba(15,23,42,1));
  border-radius: 20px;
  min-height: 280px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 25px 40px rgba(15,23,42,.18);
}

.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 16px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-title h2 {
  font-size: 26px;
  margin: 0;
}

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

.card {
  background: #fff;
  border: 1px solid rgba(15,23,42,.03);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(15,23,42,.03);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  background: #0f172a;
  color: rgba(255,255,255,.6);
  padding: 26px 16px;
  text-align: center;
  margin-top: 50px;
  font-size: 13px;
}

.topbar-btn {
  display: none;
}

.page-hero {
  background: linear-gradient(120deg, #e2ecff 0%, #ffffff 100%);
  padding: 70px 16px 60px;
  text-align: center;
  margin-bottom: 34px;
}

.page-hero h1 {
  margin: 0 auto 10px;
  font-size: 32px;
  max-width: 700px;
}

.page-hero p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--muted);
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: .7fr .3fr;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.08);
  margin-bottom: 14px;
  font-size: 14px;
}

.contact-box {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.05);
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    position: fixed;
    top: 62px;
    right: 0;
    width: 230px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px 30px;
    gap: 12px;
    border-left: 1px solid rgba(15,23,42,.05);
    transform: translateX(100%);
    transition: .25s;
  }
  .nav-links.show {
    transform: translateX(0);
  }
  .topbar-btn {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .hero-left h1 {
    font-size: 30px;
  }
  .page-hero h1 {
    font-size: 26px;
  }
}
