@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap');

/* ===== Data2 Section (scoped under .d2) ===== */
.d2 {
  --bg: #ffffff;
  --fg: #0f172a;
  --dim: #64748b;
  --subtle: #f0f4f8;
  --card: #f7f9fc;
  --border: #dde3ed;
  --accent: #1e3a6e;
  --accent-hover: #15294f;
  line-height: 1.6;
}
.d2 .sora { font-family: 'Sora', sans-serif; }

.d2 .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.d2 .section { padding: 80px 0; border-top: 1px solid var(--border); }
.d2 .section-alt { background: linear-gradient(180deg, var(--subtle) 0%, var(--bg) 100%); }
.d2 .text-center { text-align: center; }

.d2 .tag { font-family: 'Sora'; font-size: 11px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); }
.d2 .title { font-family: 'Sora'; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; margin-top: 12px; }
.d2 .subtitle { font-size: 15px; color: var(--dim); margin-top: 12px; max-width: 600px; }
.d2 .subtitle.center { margin-left: auto; margin-right: auto; }

.d2 .btn { display: inline-block; padding: 10px 24px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.d2 .btn-primary { background: var(--accent); color: #fff; }
.d2 .btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.d2 .btn-outline { border: 1px solid var(--border); color: var(--fg); }
.d2 .btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.d2-hero {
  padding: 140px 0 100px;
  text-align: center;
  background-image: radial-gradient(circle, rgba(30,58,110,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  position: relative;
}
.d2-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(30,58,110,0.06), transparent);
}
.d2-hero .container { position: relative; }
.d2-hero h1 {
  font-family: 'Sora'; font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin-top: 20px;
}
.d2-hero h1 .gradient {
  background: linear-gradient(135deg, #1e3a6e, #2563eb, #b8860b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.d2-hero p { font-size: 15px; color: var(--dim); max-width: 560px; margin: 20px auto 0; line-height: 1.7; }
.d2 .hero-btns { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.d2 .stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  max-width: 800px; margin: 60px auto 0; gap: 1px; background: var(--border);
}
.d2 .stats-strip .stat { background: var(--card); padding: 20px 16px; text-align: center; }
.d2 .stats-strip .stat-val { font-family: 'Sora'; font-size: 20px; font-weight: 700; }
.d2 .stats-strip .stat-label { font-size: 11px; color: var(--dim); margin-top: 4px; }

.d2 .platforms-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-top: 48px;
}
.d2 .platform-card {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: var(--bg); text-decoration: none; color: var(--fg);
  transition: all 0.3s; display: flex; flex-direction: column;
}
.d2 .platform-card:hover { border-color: rgba(30,58,110,0.3); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.d2 .platform-card .preview { height: 170px; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--subtle); position: relative; }
.d2 .platform-card .preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.d2 .platform-card .preview .fade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(255,255,255,0.7)); }
.d2 .platform-card .info { padding: 20px; }
.d2 .platform-card .info .row { display: flex; justify-content: space-between; align-items: center; }
.d2 .platform-card .info .card-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.d2 .platform-card .info .card-stat { font-family: 'Sora'; font-size: 16px; font-weight: 700; color: var(--accent); }
.d2 .platform-card .info h3 { font-family: 'Sora'; font-size: 15px; font-weight: 600; margin-top: 8px; }
.d2 .platform-card:hover .info h3 { color: var(--accent); }
.d2 .platform-card .info p { font-size: 12px; color: var(--dim); margin-top: 6px; line-height: 1.5; }

.d2 .screen-item { display: flex; gap: 40px; align-items: center; margin-top: 56px; }
.d2 .screen-item:nth-child(even) { flex-direction: row-reverse; }
.d2 .screen-text { flex: 2; }
.d2 .screen-text .step { font-family: 'Sora'; font-size: 11px; font-weight: 700; color: var(--accent); }
.d2 .screen-text h3 { font-family: 'Sora'; font-size: 20px; font-weight: 700; margin-top: 8px; }
.d2 .screen-text p { font-size: 13px; color: var(--dim); margin-top: 6px; line-height: 1.6; }
.d2 .screen-text .visit { font-size: 12px; font-weight: 500; color: var(--accent); text-decoration: none; margin-top: 12px; display: inline-block; }
.d2 .screen-text .visit:hover { text-decoration: underline; }
.d2 .screen-img { flex: 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.d2 .screen-img .bar { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--border); background: var(--subtle); }
.d2 .screen-img .dot { width: 10px; height: 10px; border-radius: 50%; }
.d2 .screen-img .dot-r { background: rgba(239,68,68,0.5); }
.d2 .screen-img .dot-y { background: rgba(234,179,8,0.5); }
.d2 .screen-img .dot-g { background: rgba(34,197,94,0.5); }
.d2 .screen-img .url { font-size: 10px; color: var(--dim); margin-left: 8px; }
.d2 .screen-img img { width: 100%; display: block; }

.d2 .pipeline { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 48px; flex-wrap: wrap; }
.d2 .pipe-step {
  position: relative; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); padding: 20px 24px; text-align: center; min-width: 120px;
}
.d2 .pipe-step .num {
  position: absolute; top: -10px; left: 12px;
  background: var(--accent); color: #fff; font-family: 'Sora'; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}
.d2 .pipe-step .label { font-family: 'Sora'; font-size: 13px; font-weight: 600; margin-top: 4px; }
.d2 .pipe-step .sub { font-size: 11px; color: var(--accent); margin-top: 4px; }
.d2 .pipe-arrow { color: rgba(30,58,110,0.3); margin: 0 4px; font-size: 14px; }

.d2 .features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: var(--border); margin-top: 48px;
}
.d2 .feature { background: var(--bg); padding: 28px; }
.d2 .feature:hover { background: rgba(240,244,248,0.5); }
.d2 .feature h3 { font-family: 'Sora'; font-size: 14px; font-weight: 600; }
.d2 .feature p { font-size: 13px; color: var(--dim); margin-top: 8px; line-height: 1.6; }

.d2 .metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 600px; margin: 48px auto 0; text-align: center; }
.d2 .metric-val { font-family: 'Sora'; font-size: 32px; font-weight: 700; }
.d2 .metric-label { font-size: 13px; margin-top: 4px; }
.d2 .metric-sub { font-size: 11px; color: var(--dim); }

.d2 .marquee-wrap { overflow: hidden; padding: 8px 0; position: relative; }
.d2 .marquee-fade-l, .d2 .marquee-fade-r { position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none; }
.d2 .marquee-fade-l { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.d2 .marquee-fade-r { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.d2 .marquee-track { display: flex; align-items: center; animation: d2-marquee 55s linear infinite; width: max-content; }
.d2 .marquee-track-r { display: flex; align-items: center; animation: d2-marquee-r 45s linear infinite; width: max-content; }
.d2 .marquee-track:hover, .d2 .marquee-track-r:hover { animation-play-state: paused; }
.d2 .marquee-item { flex-shrink: 0; padding: 12px 32px; font-family: 'Sora'; font-size: 14px; font-weight: 500; color: rgba(100,116,139,0.5); white-space: nowrap; transition: color 0.3s; }
.d2 .marquee-item:hover { color: var(--fg); }
.d2 .marquee-sep { font-size: 8px; color: var(--border); }

@keyframes d2-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes d2-marquee-r { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* Data2 Responsive */
@media (max-width: 768px) {
  .d2 .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .d2 .screen-item, .d2 .screen-item:nth-child(even) { flex-direction: column; }
  .d2 .pipeline { flex-direction: column; gap: 8px; }
  .d2 .pipe-arrow { transform: rotate(90deg); }
  .d2-hero { padding-top: 80px; }
}

/* ===== BIG DATA·AI Page ===== */

/* Hero */
.data-hero .hero-content {
  padding: 0 20px 80px;
}

.data-hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

/* Big Data Intelligence Center */
.data-intro-section {
  padding: 60px 0 40px;
  background: #fff;
  border-top: 1px solid #dde3ed;
}

.data-section-title {
  font-size: 48px;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 16px;
}

.data-section-desc {
  font-size: 16px;
  color: #555;
  text-align: center;
  margin: 0;
  line-height: 1.7;
}

/* Core Services */
.core-services-section {
  padding: 40px 0 80px;
  /* background: #f8f9fa; */
}

.core-services-title {
  font-size: 36px;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 12px;
}

.core-services-desc {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.6;
}

.core-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.core-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.core-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.core-card-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.core-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.core-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin: 20px 20px 15px;
  padding-left: 12px;
  border-left: 6px solid #0066cc;
}

.core-card-blue {
  border-left-color: #0066cc;
}

.core-card-green {
  border-left-color: #00a86b;
}

.core-card-red {
  border-left-color: #e53935;
}

.core-card-darkgreen {
  border-left-color: #2e7d32;
}

.core-card-purple {
  border-left-color: #7b1fa2;
}

.core-card-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  margin: 0 20px 16px;
  letter-spacing: -0.02em;
}

.core-card-list {
  list-style: none;
  padding: 0 20px 20px;
  margin: 0;
}

.core-card-list li {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  padding-left: 14px;
  margin-bottom: 6px;
  position: relative;
  letter-spacing: -0.02em;
}

.core-card-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #999;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .data-hero {
    min-height: 50vh;
    height: 390px;
  }

  .data-hero .hero-content {
    padding-bottom: 40px;
    align-items: flex-end;
  }

  .data-hero-title {
    font-size: 24px;
  }

  .data-intro-section {
    padding: 40px 0 24px;
  }

  .data-section-title {
    font-size: 22px;
  }

  .data-section-desc {
    font-size: 14px;
  }

  .core-services-section {
    padding: 32px 0 60px;
  }

  .core-services-title {
    font-size: 22px;
  }

  .core-services-desc {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .core-services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .core-card-image {
    height: 140px;
  }

  .core-card-title {
    font-size: 16px;
    margin: 16px 16px 16px;
  }

  .core-card-desc,
  .core-card-list {
    margin-left: 16px;
    margin-right: 16px;
    font-size: 14px;
    letter-spacing: -0.02em;
  }

  .core-card-list {
    padding-bottom: 16px;
  }

  .core-card-list li {
    font-size: 14px;
  }
}
