/* ===== DOJO CLOUDS .COM — ENHANCED VISUAL LAYER ===== */

:root {
  --c-compute: #3B82F6;
  --c-compute-bg: #EFF6FF;
  --c-gpu: #8B5CF6;
  --c-gpu-bg: #F5F3FF;
  --c-ai: #06B6D4;
  --c-ai-bg: #ECFEFF;
  --c-storage: #F59E0B;
  --c-storage-bg: #FFFBEB;
  --c-network: #EF4444;
  --c-network-bg: #FEF2F2;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, .logo, .timeline-num {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== ICONS ===== */
.icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-wrap.compute { background: var(--c-compute-bg); color: var(--c-compute); }
.icon-wrap.gpu { background: var(--c-gpu-bg); color: var(--c-gpu); }
.icon-wrap.ai { background: var(--c-ai-bg); color: var(--c-ai); }
.icon-wrap.storage { background: var(--c-storage-bg); color: var(--c-storage); }
.icon-wrap.network { background: var(--c-network-bg); color: var(--c-network); }

/* ===== FAMILY TAG ===== */
.family-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.family-tag.compute { background: var(--c-compute-bg); color: var(--c-compute); }
.family-tag.gpu { background: var(--c-gpu-bg); color: var(--c-gpu); }
.family-tag.ai { background: var(--c-ai-bg); color: var(--c-ai); }
.family-tag.storage { background: var(--c-storage-bg); color: var(--c-storage); }
.family-tag.network { background: var(--c-network-bg); color: var(--c-network); }

/* ===== HERO ===== */
.com-hero {
  position: relative;
  overflow: hidden;
  padding: 130px 20px 70px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,68,68,0.08), transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(43,174,102,0.08), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.com-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black, transparent 75%);
  pointer-events: none;
}

.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
  position: relative;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  animation: floaty 6s ease-in-out infinite;
}
.badge-chip:nth-child(2) { animation-delay: 1.2s; }
.badge-chip:nth-child(3) { animation-delay: 2.4s; }
.badge-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Mock dashboard window */
.mock-window {
  position: relative;
  background: #0f0f10;
  border-radius: 14px;
  max-width: 920px;
  margin: 55px auto 0;
  overflow: hidden;
  border: 1px solid #232323;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.35);
}

.mock-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid #262626;
}

.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.red { background: #ff5f56; }
.mock-dot.yellow { background: #ffbd2e; }
.mock-dot.green { background: #27c93f; }

.mock-window-title {
  margin-left: 8px;
  font-size: 12px;
  color: #888;
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.mock-window-body {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.mock-instance {
  background: #181818;
  border: 1px solid #262626;
  border-radius: 8px;
  padding: 14px;
}

.mock-instance .mi-name {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-instance .mi-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27c93f;
  box-shadow: 0 0 0 0 rgba(39,201,63,0.5);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(39,201,63,0.5); }
  70% { box-shadow: 0 0 0 5px rgba(39,201,63,0); }
  100% { box-shadow: 0 0 0 0 rgba(39,201,63,0); }
}

.mock-instance .mi-bar {
  height: 4px;
  background: #2a2a2a;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 7px;
}

.mock-instance .mi-bar span {
  display: block;
  height: 100%;
  border-radius: 2px;
  animation: pulseBar 3.5s ease-in-out infinite;
}
.mock-instance:nth-child(1) .mi-bar span { background: #3B82F6; }
.mock-instance:nth-child(2) .mi-bar span { background: #8B5CF6; animation-delay: .4s; }
.mock-instance:nth-child(3) .mi-bar span { background: #06B6D4; animation-delay: .8s; }
.mock-instance:nth-child(4) .mi-bar span { background: #F59E0B; animation-delay: 1.2s; }

@keyframes pulseBar {
  0%, 100% { width: 25%; }
  50% { width: 78%; }
}

.mock-instance .mi-label {
  font-size: 11px;
  color: #777;
  font-family: Consolas, monospace;
}

/* Stat strip */
.stat-strip {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 55px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  position: relative;
}

.stat-item { text-align: center; }
.stat-item .num {
  font-size: 30px;
  font-weight: 700;
  color: var(--dark);
}
.stat-item .label {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== MISSION STRIP ===== */
.mission-strip {
  background: linear-gradient(135deg, var(--dark), #2a2a2a);
  color: #fff;
  padding: 36px 40px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1100px;
}

.mission-strip .ms-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.mission-strip .ms-icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.6; }

.mission-strip .ms-text { flex: 1; min-width: 250px; font-size: 15px; line-height: 1.6; color: #ddd; }
.mission-strip .ms-text a { color: var(--secondary); font-weight: 700; text-decoration: none; }

/* ===== SUBNAV ===== */
.subnav {
  position: sticky;
  top: 70px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 900;
  padding: 14px 20px;
}
.subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.subnav-pill {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s;
}
.subnav-pill:hover { color: var(--dark); background: var(--light); }
.subnav-pill.active { background: var(--dark); color: #fff; }

/* ===== FAMILY BLOCK (text + visual) ===== */
.family-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}
@media (max-width: 900px) {
  .family-block { grid-template-columns: 1fr; gap: 30px; }
}

.family-block h3 {
  font-size: 30px;
  margin-bottom: 14px;
  line-height: 1.2;
}
.family-block p.desc {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 22px;
  line-height: 1.7;
}

.family-visual {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.12);
}
.family-visual .fv-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

/* Spec grid (Compute / GPU tiers) */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.spec-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.spec-card.highlight.compute { border-color: var(--c-compute); background: var(--c-compute-bg); }
.spec-card.highlight.gpu { border-color: var(--c-gpu); background: var(--c-gpu-bg); }
.spec-card .spec-name { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.spec-card .spec-detail {
  font-size: 12px;
  color: var(--gray);
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.spec-note {
  font-size: 11px;
  color: var(--gray);
  margin-top: 12px;
  text-align: center;
  font-style: italic;
}

/* Pipeline flow (AI) */
.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.pipeline-node { flex: 1; min-width: 85px; text-align: center; }
.pipeline-node .pn-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--c-ai-bg);
  color: var(--c-ai);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}
.pipeline-node .pn-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pipeline-node .pn-label { font-size: 11px; font-weight: 600; color: var(--dark); }
.pipeline-arrow { color: var(--border); font-size: 18px; flex-shrink: 0; }

/* Storage bars */
.storage-bars { display: flex; flex-direction: column; gap: 16px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-row .bar-label { width: 100px; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.bar-track { flex: 1; height: 10px; background: #f0f0f0; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--c-storage); border-radius: 6px; }

/* Networking topology */
.topo-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
}
.topo-node {
  background: var(--c-network-bg);
  color: var(--c-network);
  border-radius: 10px;
  padding: 16px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  flex: 1;
  min-width: 72px;
}
.topo-arrow { color: var(--border); font-size: 16px; flex-shrink: 0; }

/* ===== TIMELINE ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; }
}
.timeline-step { text-align: center; padding: 0 10px; }
.timeline-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
  font-size: 17px;
}
.timeline-step h4 { font-size: 15px; margin-bottom: 8px; font-family: 'Sora', sans-serif; }
.timeline-step p { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ===== BADGES (roadmap) ===== */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.badge.launch { background: #DCFCE7; color: #15803D; }
.badge.next { background: #FEF3C7; color: #B45309; }
.badge.research { background: #F3F4F6; color: #4B5563; }

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--gray);
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.75;
}

/* ===== NOTIFY FORM ===== */
.notify-box {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.notify-box input {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
}
.notify-box input:focus { outline: none; border-color: var(--primary); }
.notify-msg {
  margin-top: 16px;
  font-size: 13px;
  color: var(--secondary);
  font-weight: 600;
  display: none;
  text-align: center;
}
.notify-msg.show { display: block; }

/* ===== MOBILE NAV ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--dark); display: block; border-radius: 1px; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 18px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
}

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