/* ============================================================
   SolutionMall – Power Cable Classification Website
   styles.css
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a2332;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- CSS Variables ---- */
:root {
  --blue: #1a56db;
  --blue-dark: #1341b0;
  --blue-light: #3b82f6;
  --accent: #f59e0b;
  --dark: #0f1c2e;
  --dark2: #1a2332;
  --mid: #374151;
  --light: #f8fafc;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --gradient: linear-gradient(135deg, #0f1c2e 0%, #1a56db 100%);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.18);
  --transition: 0.25s ease;
  --header-h: 72px;
}

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(15, 28, 46, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 24px;
}

/* Logo */
.logo-block { flex-shrink: 0; }
.logo-link {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none;
}
.logo-img { height: 40px; width: auto; filter: none; }
.logo-url {
  font-size: 10px; color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px; line-height: 1;
  text-align: center;
}
.logo-link:hover .logo-url { color: #60a5fa; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: #ffffff;
  transition: all var(--transition);
}
.nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-cta {
  padding: 8px 20px; border-radius: 8px;
  background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 600;
  transition: all var(--transition);
  margin-left: 8px;
}
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* Language Switcher */
.lang-switcher { display: flex; gap: 4px; margin-left: 16px; }
.lang-btn {
  padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2);
  background: transparent; color: rgba(255,255,255,0.7);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all var(--transition); font-family: inherit;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--blue); border-color: var(--blue); color: #fff;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,20,40,0.88) 0%, rgba(26,86,219,0.55) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 760px; padding: 80px 24px 80px 80px;
}
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: rgba(59,130,246,0.25); border: 1px solid rgba(59,130,246,0.5);
  color: #93c5fd; font-size: 13px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(36px, 5vw, 64px); font-weight: 800;
  color: #fff; line-height: 1.1; margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-subtitle {
  font-size: 18px; color: rgba(255,255,255,0.82);
  line-height: 1.7; margin-bottom: 36px; max-width: 600px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  transition: all var(--transition); cursor: pointer; border: none;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 4px 16px rgba(26,86,219,0.4);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,86,219,0.5); }
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline-white {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* Hero Stats */
.hero-stats { display: flex; gap: 40px; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 36px; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* Scroll Down */
.hero-scroll-down {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 1; color: rgba(255,255,255,0.6);
  animation: bounce 2s infinite;
}
.hero-scroll-down svg { width: 28px; height: 28px; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; }
.section-light { background: #fff; }
.section-dark { background: var(--dark); }
.section-gradient { background: linear-gradient(135deg, #0f1c2e 0%, #1e3a5f 100%); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header.light .section-title,
.section-header.light .section-desc { color: #fff; }
.section-header.light .section-tag { background: rgba(59,130,246,0.2); color: #93c5fd; }

.section-tag {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  background: rgba(26,86,219,0.1); color: var(--blue);
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 800;
  color: var(--dark); line-height: 1.2; margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-desc {
  font-size: 17px; color: var(--mid); max-width: 680px; margin: 0 auto;
  line-height: 1.7;
}
.subsection-title {
  font-size: 22px; font-weight: 700; color: var(--dark);
  margin-bottom: 28px; text-align: center;
}
.section-cta { text-align: center; margin-top: 48px; }

/* ============================================================
   OVERVIEW
   ============================================================ */
.overview-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; margin-bottom: 64px;
}
.overview-text p {
  font-size: 16px; color: var(--mid); line-height: 1.8; margin-bottom: 24px;
}
.alert-box {
  display: flex; gap: 16px; padding: 24px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-left: 4px solid var(--blue); border-radius: 12px;
}
.alert-icon { font-size: 28px; flex-shrink: 0; }
.alert-content strong { display: block; font-size: 15px; color: var(--dark); margin-bottom: 8px; }
.alert-content p { font-size: 14px; color: var(--mid); margin: 0; }
.overview-image img { border-radius: 16px; box-shadow: var(--shadow-lg); }

/* Value Cards */
.cards-grid-5 {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.value-card {
  padding: 28px 20px; border-radius: 14px;
  background: var(--light); border: 1px solid var(--border);
  text-align: center; transition: all var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-light); }
.value-icon { font-size: 32px; margin-bottom: 12px; }
.value-card h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--mid); line-height: 1.5; }

/* Risk Section */
.risk-section { margin-top: 56px; }
.risk-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.risk-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
}
.risk-icon { font-size: 22px; flex-shrink: 0; }
.risk-fire { background: #fef2f2; color: #991b1b; }
.risk-shock { background: #fefce8; color: #92400e; }
.risk-stop { background: #fff7ed; color: #9a3412; }
.risk-cost { background: #fef2f2; color: #7f1d1d; }
.risk-fail { background: #f0fdf4; color: #14532d; }
.risk-eff { background: #eff6ff; color: #1e3a8a; }

/* ============================================================
   PRODUCT CATEGORIES – TABS
   ============================================================ */
.tab-nav {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 40px; flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px; border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.2);
  background: transparent; color: rgba(255,255,255,0.7);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all var(--transition); font-family: inherit;
}
.tab-btn:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.tab-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Voltage Tab */
.cat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 36px; }
.cat-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; overflow: hidden; transition: all var(--transition);
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--blue-light); }
.cat-card-header {
  padding: 28px 28px 20px; background: rgba(26,86,219,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.voltage-badge {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
  margin-bottom: 12px;
}
.voltage-badge.lv { background: #10b981; color: #fff; }
.voltage-badge.mv { background: #f59e0b; color: #fff; }
.cat-card-header h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.voltage-range { font-size: 14px; color: #93c5fd; font-weight: 600; }
.cat-card-body { padding: 24px 28px; }
.cat-card-body p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 16px; }
.feature-list { margin-bottom: 20px; }
.feature-list li {
  font-size: 13px; color: rgba(255,255,255,0.7);
  padding: 4px 0; padding-left: 16px; position: relative;
}
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: #10b981; font-weight: 700; }
.use-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 4px 12px; border-radius: 20px;
  background: rgba(59,130,246,0.2); color: #93c5fd;
  font-size: 12px; font-weight: 600;
}

/* Voltage Diagram */
.voltage-diagram {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 24px; text-align: center;
}
.vd-title { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.vd-flow { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.vd-node {
  padding: 12px 20px; border-radius: 10px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
.vd-mv { background: rgba(245,158,11,0.2); border-color: rgba(245,158,11,0.4); }
.vd-lv { background: rgba(16,185,129,0.2); border-color: rgba(16,185,129,0.4); }
.vd-tx { background: rgba(139,92,246,0.2); border-color: rgba(139,92,246,0.4); }
.vd-label { font-size: 13px; font-weight: 700; color: #fff; }
.vd-sub { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 4px; }
.vd-arrow { color: rgba(255,255,255,0.4); font-size: 20px; }

/* Scenario Tab */
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scenario-card {
  padding: 28px 24px; border-radius: 14px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition); cursor: pointer;
}
.scenario-card:hover { background: rgba(26,86,219,0.2); border-color: var(--blue-light); transform: translateY(-4px); }
.sc-icon { font-size: 36px; margin-bottom: 16px; }
.scenario-card h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.scenario-card p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* Performance Tab */
.perf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.perf-card {
  padding: 28px; border-radius: 14px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
}
.perf-card:hover { border-color: var(--blue-light); transform: translateY(-3px); }
.perf-badge {
  display: inline-block; padding: 6px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: 1px; margin-bottom: 16px;
}
.perf-badge.fr { background: #f59e0b; color: #fff; }
.perf-badge.fire { background: #ef4444; color: #fff; }
.perf-badge.lszh { background: #10b981; color: #fff; }
.perf-badge.wp { background: #3b82f6; color: #fff; }
.perf-card h4 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.perf-card p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 16px; }
.perf-standard {
  font-size: 12px; font-weight: 600; color: #93c5fd;
  background: rgba(59,130,246,0.15); padding: 4px 12px; border-radius: 6px;
  display: inline-block;
}

/* Structure Tab */
.struct-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.struct-card {
  padding: 28px; border-radius: 14px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
}
.struct-card:hover { border-color: var(--blue-light); }
.struct-visual {
  height: 100px; border-radius: 10px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3); overflow: hidden; flex-direction: column; gap: 3px;
  padding: 8px;
}
.sv-layer {
  width: 100%; text-align: center; font-size: 10px; font-weight: 600;
  padding: 4px; border-radius: 4px;
}
.sv-outer { background: #374151; color: #9ca3af; }
.sv-armor { background: #6b7280; color: #d1d5db; }
.sv-shield { background: #92400e; color: #fcd34d; }
.sv-inner { background: #4b5563; color: #9ca3af; }
.sv-insul { background: #1e40af; color: #bfdbfe; }
.sv-cond { background: #b45309; color: #fde68a; }
.sv-flex-icon { font-size: 48px; }
.sv-cores { display: flex; gap: 8px; }
.sv-core { width: 24px; height: 24px; border-radius: 50%; }
.c1 { background: #ef4444; }
.c2 { background: #3b82f6; }
.c3 { background: #f59e0b; }
.c4 { background: #10b981; }
.struct-card h4 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.struct-card p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* ============================================================
   APPLICATION SCENARIOS
   ============================================================ */
.industry-tabs {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 40px; flex-wrap: wrap;
}
.ind-tab {
  padding: 10px 22px; border-radius: 8px;
  border: 2px solid var(--border);
  background: transparent; color: var(--mid);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all var(--transition); font-family: inherit;
}
.ind-tab:hover { border-color: var(--blue); color: var(--blue); }
.ind-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.industry-panel { display: none; }
.industry-panel.active { display: block; }

.scenario-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sd-card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: #fff;
  box-shadow: var(--shadow); transition: all var(--transition);
}
.sd-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sd-img-wrap { position: relative; height: 200px; overflow: hidden; }
.sd-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.sd-card:hover .sd-img-wrap img { transform: scale(1.05); }
.sd-img-tag {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(26,86,219,0.9); color: #fff;
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px;
}
.sd-content { padding: 20px; }
.sd-content h4 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.sd-meta-grid { display: flex; flex-direction: column; gap: 10px; }
.sd-meta { display: flex; flex-direction: column; gap: 3px; }
.sd-meta-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: #9ca3af;
}
.sd-meta span:not(.sd-meta-label) { font-size: 13px; color: var(--mid); line-height: 1.5; }
.risk-text { color: #dc2626 !important; font-weight: 500; }
.product-text { color: var(--blue) !important; font-weight: 600; }

/* ============================================================
   SELECTION GUIDE
   ============================================================ */
.selection-steps { display: flex; flex-direction: column; gap: 40px; margin-bottom: 64px; }
.sel-step {
  display: flex; gap: 32px; align-items: flex-start;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 36px;
}
.step-num {
  font-size: 48px; font-weight: 900; color: rgba(59,130,246,0.4);
  line-height: 1; flex-shrink: 0; min-width: 72px;
}
.step-content { flex: 1; }
.step-content h4 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.step-content > p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 20px; }
.step-options { display: flex; gap: 16px; margin-bottom: 0; }
.step-opt {
  flex: 1; padding: 16px; border-radius: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.lv-opt { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); }
.mv-opt { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); }
.step-opt strong { font-size: 15px; color: #fff; }
.step-opt span { font-size: 13px; color: rgba(255,255,255,0.6); }

/* Selection Table */
.sel-table { width: 100%; border-collapse: collapse; }
.sel-table th, .sel-table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}
.sel-table th { color: rgba(255,255,255,0.5); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.sel-table td { color: #ffffff; }
.sel-table tr:hover td { background: rgba(255,255,255,0.03); }

/* Env Grid */
.env-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.env-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: 10px;
  background: rgba(255,255,255,0.05);
}
.env-icon { font-size: 24px; flex-shrink: 0; }
.env-item strong { display: block; font-size: 14px; color: #fff; margin-bottom: 4px; }
.env-item p { font-size: 13px; color: rgba(255,255,255,0.6); margin: 0; }

/* Mistakes */
.mistakes-section { }
.mistakes-section h3 { font-size: 24px; font-weight: 700; color: #fff; text-align: center; margin-bottom: 32px; }
.mistakes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mistake-card {
  padding: 24px; border-radius: 14px;
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
  transition: all var(--transition);
}
.mistake-card:hover { border-color: rgba(239,68,68,0.5); transform: translateY(-3px); }
.mistake-x { font-size: 24px; color: #ef4444; margin-bottom: 12px; font-weight: 900; }
.mistake-card h5 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.mistake-card p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ============================================================
   ECOSYSTEM
   ============================================================ */
.ecosystem-visual { margin-bottom: 48px; }
.eco-items { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.eco-item {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: #fff;
  box-shadow: var(--shadow); transition: all var(--transition);
}
.eco-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.eco-item img { width: 100%; height: 140px; object-fit: cover; }
.eco-item-icon {
  height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 56px; background: var(--light);
}
.eco-item-content { padding: 16px; }
.eco-item-content h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.eco-item-content p { font-size: 12px; color: var(--mid); line-height: 1.5; }

/* Eco Formula */
.eco-formula {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  padding: 28px; border-radius: 14px;
  background: var(--light); border: 1px solid var(--border);
  font-size: 15px; font-weight: 600; color: var(--mid);
}
.eco-plus { color: var(--blue); font-size: 20px; font-weight: 700; }
.eco-equals { color: var(--dark); font-size: 24px; font-weight: 900; }
.eco-result { color: var(--blue); font-weight: 800; font-size: 17px; }

/* ============================================================
   INSIGHTS
   ============================================================ */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insight-card {
  padding: 32px; border-radius: 16px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
}
.insight-card:hover { border-color: var(--blue-light); transform: translateY(-4px); }
.insight-num {
  font-size: 40px; font-weight: 900; color: rgba(59,130,246,0.3);
  line-height: 1; margin-bottom: 16px;
}
.insight-card h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.4; }
.insight-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.section-cta-full {
  padding: 96px 0;
  background: linear-gradient(135deg, #1a56db 0%, #0f1c2e 100%);
}
.section-cta-full .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.cta-content h2 { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-content p { font-size: 17px; color: #ffffff; line-height: 1.7; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.cta-features { display: flex; flex-direction: column; gap: 8px; }
.cta-features span { font-size: 14px; color: rgba(255,255,255,0.75); }
.cta-image img { border-radius: 16px; box-shadow: var(--shadow-lg); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark); padding: 64px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { }
.footer-logo-link { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 16px; }
.footer-logo { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-url { font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links h5 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.7); padding: 4px 0; transition: color var(--transition); }
.footer-links a:hover { color: #60a5fa; }
.footer-cta-col { display: flex; flex-direction: column; gap: 12px; }
.footer-cta-col h5 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-cta-btn {
  display: block; padding: 12px 20px; border-radius: 8px;
  background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 600; text-align: center;
  transition: all var(--transition);
}
.footer-cta-btn:hover { background: var(--blue-dark); }
.footer-survey-btn { background: transparent; border: 2px solid rgba(255,255,255,0.3); }
.footer-survey-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
.footer-note { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.5; }
.footer-bottom {
  padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; gap: 16px; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #60a5fa; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; border: none;
  font-size: 18px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(26,86,219,0.4);
  opacity: 0; transform: translateY(16px);
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .cards-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .eco-items { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .overview-grid { grid-template-columns: 1fr; }
  .cat-cards { grid-template-columns: 1fr; }
  .scenario-detail-grid { grid-template-columns: 1fr 1fr; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .mistakes-grid { grid-template-columns: 1fr 1fr; }
  .struct-grid { grid-template-columns: 1fr 1fr; }
  .perf-grid { grid-template-columns: 1fr 1fr; }
  .section-cta-full .container { grid-template-columns: 1fr; }
  .cta-image { display: none; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-content { padding: 60px 24px; }
  .hero-stats { gap: 24px; }
  .sel-step { flex-direction: column; }
  .step-num { font-size: 36px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .cards-grid-5 { grid-template-columns: 1fr 1fr; }
  .risk-grid { grid-template-columns: 1fr 1fr; }
  .scenario-grid { grid-template-columns: 1fr 1fr; }
  .scenario-detail-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .mistakes-grid { grid-template-columns: 1fr; }
  .struct-grid { grid-template-columns: 1fr; }
  .perf-grid { grid-template-columns: 1fr; }
  .eco-items { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
  .vd-flow { flex-direction: column; }
  .vd-arrow { transform: rotate(90deg); }
  .env-grid { grid-template-columns: 1fr; }
  .step-options { flex-direction: column; }
  .lang-switcher { gap: 2px; }
  .lang-btn { padding: 4px 7px; font-size: 11px; }
}

/* ============================================================
   MOBILE NAV OPEN STATE
   ============================================================ */
.main-nav.open {
  display: flex; flex-direction: column;
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: rgba(15,28,46,0.98);
  padding: 20px 24px; gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 999;
}
.main-nav.open .nav-link { padding: 12px 16px; }
.main-nav.open .nav-cta { margin-left: 0; text-align: center; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   SOLUTIONS GRID SECTION
   ============================================================ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.solution-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26,86,219,0.15);
  border-color: #1a56db;
}

.solution-card-icon {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}

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

.solution-card-tag {
  display: inline-block;
  background: #eff6ff;
  color: #1a56db;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}

.solution-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f1c2e;
  line-height: 1.4;
  margin: 0;
}

.solution-card-body p {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.solution-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.solution-card-meta span:last-child {
  color: #1a56db;
  font-weight: 600;
}

.solution-card:hover .solution-card-meta span:last-child {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================================
   HEADER TOOLS — Partner CRM + Language Dropdown + Browse Btn
   ============================================================ */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.header-inner .main-nav { margin-left: 0; }

.btn-crm {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-crm:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.site-header[data-tone="solid"] .btn-crm {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.88);
}
.site-header[data-tone="solid"] .btn-crm:hover {
  background: var(--blue);
  color: #fff;
}

.lang-wrap { position: relative; }
.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
}
.lang-button:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.lang-button svg { transition: transform var(--transition); flex-shrink: 0; }
.lang-wrap[data-open="true"] .lang-button svg { transform: rotate(180deg); }
.lang-wrap[data-open="true"] .lang-button {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
}
.site-header[data-tone="solid"] .lang-button {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.88);
}
.site-header[data-tone="solid"] .lang-button:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  padding: 6px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.lang-wrap[data-open="true"] .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-family: inherit;
}
.lang-option:hover { background: #f0f4ff; color: var(--blue); }
.lang-option[data-active="true"] {
  background: rgba(26,86,219,0.1);
  color: var(--blue);
  font-weight: 700;
}

.site-header[data-tone="solid"] .nav-link { color: rgba(255,255,255,0.88); }
.site-header[data-tone="solid"] .nav-link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.site-header[data-tone="solid"] .logo-img { filter: none; }
.site-header[data-tone="solid"] .logo-url { color: rgba(255,255,255,0.65); }
.site-header[data-tone="solid"] .mobile-menu-btn span { background: #fff; }

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; font-weight: 600; }

/* ============================================================
   FOOTER SOCIAL ICONS
   ============================================================ */
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.75);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  text-decoration: none;
}
.social-icon:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }

/* ============================================================
   RESPONSIVE — header tools
   ============================================================ */
@media (max-width: 1100px) {
  .main-nav { gap: 2px; }
  .nav-link { padding: 7px 10px; font-size: 13px; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(15,28,46,0.98);
    padding: 24px;
    z-index: 499;
    gap: 4px;
    overflow-y: auto;
  }
  .main-nav.open .nav-link {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 10px;
    color: rgba(255,255,255,0.88);
  }
  .btn-sm { display: none; }
  .btn-crm { display: none; }
}
@media (max-width: 640px) {
  .header-inner { padding: 0 16px; gap: 8px; }
  .lang-button { padding: 6px 10px; font-size: 12px; }
}


/* ============================================================
   CALCULATOR HUB SECTION (Homepage)
   ============================================================ */
.calc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.calc-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.calc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(96,165,250,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.calc-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(96,165,250,0.4);
  transform: translateY(-3px);
}

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

.calc-card-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96,165,250,0.12);
  border-radius: 12px;
}

.calc-card-body {
  flex: 1;
  min-width: 0;
}

.calc-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}

.calc-card-body p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0 0 12px;
  line-height: 1.5;
}

.calc-card-inputs,
.calc-card-output {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.calc-card-inputs span:first-child,
.calc-card-output span:first-child {
  color: rgba(96,165,250,0.9);
  font-weight: 600;
}

.calc-card-arrow {
  font-size: 20px;
  color: rgba(96,165,250,0.6);
  flex-shrink: 0;
  align-self: center;
  transition: transform 0.2s, color 0.2s;
}

.calc-card:hover .calc-card-arrow {
  transform: translateX(4px);
  color: #60a5fa;
}

@media (max-width: 768px) {
  .calc-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .calc-card {
    padding: 20px 18px;
  }
}
