/* ============================================================
   新视智能科技 官网主样式
   Deep Ocean Dark · Computer Vision Tech Theme
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #0d6ecc;
  --primary-light: #1a8cff;
  --primary-dark: #0a4f96;
  --accent: #00d4aa;
  --accent2: #7c3aed;
  --bg-deep: #04080f;
  --bg-dark: #080e1a;
  --bg-card: #0c1528;
  --bg-card2: #0f1e35;
  --border: rgba(13, 110, 204, .25);
  --border-light: rgba(0, 212, 170, .15);
  --text-primary: #e8f0fe;
  --text-second: #8fa8c8;
  --text-muted: #4a6080;
  --glow-blue: rgba(13, 110, 204, .6);
  --glow-cyan: rgba(0, 212, 170, .5);
  --gradient-h: linear-gradient(135deg, #0d6ecc 0%, #00d4aa 100%);
  --gradient-card: linear-gradient(135deg, #0c1528 0%, #0f1e35 100%);
  --font-en: 'Orbitron', 'Rajdhani', 'Courier New', monospace;
  --font-cn: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
  --nav-h: 72px;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-cn);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

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

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

ul,
ol {
  list-style: none;
}

/* ---------- Typography ---------- */
.font-en {
  font-family: var(--font-en);
  letter-spacing: .05em;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.3;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-family: var(--font-en);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .75rem;
}

.section-title span {
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-second);
  max-width: 560px;
}

/* ---------- Layout Helpers ---------- */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 48px;
}

@media(max-width:768px) {
  .container {
    padding: 0 20px;
  }
}

.section {
  padding: 100px 0;
}

.section--gray {
  background: var(--bg-dark);
}

.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-sub {
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-cn);
}

.btn-primary {
  background: var(--gradient-h);
  color: #fff;
  box-shadow: 0 0 20px var(--glow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--glow-blue), 0 8px 20px rgba(0, 0, 0, .4);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(13, 110, 204, .08);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 0;
  gap: 6px;
  font-size: .875rem;
  letter-spacing: .02em;
}

.btn-ghost:hover {
  gap: 10px;
}

.btn-ghost .arrow {
  transition: var(--transition);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: var(--transition);
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}

.nav.scrolled {
  background: rgba(4, 8, 15, .92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 24px 48px;
  gap: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-h);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-logo-text {
  line-height: 1.2;
}

.nav-logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo-en {
  font-size: .65rem;
  color: var(--text-muted);
  font-family: var(--font-en);
  margin-top: 4px;
  letter-spacing: .1em;
}

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

.nav-links a {
  position: relative;
  padding: 16px 16px;
  font-size: 1rem;
  color: var(--text-second);
  transition: var(--transition);
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(13, 110, 204, .12);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-cta {
  margin-left: 20px;
  padding: 9px 20px !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.4rem;
  padding: 8px;
}

@media(max-width:900px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(4, 8, 15, .97);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .nav-links.open a {
    padding: 12px 16px;
    width: 100%;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(13, 110, 204, .18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0, 212, 170, .1) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 110, 204, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 110, 204, .07) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-left: 10%;
  max-width: 40%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 110, 204, .15);
  border: 1px solid rgba(13, 110, 204, .35);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: .75rem;
  color: var(--primary-light);
  font-family: var(--font-en);
  letter-spacing: .1em;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title .highlight {
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-second);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 80%;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-en);
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Floating visual panel */
.hero-visual {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  pointer-events: none;
}

@media(max-width:1100px) {
  .hero-visual {
    display: none;
  }
}

.hero-monitor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 0 60px rgba(13, 110, 204, .3), 0 0 120px rgba(13, 110, 204, .1);
  position: relative;
}

.monitor-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.monitor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.monitor-dot.red {
  background: #ff5f56;
}

.monitor-dot.yellow {
  background: #ffbd2e;
}

.monitor-dot.green {
  background: #27c93f;
}

.monitor-title-bar {
  flex: 1;
  text-align: center;
  font-size: .7rem;
  color: var(--text-muted);
  font-family: var(--font-en);
  letter-spacing: .1em;
}

.monitor-screen {
  aspect-ratio: 28/9;
  background: #020810;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  animation: scan 3s linear infinite;
  opacity: .6;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 110, 204, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 110, 204, .12) 1px, transparent 1px);
  background-size: 30px 30px;
}

.detection-box {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 2px;
  animation: blink 3s ease-in-out infinite;
}

.detection-box .label {
  position: absolute;
  top: -18px;
  left: 0;
  font-size: .55rem;
  font-family: var(--font-en);
  background: var(--accent);
  color: #000;
  padding: 1px 5px;
  border-radius: 2px;
}

.detection-box .conf {
  position: absolute;
  bottom: -18px;
  right: 0;
  font-size: .5rem;
  font-family: var(--font-en);
  color: var(--accent);
}

.monitor-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.m-stat {
  background: rgba(13, 110, 204, .1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  text-align: center;
}

.m-stat-val {
  font-size: .9rem;
  font-weight: 700;
  font-family: var(--font-en);
  color: var(--accent);
}

.m-stat-key {
  font-size: .6rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-h);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(13, 110, 204, .5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(13, 110, 204, .15);
}

.card:hover::before {
  opacity: 1;
}

/* ---------- Product Card ---------- */
.product-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: block;
}

.product-card:hover {
  border-color: rgba(13, 110, 204, .5);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(13, 110, 204, .18);
}

.product-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #0c1a35, #061020);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-thumb-icon {
  font-size: 5rem;
  opacity: .25;
}

.product-thumb-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(13, 110, 204, .25) 0%, transparent 70%);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gradient-h);
  color: #fff;
  font-size: .65rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  font-family: var(--font-en);
  letter-spacing: .05em;
}

.product-body {
  padding: 24px;
}

.product-model {
  font-size: .7rem;
  font-family: var(--font-en);
  color: var(--accent);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.product-desc {
  font-size: .85rem;
  color: var(--text-second);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-tag {
  background: rgba(13, 110, 204, .12);
  border: 1px solid var(--border);
  color: var(--primary-light);
  font-size: .7rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-family: var(--font-en);
}

/* ---------- Solution Card ---------- */
.solution-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  border-color: rgba(0, 212, 170, .35);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .5), 0 0 30px rgba(0, 212, 170, .12);
}

.solution-img {
  height: 180px;
  background: linear-gradient(135deg, #0a1a35 0%, #061420 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
  overflow: hidden;
}

.solution-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--bg-card));
}

.solution-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.solution-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.solution-desc {
  font-size: .85rem;
  color: var(--text-second);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stag {
  background: rgba(0, 212, 170, .1);
  border: 1px solid rgba(0, 212, 170, .25);
  color: var(--accent);
  font-size: .68rem;
  padding: 3px 9px;
  border-radius: 10px;
}

/* ---------- Feature / Tech Cards ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.tech-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tech-card:hover {
  border-color: rgba(13, 110, 204, .5);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}

.tech-icon {
  width: 52px;
  height: 52px;
  background: rgba(13, 110, 204, .15);
  border: 1px solid rgba(13, 110, 204, .3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.tech-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tech-desc {
  font-size: .83rem;
  color: var(--text-second);
  line-height: 1.6;
}

/* ---------- Stats Strip ---------- */
.stats-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

@media(max-width:768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-en);
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-unit {
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: .85rem;
  color: var(--text-second);
  margin-top: 6px;
}

.stat-desc {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Cases ---------- */
.case-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.case-card:hover {
  border-color: rgba(13, 110, 204, .45);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4), 0 0 25px rgba(13, 110, 204, .12);
}

.case-img {
  height: 200px;
  background: linear-gradient(135deg, #08152a, #041020);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
}

.case-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 212, 170, .2);
  border: 1px solid rgba(0, 212, 170, .4);
  color: var(--accent);
  font-size: .65rem;
  padding: 3px 10px;
  border-radius: 10px;
}

.case-body {
  padding: 22px;
}

.case-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.case-desc {
  font-size: .83rem;
  color: var(--text-second);
  line-height: 1.6;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 80vw;
  margin: 0 auto;
  padding: 16px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--primary), var(--accent));
}

.timeline-item {
  width: 100%;
  padding-left: 52px;
  padding-bottom: 36px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--gradient-h);
  border-radius: 50%;
  border: 3px solid var(--bg-dark);
}

.timeline-year {
  font-size: .75rem;
  font-family: var(--font-en);
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: .83rem;
  color: var(--text-second);
  line-height: 1.6;
}

/* ---------- Contact ---------- */
.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: .8rem;
  color: var(--text-second);
  margin-bottom: 6px;
  letter-spacing: .05em;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: rgba(13, 110, 204, .07);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: .9rem;
  font-family: var(--font-cn);
  transition: var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary);
  background: rgba(13, 110, 204, .12);
  box-shadow: 0 0 0 3px rgba(13, 110, 204, .15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form select option {
  background: var(--bg-card);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.ci-icon {
  width: 42px;
  height: 42px;
  background: rgba(13, 110, 204, .15);
  border: 1px solid rgba(13, 110, 204, .3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ci-label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ci-val {
  font-size: .9rem;
  color: var(--text-primary);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

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

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

.footer-brand p {
  font-size: .85rem;
  color: var(--text-second);
  line-height: 1.7;
  margin: 12px 0 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: rgba(13, 110, 204, .2);
  border-color: var(--primary);
}

.footer-col h4 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: .05em;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: .82rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: .78rem;
  color: var(--text-muted);
}

.footer-icp {
  font-size: .72rem;
  color: var(--text-muted);
}

/* ---------- Animations ---------- */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(1.5);
  }
}

@keyframes scan {
  from {
    top: 0;
  }

  to {
    top: 100%;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }

  50% {
    transform: translateY(-52%) translateX(-6px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes drawLine {
  from {
    stroke-dashoffset: 1000;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.hero-visual {
  animation: float 4s ease-in-out infinite;
}

.fade-up {
  animation: fadeUp .4s ease forwards;
  opacity: 0;
}

.fade-up:nth-child(1) {
  animation-delay: .1s;
}

.fade-up:nth-child(2) {
  animation-delay: .2s;
}

.fade-up:nth-child(3) {
  animation-delay: .3s;
}

.fade-up:nth-child(4) {
  animation-delay: .4s;
}

/* ---------- Grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media(max-width:900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:580px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Misc ---------- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-h);
  border-radius: 2px;
  margin: 16px 0;
}

.divider.center {
  margin: 16px auto;
}

.tag-pill {
  display: inline-block;
  background: rgba(13, 110, 204, .12);
  border: 1px solid var(--border);
  color: var(--primary-light);
  font-size: .72rem;
  padding: 3px 12px;
  border-radius: 12px;
  font-family: var(--font-en);
  letter-spacing: .05em;
}

.highlight-box {
  background: rgba(13, 110, 204, .08);
  border: 1px solid rgba(13, 110, 204, .25);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 16px 0;
}

/* scroll reveal init */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Contact Modal ---------- */
.cmodal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 16, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.cmodal-mask.active {
  display: flex;
}

.cmodal-box {
  position: relative;
  width: 520px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(145deg, #0c1528 0%, #0f1e35 100%);
  border: 1px solid rgba(13, 110, 204, .35);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 0 60px rgba(13, 110, 204, .25), 0 24px 64px rgba(0, 0, 0, .6);
  animation: cmodal-in .28s cubic-bezier(.4, 0, .2, 1);
}

@keyframes cmodal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cmodal-box::before,
.cmodal-box::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.cmodal-box::before {
  top: 12px;
  left: 12px;
  border-top: 2px solid rgba(0, 212, 170, .7);
  border-left: 2px solid rgba(0, 212, 170, .7);
}

.cmodal-box::after {
  bottom: 12px;
  right: 12px;
  border-bottom: 2px solid rgba(0, 212, 170, .7);
  border-right: 2px solid rgba(0, 212, 170, .7);
}

.cmodal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(143, 168, 200, .6);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
  z-index: 1;
}

.cmodal-close:hover {
  color: #e8f0fe;
}

.cmodal-head {
  margin-bottom: 28px;
}

.cmodal-tag {
  font-family: 'Orbitron', monospace;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #00d4aa;
  margin-bottom: 8px;
}

.cmodal-tag::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background: #00d4aa;
  vertical-align: middle;
  margin-right: 8px;
}

.cmodal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e8f0fe;
  line-height: 1.3;
}

.cmodal-title span {
  background: linear-gradient(135deg, #0d6ecc, #00d4aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cmodal-sub {
  font-size: .85rem;
  color: #8fa8c8;
  margin-top: 6px;
}

.cmodal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cmodal-group {
  margin-bottom: 14px;
}

.cmodal-group label {
  display: block;
  font-size: .78rem;
  color: #8fa8c8;
  margin-bottom: 6px;
  letter-spacing: .04em;
}

.cmodal-group label .req {
  color: #00d4aa;
  margin-left: 2px;
}

.cmodal-group input,
.cmodal-group select,
.cmodal-group textarea {
  width: 100%;
  background: rgba(13, 110, 204, .08);
  border: 1px solid rgba(13, 110, 204, .3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #e8f0fe;
  font-size: .88rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.cmodal-group input:focus,
.cmodal-group select:focus,
.cmodal-group textarea:focus {
  border-color: rgba(13, 110, 204, .7);
  box-shadow: 0 0 0 3px rgba(13, 110, 204, .15);
}

.cmodal-group select option {
  background: #0c1528;
}

.cmodal-group textarea {
  resize: vertical;
  min-height: 72px;
}

.cmodal-submit {
  width: 100%;
  padding: 13px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .06em;
  background: linear-gradient(135deg, #0d6ecc, #0a9cff);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(13, 110, 204, .4);
}

.cmodal-submit:hover:not(:disabled) {
  opacity: .9;
  box-shadow: 0 4px 30px rgba(13, 110, 204, .6);
}

.cmodal-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.cmodal-msg {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .84rem;
  text-align: center;
}

.cmodal-msg.ok {
  background: rgba(0, 212, 170, .1);
  color: #00d4aa;
  border: 1px solid rgba(0, 212, 170, .25);
}

.cmodal-msg.err {
  background: rgba(255, 80, 80, .1);
  color: #ff6060;
  border: 1px solid rgba(255, 80, 80, .25);
}