/* DoSec CNAPP Overseas Official Site - Dark Tech Theme */
/* Integrates local image/icon assets, serverless-friendly */

:root {
  --dosec-red: #E31837;
  --dosec-red-dark: #B7122C;
  --dosec-red-light: rgba(227, 24, 55, 0.12);
  --text-primary: #F9FAFB;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --bg-dark: #0B0F17;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-section: #0E1320;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px -4px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 40px -8px rgba(0,0,0,0.5);
  --radius: 10px;
  --radius-lg: 14px;
  --max-width: 1200px;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text-primary);
  background: var(--bg-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--dosec-red);
  color: white;
  border-color: var(--dosec-red);
  box-shadow: 0 4px 16px rgba(227, 24, 55, 0.25);
}

.btn-primary:hover {
  background: var(--dosec-red-dark);
  border-color: var(--dosec-red-dark);
  box-shadow: 0 6px 20px rgba(227, 24, 55, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--dosec-red);
  color: var(--dosec-red);
}

.btn-light {
  background: white;
  color: var(--dosec-red);
  border-color: white;
}

.btn-light:hover {
  background: var(--dosec-red-light);
  border-color: var(--dosec-red-light);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.35);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: white;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.logo-mark {
  width: auto;
  height: 44px;
  display: block;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--dosec-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 72px) 0 96px;
  background:
    linear-gradient(135deg, rgba(11,15,23,0.92) 0%, rgba(11,15,23,0.78) 50%, rgba(11,15,23,0.88) 100%),
    url('image/fabio-oyXis2kALVg-unsplash.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(227,24,55,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wave-bg {
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dosec-red);
  margin-bottom: 18px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
}

.dashboard-card {
  width: 100%;
  max-width: 460px;
  background: rgba(17, 24, 39, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

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

.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.dashboard-title {
  margin-left: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.dashboard-body {
  padding: 24px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-value.highlight {
  color: var(--dosec-red);
}

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

.cloud-grid-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.cloud-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cloud-node {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  background: rgba(11, 15, 23, 0.6);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  min-height: 48px;
}

.cloud-node.alibaba { border-color: #FF6A00; color: #FF9F43; }
.cloud-node.tencent { border-color: #0052D9; color: #60A5FA; }
.cloud-node.huawei { border-color: #FF0000; color: #F87171; }
.cloud-node.aws { border-color: #9CA3AF; color: #D1D5DB; }

.cloud-node.cloud-more,
.cloud-badge.cloud-more {
  grid-column: span 2;
  background: transparent;
  border-style: dashed;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Sections */
.section {
  padding: 100px 0;
}

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

.section-header {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* Icon helpers */
.local-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.local-icon.red {
  filter: brightness(0) saturate(100%) invert(22%) sepia(88%) saturate(5300%) hue-rotate(344deg) brightness(90%) contrast(95%);
}

/* Risk Grid */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.risk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s ease;
}

.risk-card:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.risk-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dosec-red);
  background: var(--dosec-red-light);
  border-radius: 10px;
  margin-bottom: 18px;
}

.risk-icon svg,
.risk-icon img {
  width: 24px;
  height: 24px;
}

.risk-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.risk-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Attack chain */
.attack-chain {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.chain-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.chain-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chain-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.chain-num {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dosec-red);
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.chain-arrow {
  font-size: 1.2rem;
  color: var(--dosec-red);
  font-weight: 700;
}

/* Platform diagram */
.platform-diagram {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.plat-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.plat-box.data-box {
  border-top: 3px solid #3B82F6;
}

.plat-box.workload-box {
  border-top: 3px solid var(--dosec-red);
}

.plat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: var(--text-secondary);
}

.plat-icon img,
.plat-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.plat-box h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.plat-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plat-center {
  display: flex;
  justify-content: center;
}

.asset-ring {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  border-radius: 50%;
  width: 280px;
  height: 280px;
  border: 2px dashed var(--border);
  align-content: center;
}

.asset-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(11, 15, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.asset-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dosec-red);
}

.plat-right {
  display: flex;
  justify-content: center;
}

.capability-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.capability-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.capability-dot.red { background: var(--dosec-red); }
.capability-dot.dark { background: var(--text-secondary); }

/* Delivery diagram */
.delivery-diagram {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.delivery-col {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.delivery-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cloud-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cloud-badge {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.customer-components {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.component-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(227, 24, 55, 0.1);
  border: 1px solid rgba(227, 24, 55, 0.25);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: #FCA5A5;
}

.component-box img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(70%) sepia(30%) saturate(1000%) hue-rotate(330deg) brightness(95%) contrast(95%);
}

.saas-box {
  padding: 24px;
  background: var(--dosec-red);
  color: white;
  border-radius: var(--radius);
  text-align: left;
}

.saas-box strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.saas-box p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.delivery-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.delivery-arrow svg {
  width: 60px;
  height: 18px;
  margin-bottom: 4px;
}

.delivery-arrow line,
.delivery-arrow polyline {
  stroke: var(--text-muted);
}

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

.delivery-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.point-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dosec-red);
  background: var(--dosec-red-light);
  border-radius: 10px;
}

.point-icon svg,
.point-icon img {
  width: 22px;
  height: 22px;
}

.point-icon img {
  filter: brightness(0) saturate(100%) invert(22%) sepia(88%) saturate(5300%) hue-rotate(344deg) brightness(90%) contrast(95%);
}

.delivery-point p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s ease;
}

.capability-card:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.capability-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dosec-red);
  background: var(--dosec-red-light);
  border-radius: 10px;
  margin-bottom: 18px;
}

.capability-icon svg,
.capability-icon img {
  width: 24px;
  height: 24px;
}

.capability-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.capability-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Compliance */
.compliance-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.compliance-item {
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.compliance-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Why DoSec */
.whydosec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.whydosec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s ease;
}

.whydosec-card:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.whydosec-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dosec-red);
  background: var(--dosec-red-light);
  border-radius: 10px;
  margin-bottom: 18px;
}

.whydosec-icon svg,
.whydosec-icon img {
  width: 24px;
  height: 24px;
}

.whydosec-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.whydosec-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.company-backing {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border);
}

.company-backing p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Footer */
.footer {
  background: #06080d;
  color: white;
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.footer-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .platform-diagram {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .plat-left,
  .plat-right {
    width: 100%;
  }

  .delivery-diagram {
    flex-direction: column;
    align-items: center;
  }

  .delivery-arrow {
    transform: rotate(90deg);
    margin: 8px 0;
  }

  .delivery-arrow span {
    transform: rotate(-90deg);
  }

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(11, 15, 23, 0.96);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding-top: calc(var(--header-height) + 48px);
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.35rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .risk-grid,
  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .chain-steps {
    flex-direction: column;
  }

  .chain-arrow {
    transform: rotate(90deg);
  }

  .delivery-points {
    grid-template-columns: 1fr;
  }

  .whydosec-grid {
    grid-template-columns: 1fr;
  }

  .footer-title {
    font-size: 1.75rem;
  }
}

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

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

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

  .asset-ring {
    width: 240px;
    height: 240px;
  }

  .platform-diagram {
    padding: 28px 20px;
  }
}
