/* ==========================================================================
   SYNC ARUBA · Modern Cyber-Component System & Terminal UI (2026)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Cyber Navigation Header
   -------------------------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-emblem {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.brand:hover .brand-emblem {
  transform: rotate(180deg) scale(1.08);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-node {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--cyan-neon);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.desktop-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--cyan-neon);
}

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

.lang-segment {
  display: inline-flex;
  background: var(--bg-surface);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-2);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--cyan-neon);
  color: #060913;
  box-shadow: 0 0 10px var(--cyan-glow);
}

/* --------------------------------------------------------------------------
   2. Hero Section: Centered Constellation with Tool Nodes
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 40px 0 50px;
  position: relative;
  overflow: hidden;
}

.hero-constellation {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.constellation-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Center Hero Copy Block */
.hero-center-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  text-align: center;
  margin: 0 auto;
  padding: 20px 0;
}

.hero-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-title {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 16.5px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-bottom-note {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 20px;
}

/* Floating Tool Node Badges */
.tool-node {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatNode 6s ease-in-out infinite;
}

.tool-node:nth-child(odd) { animation-delay: -1.5s; }
.tool-node:nth-child(even) { animation-delay: -3.8s; }

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

.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.node-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}

.node-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.node-card small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  font-weight: 600;
}

.node-icon {
  font-size: 22px;
  flex-shrink: 0;
}

/* Node Positioning — pulled tight to center */
.node-tl { top: 2%;  left: 3%; }
.node-tr { top: 0;   right: 3%; }
.node-ml { top: 42%; left: 0; }
.node-mr { top: 40%; right: 0; }
.node-bl { bottom: 2%; left: 5%; }
.node-br { bottom: 0;  right: 3%; }

/* Free Website Planner Input Bar */
.planner-bar {
  margin-top: 28px;
  text-align: center;
}

.planner-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
  display: block;
  margin-bottom: 12px;
}

.planner-input-wrap {
  display: flex;
  align-items: center;
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  overflow: hidden;
  padding: 5px;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.planner-input-wrap:focus-within {
  border-color: var(--cyan-neon);
  box-shadow: 0 0 32px var(--cyan-glow);
}

.planner-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: #fff;
}

.planner-input::placeholder {
  color: var(--text-3);
}

.planner-submit {
  flex-shrink: 0;
  padding: 11px 22px !important;
  font-size: 13px !important;
  border-radius: var(--radius-pill) !important;
}

.planner-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   3. Interactive Live System Terminal (Hero Visualizer)
   -------------------------------------------------------------------------- */
.hero-terminal-wrap {
  background: var(--bg-terminal);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), 0 0 35px rgba(56, 189, 248, 0.12);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 780px;
  margin: 0 auto;
}

.terminal-header {
  background: rgba(16, 24, 45, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
  letter-spacing: 0.05em;
}

.terminal-tabs {
  display: flex;
  background: rgba(8, 12, 24, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}
.terminal-tabs::-webkit-scrollbar { display: none; }

.t-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.t-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.t-tab-btn.active {
  color: var(--cyan-neon);
  border-bottom-color: var(--cyan-neon);
  background: rgba(0, 240, 255, 0.06);
}

.terminal-body {
  padding: 22px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.terminal-view {
  display: none;
  animation: fadeIn 0.25s ease-out;
}
.terminal-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Simulated System Previews */
.sim-card {
  background: rgba(18, 28, 51, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.sim-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.pill-sentoo { background: rgba(0, 240, 255, 0.15); color: var(--cyan-neon); border: 1px solid rgba(0, 240, 255, 0.35); }
.pill-wa { background: rgba(37, 211, 102, 0.15); color: #25D366; border: 1px solid rgba(37, 211, 102, 0.35); }

.sim-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.sim-box {
  background: rgba(8, 12, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 12px;
}
.sim-box b { color: #fff; display: block; margin-bottom: 2px; }
.sim-box span { color: var(--text-3); font-size: 11px; }

.sim-btn-action {
  width: 100%;
  background: var(--grad-cyan-azure);
  color: #050B14;
  border: none;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 12.5px;
  font-family: var(--font-display);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.sim-btn-action:hover {
  filter: brightness(1.15);
}

.terminal-status-footer {
  background: rgba(8, 12, 24, 0.9);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 16px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --------------------------------------------------------------------------
   4. Section Architecture
   -------------------------------------------------------------------------- */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  margin-bottom: 44px;
  text-align: center;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-neon);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   5. Live Client Portfolio Showcases (/frutalocaruba, /hiddenfruta)
   -------------------------------------------------------------------------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.showcase-card:hover {
  transform: translateY(-6px);
  border-color: var(--azure);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.2);
}

.showcase-card.featured {
  border-color: rgba(0, 240, 255, 0.35);
  background: linear-gradient(150deg, #101B33 0%, #152342 100%);
}

.showcase-preview-box {
  height: 220px;
  background: radial-gradient(circle at 50% 40%, #1A284A 0%, #0B1224 85%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}

.showcase-preview-img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.75));
  transition: transform 0.3s ease;
}

.showcase-card:hover .showcase-preview-img {
  transform: scale(1.08) rotate(-2deg);
}

.showcase-tag-float {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: #fff;
  z-index: 2;
}

.showcase-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-title {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 8px;
}

.showcase-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 18px;
}

.tech-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  color: var(--azure);
}

.btn-showcase-demo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--azure);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  padding: 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-showcase-demo:hover {
  background: var(--azure);
  color: #060913;
  box-shadow: 0 0 20px var(--azure-glow);
}

/* --------------------------------------------------------------------------
   6. Core Systems We Build Grid
   -------------------------------------------------------------------------- */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.system-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.system-box:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-neon);
  box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.7);
}

.system-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: inline-block;
}

.system-box h3 {
  font-size: 18.5px;
  font-weight: 800;
  margin-bottom: 8px;
}

.system-box p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 14px;
}

.system-feature-list {
  list-style: none;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 16px;
}

.system-feature-list li {
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.system-feature-list li::before {
  content: "⚡";
  font-size: 10px;
  color: var(--cyan-neon);
}

/* --------------------------------------------------------------------------
   7. Interactive Project Scope & ROI Estimator
   -------------------------------------------------------------------------- */
.estimator-wrap {
  background: linear-gradient(150deg, #0C1324 0%, #121E38 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-card), 0 0 35px rgba(56, 189, 248, 0.1);
  position: relative;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.est-step-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--cyan-neon);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.est-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.est-checkbox, .est-radio {
  display: none;
}

.est-label {
  background: rgba(6, 9, 19, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.est-checkbox:checked + .est-label,
.est-radio:checked + .est-label {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan-neon);
  color: #fff;
  box-shadow: 0 0 16px var(--cyan-glow);
}

.est-receipt-box {
  background: rgba(6, 9, 19, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.est-receipt-header {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.est-receipt-items {
  list-style: none;
  margin-bottom: 20px;
  flex-grow: 1;
}

.est-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  color: var(--text-2);
}
.est-item-row b { color: #fff; }

.est-total-box {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.est-timeline-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  color: var(--emerald-live);
}

/* --------------------------------------------------------------------------
   8. Aruban Native Tech Stack Badges
   -------------------------------------------------------------------------- */
.ecosystem-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.eco-badge-card {
  background: rgba(14, 21, 38, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eco-icon {
  font-size: 24px;
}

.eco-info b {
  display: block;
  font-size: 13px;
  color: #fff;
}
.eco-info span {
  font-size: 11px;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 36px;
  background: #04060C;
  font-size: 13px;
  color: var(--text-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 14px;
  color: #fff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--cyan-neon);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   10. Mobile Responsiveness Polish
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .estimator-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .desktop-nav {
    display: none;
  }

  /* Constellation: Hide SVG lines, reflow nodes above/below center content */
  .constellation-lines {
    display: none;
  }
  .hero-constellation {
    min-height: auto;
    flex-direction: column;
    gap: 28px;
    padding-top: 16px;
  }
  .tool-node {
    position: static;
    animation: none;
  }
  .node-tl, .node-tr, .node-ml, .node-mr, .node-bl, .node-br {
    position: static;
  }
  /* Wrap the floating nodes into a grid */
  .hero-constellation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 14px;
  }
  .hero-center-content {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .node-tl { grid-row: 1; grid-column: 1; }
  .node-tr { grid-row: 1; grid-column: 2; }
  .node-ml { grid-row: 3; grid-column: 1; }
  .node-mr { grid-row: 3; grid-column: 2; }
  .node-bl { grid-row: 4; grid-column: 1; }
  .node-br { grid-row: 4; grid-column: 2; }

  .node-card {
    padding: 10px 14px;
    border-radius: var(--radius-md);
  }
  .node-card b { font-size: 12.5px; }
  .node-card small { font-size: 9.5px; }
  .node-icon { font-size: 18px; }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 20px 0 30px;
  }
  .hero-title {
    font-size: clamp(28px, 8vw, 38px);
  }
  .hero-lead {
    font-size: 14.5px;
  }
  .planner-input-wrap {
    flex-direction: column;
    border-radius: var(--radius-md);
  }
  .planner-input {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  .planner-submit {
    width: 100%;
    border-radius: var(--radius-md) !important;
  }
  .estimator-wrap {
    padding: 20px 14px;
  }
  .est-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .node-dot {
    display: none;
  }
}
