/* ============================================
   DKGWAN Corporate Website — Global Styles
   Minimalist · Apple-inspired · SD-WAN
   ============================================ */

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

:root {
  --white: #ffffff;
  --off-white: #fafafa;
  --light-gray: #f5f5f7;
  --border: #e8e8ed;
  --text-secondary: #86868b;
  --text-primary: #1d1d1f;
  --accent: #0071e3;
  --black: #1d1d1f;
  --nav-height: 52px;
  --section-padding: 110px;
  --max-width: 1120px;
  --radius: 18px;
  --font: -apple-system, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--text-primary); background: var(--white); line-height: 1.6; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---------- Utility ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
.text-center { text-align: center; }
.section { padding: var(--section-padding) 0; }
.section.alt { background: var(--off-white); }
.section.light-gray-bg { background: var(--light-gray); }

/* ---------- Typography ---------- */
.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text-primary);
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 48px;
}
.label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s ease;
  border: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: #333;
  color: var(--white);
  opacity: 1;
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  opacity: 1;
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: #005bb5;
  color: var(--white);
  opacity: 1;
}
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: .04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  opacity: 1;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
}
.nav-console {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 980px;
  background: var(--accent);
  color: var(--white) !important;
  white-space: nowrap;
}
.nav-console:hover { background: #005bb5; opacity: 1; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 20px; height: 1.5px; background: var(--text-primary); transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-height) + 100px);
  padding-bottom: 100px;
  text-align: center;
}
.hero .hero-title { margin-bottom: 20px; }
.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

/* ---------- Stats Bar ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 60px 0;
}
.stat-item h3 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 20px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: box-shadow .3s, transform .3s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.card.filled {
  background: var(--light-gray);
  border: none;
}
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--accent);
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0,113,227,.08);
  padding: 4px 12px;
  border-radius: 980px;
  margin-bottom: 16px;
}

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: 100px 0;
}
.cta-section .section-title { margin-bottom: 16px; }
.cta-section p { color: var(--text-secondary); margin-bottom: 32px; font-size: 18px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,.6);
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-brand p { line-height: 1.8; }
.footer-brand .footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,.6); font-size: 14px; }
.footer ul a:hover { color: var(--white); opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom .hotline { color: rgba(255,255,255,.85); font-weight: 500; }

/* ---------- Tables ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 15px;
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: var(--light-gray);
  font-weight: 600;
  font-size: 14px;
}
.compare-table td { color: var(--text-secondary); }
.compare-table tr:hover td { background: var(--off-white); }
.compare-table .highlight { color: var(--accent); font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 40px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline-item p {
  font-size: 15px;
  color: var(--text-secondary);
}
.timeline-year {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

/* ---------- Form ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- Tags ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-pill {
  padding: 8px 20px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  background: var(--light-gray);
  color: var(--text-primary);
}

/* ---------- Process / Steps ---------- */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-secondary); }
.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 14px;
  color: var(--border);
}
.step-arrow svg { width: 28px; height: 28px; }

/* ---------- Scene Detail Cards ---------- */
.scene-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.scene-detail .scene-info h3 { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.scene-detail .scene-info p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.scene-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.metric-box {
  background: var(--light-gray);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.metric-box .value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.metric-box .desc { font-size: 13px; color: var(--text-secondary); }

/* ---------- Contact Info Grid ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}
.contact-card .card-icon { margin: 0 auto 16px; color: var(--accent); }
.contact-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.contact-card p { font-size: 15px; color: var(--text-secondary); }
.contact-card a { color: var(--accent); font-weight: 500; }

/* ---------- Two-col layout ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* ---------- Page hero (non-index) ---------- */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 60px;
  text-align: center;
}
.page-hero .label { margin-bottom: 16px; }
.page-hero .hero-title { font-size: clamp(34px, 5vw, 52px); margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.6; }

/* ---------- Badge list ---------- */
.badge-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
}
.badge svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* ---------- Divider ---------- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .scene-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-padding: 72px; }
  .nav-links { 
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; }
  .nav-toggle { display: flex; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .card-grid.cols-2,
  .card-grid.cols-3,
  .card-grid.cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .scene-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --section-padding: 56px; }
  .hero { padding-top: calc(var(--nav-height) + 64px); padding-bottom: 64px; }
  .hero p { font-size: 17px; }
  .btn { padding: 12px 24px; font-size: 14px; }
}

/* ---------- AIGC Section (Dark Feature Block) ---------- */
.aigc-section {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding: 120px 0;
  overflow: hidden;
}
.aigc-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120,80,255,.35) 0%, rgba(0,113,227,.2) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.aigc-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -8%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,150,.2) 0%, rgba(0,113,227,.1) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.aigc-section .container { position: relative; z-index: 1; }
.aigc-section .label { color: rgba(120,100,255,.9); }
.aigc-section .section-title { color: var(--white); }
.aigc-section .section-subtitle { color: rgba(255,255,255,.55); }

.aigc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 8px;
}
.aigc-text h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.aigc-text h2 .gradient-text {
  background: linear-gradient(135deg, #7c5cff 0%, #00c896 50%, #0071e3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.aigc-text > p {
  font-size: 17px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 32px;
}
.aigc-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.aigc-feature {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 24px 22px;
  transition: background .3s, border-color .3s;
}
.aigc-feature:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.15);
}
.aigc-feature h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aigc-feature h4 svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #7c5cff;
}
.aigc-feature p {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}
.aigc-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.aigc-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 980px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  letter-spacing: .02em;
}
.aigc-logo-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.aigc-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.aigc-orb {
  position: relative;
  width: 340px;
  height: 340px;
}
.aigc-orb .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
}
.aigc-orb .ring-1 { inset: 0; animation: orbSpin 20s linear infinite; }
.aigc-orb .ring-2 { inset: 40px; border-color: rgba(120,80,255,.2); animation: orbSpin 15s linear infinite reverse; }
.aigc-orb .ring-3 { inset: 80px; border-color: rgba(0,200,150,.15); animation: orbSpin 12s linear infinite; }
.aigc-orb .ring-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: -5px;
  left: 50%;
  margin-left: -5px;
}
.aigc-orb .core {
  position: absolute;
  inset: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120,80,255,.5) 0%, rgba(0,113,227,.3) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.aigc-orb .core span {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: .04em;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes orbSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 960px) {
  .aigc-grid { grid-template-columns: 1fr; gap: 40px; }
  .aigc-visual { order: -1; }
  .aigc-orb { width: 260px; height: 260px; }
  .aigc-orb .core { inset: 80px; }
  .aigc-orb .ring-2 { inset: 30px; }
  .aigc-orb .ring-3 { inset: 60px; }
}
@media (max-width: 768px) {
  .aigc-section { padding: 80px 0; }
  .aigc-features { grid-template-columns: 1fr; }
  .aigc-orb { width: 220px; height: 220px; }
  .aigc-orb .core { inset: 65px; }
  .aigc-orb .core span { font-size: 28px; }
  .aigc-orb .ring-2 { inset: 25px; }
  .aigc-orb .ring-3 { inset: 50px; }
}

/* ---------- Dark Section (AIGC) ---------- */
.dark-section {
  background: #1d1d1f !important;
  padding: var(--section-padding) 0;
}

/* ---------- Animations (subtle) ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
