/* ==========================================================================
   Design Tokens / CSS Variables
   ========================================================================== */
:root {
  --bg-primary: #0B1220;
  --bg-secondary: #0F172A;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(25, 40, 70, 0.8);
  --border-card: rgba(58, 143, 255, 0.15);
  --color-primary: #3A8FFF;
  --color-accent: #00E5FF;
  --color-agent: #A855F7;
  --color-agent-glow: rgba(168, 85, 247, 0.15);
  --color-text: #FFFFFF;
  --color-text-secondary: #9AA4B2;
  --color-text-muted: #5B6578;
  --shadow-glow: 0 0 30px rgba(58, 143, 255, 0.08);
  --shadow-card: 0 2px 18px rgba(0, 0, 0, 0.18);
  --glass-blur: 12px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
  --nav-height: 64px;
}

[data-theme="light"] {
  --bg-primary: #F5F7FA;
  --bg-secondary: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(245, 248, 255, 0.95);
  --border-card: rgba(58, 143, 255, 0.12);
  --color-text: #0F172A;
  --color-text-secondary: #475569;
  --color-text-muted: #94A3B8;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(58, 143, 255, 0.05);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Sans SC', 'Source Han Sans SC', 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover, a:focus-visible {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul { list-style: none; }
address { font-style: normal; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  margin-top: 12px;
}

.section-desc {
  color: var(--color-text-secondary);
  font-size: 1rem;
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-header .section-desc {
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

/* ==========================================================================
   Glass / Card base
   ========================================================================== */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.glass:hover, .glass:focus-within {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  background: var(--bg-card-hover);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 10%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.btn:active::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #5BA3FF);
  color: #fff;
  box-shadow: 0 4px 16px rgba(58, 143, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(58, 143, 255, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background: rgba(58, 143, 255, 0.1);
  color: var(--color-primary);
}

.btn-agent {
  background: linear-gradient(135deg, var(--color-agent), #C084FC);
  color: #fff;
  box-shadow: 0 4px 16px var(--color-agent-glow);
}

.btn-agent:hover {
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

.btn-agent-outline {
  border: 1.5px solid var(--color-agent);
  color: var(--color-agent);
}

.btn-agent-outline:hover {
  background: rgba(168, 85, 247, 0.1);
  color: var(--color-agent);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.88rem;
}

.btn-full { width: 100%; }

/* ==========================================================================
   Tags / Badges
   ========================================================================== */
.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(58, 143, 255, 0.3);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-accent);
  background: rgba(0, 229, 255, 0.06);
}

.tag-agent {
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--color-agent);
  background: rgba(168, 85, 247, 0.06);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 18, 32, 0.75);
  border-bottom: 1px solid rgba(58, 143, 255, 0.08);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(165deg, #0B1220 0%, #0F172A 50%, #0d1a30 100%);
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 48px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--color-primary) 60%, var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  animation: heroFadeIn 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.8;
  animation: heroFadeIn 1s 0.2s ease-out both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeIn 1s 0.4s ease-out both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

/* ==========================================================================
   BUSINESS OVERVIEW
   ========================================================================== */
.business-section {
  background: var(--bg-secondary);
}

.business-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.business-card {
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.business-card:hover {
  transform: translateY(-4px) scale(1.005);
}

.business-icon {
  margin-bottom: 8px;
}

.business-card h3 {
  font-size: 1.4rem;
}

.business-desc {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 420px;
}

.business-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 4px 0 8px;
}

/* --- CV Display Area (Gallery / Result) --- */
.cv-display-area {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: rgba(58, 143, 255, 0.02);
  position: relative;
}

/* Gallery */
.cv-gallery {
  padding: 12px 0;
  overflow: hidden;
}

.cv-gallery-track {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cv-gallery-track::-webkit-scrollbar {
  display: none;
}

.cv-gallery-item {
  flex: 0 0 160px;
  height: 148px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  overflow: hidden;
  transition: border-color var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.cv-gallery-item:hover {
  border-color: var(--color-primary);
}

.gallery-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
  background: rgba(58, 143, 255, 0.04);
}

.gallery-thumb-placeholder span {
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.gallery-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* Auto-scroll animation — scrolls through all items */
@keyframes galleryScroll {
  0%, 8%    { transform: translateX(0); }
  42%, 58%  { transform: translateX(calc(-100% + 500px)); }
  92%, 100% { transform: translateX(0); }
}

.cv-gallery-track.auto-scroll {
  overflow: visible;
  width: max-content;
  animation: galleryScroll 20s ease-in-out infinite;
}

.cv-gallery-track.auto-scroll:hover {
  animation-play-state: paused;
}

/* --- Try Button --- */
.cv-try-btn {
  align-self: center;
  margin-top: 4px;
}

/* ==========================================================================
   DETECTION MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.25s ease;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.6rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
  z-index: 1;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

.modal-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Modal Upload Zone --- */
.modal-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 16px;
  border: 2px dashed rgba(58, 143, 255, 0.3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  background: rgba(58, 143, 255, 0.03);
}

.modal-upload-zone:hover,
.modal-upload-zone.dragover {
  border-color: var(--color-primary);
  background: rgba(58, 143, 255, 0.08);
}

.modal-upload-zone p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

.modal-upload-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.upload-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* --- Modal Tags --- */
.modal-tag-section {
  width: 100%;
}

.modal-tag-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.modal-common-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-tag-btn {
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(58, 143, 255, 0.3);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-accent);
  background: rgba(0, 229, 255, 0.06);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cv-tag-btn:hover {
  border-color: var(--color-primary);
  background: rgba(58, 143, 255, 0.12);
}

.cv-tag-btn.active {
  background: rgba(58, 143, 255, 0.2);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.cv-tag-btn.custom {
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.1);
}

/* --- Modal Custom Tag --- */
.modal-custom-tag {
  width: 100%;
}

.modal-custom-tag input {
  width: 100%;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border-card);
  background: rgba(11, 18, 32, 0.5);
  color: var(--color-text);
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.modal-custom-tag input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.modal-custom-tag input::placeholder {
  color: var(--color-text-muted);
}

/* --- Modal Detect Button --- */
.modal-detect-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  text-align: center;
  transition: all var(--transition-fast);
}

.modal-detect-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: #555;
  border-color: #555;
  color: #888;
}

/* --- Agent Demo Area --- */
.agent-demo-area {
  width: 100%;
  margin-top: 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.agent-demo-carousel {
  border-radius: var(--radius-md);
  border: 1px solid rgba(168, 85, 247, 0.2);
  overflow: hidden;
  background: rgba(168, 85, 247, 0.03);
  position: relative;
  flex: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 220px;
  gap: 10px;
}

.carousel-placeholder p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-agent);
}

.carousel-placeholder span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.carousel-dot:hover {
  border-color: var(--color-agent);
}

.carousel-dot.active {
  background: var(--color-agent);
  border-color: var(--color-agent);
}

/* ==========================================================================
   CASES
   ========================================================================== */
.cases-section {
  background: var(--bg-primary);
}

/* Filter tabs */
.case-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border: 1px solid var(--border-card);
  background: transparent;
  transition: all var(--transition-fast);
  position: relative;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.filter-btn.active {
  background: rgba(58, 143, 255, 0.12);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.coming-soon {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 50px;
  background: rgba(168, 85, 247, 0.12);
  color: var(--color-agent);
  font-size: 0.68rem;
  font-weight: 500;
  vertical-align: middle;
}

/* Cases grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.case-card.hidden {
  display: none;
}

.case-thumb {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
  background: rgba(58, 143, 255, 0.05);
}

.case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.case-card:hover .case-img {
  transform: scale(1.06);
}

/* SVG hidden by default; shown only when image fails (no-img class) */
.case-thumb > svg {
  display: none;
}

.case-thumb.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-thumb.no-img > svg {
  display: block;
  opacity: 0.7;
}

.case-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.case-tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--color-accent);
  margin-bottom: 10px;
  align-self: flex-start;
}

.case-tag-ind {
  background: rgba(255, 165, 0, 0.08);
  border-color: rgba(255, 165, 0, 0.25);
  color: #FFA500;
}

.case-tag-construction {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.3);
  color: #34D399;
}

.case-brief {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  flex: 1;
  line-height: 1.6;
}

.case-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-card);
}

.case-detail .detail-block {
  margin-bottom: 12px;
}

.case-detail .detail-block strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.case-detail .detail-block p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.case-expand {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 500;
  align-self: flex-start;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.case-expand:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   SOLUTION PATH
   ========================================================================== */
.solution-section {
  background: var(--bg-secondary);
}

.solution-steps {
  display: flex;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.solution-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary);
  opacity: 0.3;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.step-body {
  padding: 24px 20px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-body h3 { margin-top: 0; }

.step-body:hover {
  transform: translateY(-4px) scale(1.01);
}

.step-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-brief {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.step-detail {
  text-align: left;
  margin-bottom: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border-card);
}

.step-detail ul {
  list-style: disc;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: 10px;
}

.step-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.15);
  font-size: 0.78rem;
  color: var(--color-accent);
}

.step-toggle {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.step-toggle:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   TEAM
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.team-card {
  padding: 36px 18px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  border: 1px solid rgba(58, 143, 255, 0.12);
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(58, 143, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(58, 143, 255, 0.18);
  border-color: rgba(58, 143, 255, 0.35);
}

.team-icon {
  margin-bottom: 16px;
}

.team-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  background: linear-gradient(120deg, var(--color-text) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Icon wrap upgrades */
.team-img-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-img-icon {
  font-size: 2.2rem;
  z-index: 1;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(58, 143, 255, 0.55));
}

.team-img-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(58, 143, 255, 0.4);
  animation: ringPulse 2.5s ease-in-out infinite;
  background: radial-gradient(circle, rgba(58, 143, 255, 0.05) 0%, transparent 70%);
}

.team-img-ring::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(58, 143, 255, 0.18);
  animation: ringPulse 2.5s ease-in-out infinite 0.5s;
}

.team-img-ring::after {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px dashed rgba(58, 143, 255, 0.1);
  animation: ringRotate 12s linear infinite;
}

.team-img-ring--agent {
  border-color: rgba(168, 85, 247, 0.45);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
}

.team-img-ring--agent::before {
  border-color: rgba(168, 85, 247, 0.18);
}

.team-img-ring--agent::after {
  border-color: rgba(168, 85, 247, 0.1);
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%       { transform: scale(1.22); opacity: 0.15; }
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ==========================================================================
   CONTACT (layout \u2014 bg styles handled in new block above)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.contact-item a {
  color: var(--color-text-secondary);
}

.contact-item a:hover {
  color: var(--color-primary);
}

/* Contact form */
.contact-form {
  padding: 32px;
}

.contact-form:hover {
  transform: none;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.required {
  color: #FF4D6A;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  background: rgba(11, 18, 32, 0.5);
  color: var(--color-text);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239AA4B2' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group select option {
  background: var(--bg-secondary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(58, 143, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Interest checkboxes */
.interest-checks {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-weight: 400;
}

.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-card);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.cases-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.cases-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.cases-grid .reveal:nth-child(4) { transition-delay: 0.16s; }
.cases-grid .reveal:nth-child(5) { transition-delay: 0.20s; }
.cases-grid .reveal:nth-child(6) { transition-delay: 0.24s; }
.cases-grid .reveal:nth-child(7) { transition-delay: 0.28s; }
.cases-grid .reveal:nth-child(8) { transition-delay: 0.32s; }
.cases-grid .reveal:nth-child(9) { transition-delay: 0.36s; }

.team-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.team-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.team-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.team-grid .reveal:nth-child(5) { transition-delay: 0.32s; }

.solution-steps .reveal:nth-child(2) { transition-delay: 0.15s; }
.solution-steps .reveal:nth-child(3) { transition-delay: 0.3s; }

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-steps {
    flex-direction: column;
    max-width: 500px;
  }

  .cv-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg-primary);
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition-base), opacity var(--transition-base);
    border-bottom: 1px solid var(--border-card);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .business-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-thumb {
    height: 140px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 240px;
  }

  .case-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 16px;
    font-size: 0.82rem;
  }

  .interest-checks {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .business-tags {
    gap: 6px;
  }

  .cv-showcase-grid {
    grid-template-columns: 1fr;
  }

  .carousel-placeholder {
    min-height: 180px;
    padding: 24px 16px;
  }
}

/* ==========================================================================
   SOLUTION — Animated Pipeline + Step Visuals
   ========================================================================== */

/* Pipeline icon row */
.solution-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 56px;
  gap: 0;
}

.sp-step {
  display: flex;
  align-items: center;
}

.sp-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(58, 143, 255, 0.12);
  animation: spPulse 2.4s ease-in-out infinite;
}

.sp-icon-wrap--2 .sp-pulse { animation-delay: 0.6s; background: rgba(0, 229, 255, 0.1); }
.sp-icon-wrap--3 .sp-pulse { animation-delay: 1.2s; background: rgba(58, 143, 255, 0.12); }
.sp-icon-wrap--4 .sp-pulse { animation-delay: 1.8s; background: rgba(52, 211, 153, 0.12); }

@keyframes spPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.35); opacity: 0; }
}

.sp-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 0 20px rgba(58, 143, 255, 0.15);
  z-index: 1;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.sp-icon-wrap--2 .sp-icon { color: var(--color-accent); border-color: rgba(0, 229, 255, 0.3); box-shadow: 0 0 20px rgba(0, 229, 255, 0.12); }
.sp-icon-wrap--4 .sp-icon { color: #34D399; border-color: rgba(52, 211, 153, 0.3); box-shadow: 0 0 20px rgba(52, 211, 153, 0.12); }

.sp-connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  position: relative;
  overflow: hidden;
}

.sp-flow-dot {
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px var(--color-accent);
  animation: flowDot 2s linear infinite;
}

@keyframes flowDot {
  from { left: -10px; }
  to   { left: 110%; }
}

/* Step visual: before/after accuracy comparison — stacked rows */
.step-anim-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  width: 100%;
  overflow: hidden;
}

.step-anim-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.step-anim-label {
  flex: 0 0 32px;
  text-align: right;
  font-weight: 500;
  font-size: 0.68rem;
}

.step-anim-track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(58, 143, 255, 0.08);
  overflow: hidden;
}

.step-anim-fill {
  height: 100%;
  width: var(--fill-w, 0);
  border-radius: 3px;
  background: rgba(58, 143, 255, 0.35);
  border: 1px solid rgba(58, 143, 255, 0.3);
  transition: width 1.2s ease;
}

.step-anim-fill--target {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-color: transparent;
  box-shadow: 0 0 8px rgba(58, 143, 255, 0.4);
}

.step-anim-val {
  flex: 0 0 auto;
  font-weight: 600;
  min-width: 28px;
}

.step-anim-val--target {
  color: var(--color-accent);
  font-weight: 700;
}

/* Accuracy bar chart */
.step-accuracy-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
  margin-bottom: 14px;
}

.sac-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  height: 100%;
  justify-content: flex-end;
}

.sac-fill {
  width: 100%;
  height: var(--h, 50%);
  border-radius: 3px 3px 0 0;
  background: rgba(58, 143, 255, 0.25);
  border: 1px solid rgba(58, 143, 255, 0.3);
  border-bottom: none;
  transition: height 1.2s ease;
}

.sac-bar--active .sac-fill {
  background: rgba(58, 143, 255, 0.5);
  border-color: var(--color-primary);
}

.sac-bar--peak .sac-fill {
  background: linear-gradient(to top, var(--color-primary), var(--color-accent));
  border-color: transparent;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.sac-bar span {
  font-size: 0.6rem;
  color: var(--color-text-muted);
}

/* Deploy map */
.step-deploy-map {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.68rem;
}

.sdm-cloud {
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(58, 143, 255, 0.1);
  border: 1px solid rgba(58, 143, 255, 0.3);
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
}

.sdm-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sdm-line {
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  position: relative;
  overflow: hidden;
}

.sdm-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  animation: lineFlow 1.8s ease-in-out infinite;
}

.sdm-line:nth-child(2)::after { animation-delay: 0.6s; }
.sdm-line:nth-child(3)::after { animation-delay: 1.2s; }

@keyframes lineFlow {
  from { left: -20%; }
  to   { left: 120%; }
}

.sdm-edges {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sdm-edge {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--color-accent);
  font-size: 0.65rem;
  font-weight: 500;
}

/* ==========================================================================
   TEAM — Tech background + icon rings
   ========================================================================== */

.team-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.team-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.team-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58, 143, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 143, 255, 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
}

.team-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.team-bg-orb--1 {
  width: 500px;
  height: 500px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(58, 143, 255, 0.35) 0%, rgba(58, 143, 255, 0.08) 50%, transparent 70%);
  filter: blur(50px);
  animation: orbFloat 8s ease-in-out infinite;
}

.team-bg-orb--2 {
  width: 380px;
  height: 380px;
  bottom: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.32) 0%, rgba(168, 85, 247, 0.06) 50%, transparent 70%);
  filter: blur(50px);
  animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-24px) scale(1.05); }
}

.team-bg-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.0) 5%, rgba(0, 229, 255, 0.8) 30%, rgba(58, 143, 255, 1) 50%, rgba(0, 229, 255, 0.8) 70%, rgba(0, 229, 255, 0.0) 95%, transparent 100%);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6), 0 0 30px rgba(58, 143, 255, 0.3);
  animation: scanLine 5s linear infinite;
  top: 0;
}

@keyframes scanLine {
  from { top: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { top: 100%; opacity: 0; }
}

/* Team card imagery */
.team-img-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-img-icon {
  font-size: 2rem;
  z-index: 1;
  position: relative;
  filter: drop-shadow(0 0 8px rgba(58, 143, 255, 0.5));
}

.team-img-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(58, 143, 255, 0.35);
  animation: ringPulse 2.5s ease-in-out infinite;
}

.team-img-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(58, 143, 255, 0.15);
  animation: ringPulse 2.5s ease-in-out infinite 0.4s;
}

.team-img-ring--agent {
  border-color: rgba(168, 85, 247, 0.35);
}

.team-img-ring--agent::before {
  border-color: rgba(168, 85, 247, 0.15);
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%       { transform: scale(1.18); opacity: 0.2; }
}

/* ==========================================================================
   CONTACT — Tech city background
   ========================================================================== */

.contact-section {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* City skyline silhouette — clip-path polygon of building tops */
.contact-bg-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 340px;
  background: linear-gradient(to top,
    rgba(58, 143, 255, 0.30) 0%,
    rgba(58, 143, 255, 0.15) 40%,
    rgba(58, 143, 255, 0.04) 75%,
    transparent 100%);
  clip-path: polygon(
    0% 100%,
    0% 65%,
    3% 65%, 3% 40%,
    5% 40%, 5% 60%,
    7% 60%, 7% 25%,
    9% 25%, 9% 55%,
    11% 55%, 11% 35%,
    13% 35%, 13% 60%,
    16% 60%, 16% 15%,
    18% 15%, 18% 55%,
    20% 55%, 20% 30%,
    22% 30%, 22% 50%,
    25% 50%, 25% 45%,
    27% 45%, 27% 60%,
    30% 60%, 30% 20%,
    32% 20%, 32% 50%,
    35% 50%, 35% 65%,
    38% 65%, 38% 10%,
    40% 10%, 40% 55%,
    43% 55%, 43% 35%,
    46% 35%, 46% 60%,
    49% 60%, 49% 40%,
    52% 40%, 52% 25%,
    55% 25%, 55% 55%,
    57% 55%, 57% 45%,
    60% 45%, 60% 60%,
    63% 60%, 63% 15%,
    65% 15%, 65% 50%,
    68% 50%, 68% 30%,
    71% 30%, 71% 55%,
    74% 55%, 74% 40%,
    77% 40%, 77% 65%,
    80% 65%, 80% 20%,
    83% 20%, 83% 55%,
    86% 55%, 86% 35%,
    89% 35%, 89% 60%,
    92% 60%, 92% 45%,
    95% 45%, 95% 65%,
    97% 65%, 97% 50%,
    100% 50%, 100% 100%
  );
}

/* Horizontal window-stripe pattern clipped to building shape */
.contact-bg-skyline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    transparent 0px,
    transparent 8px,
    rgba(58, 143, 255, 0.10) 8px,
    rgba(58, 143, 255, 0.10) 9px
  );
}

/* Glow pool rising from the city base */
.contact-bg-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center bottom,
    rgba(58, 143, 255, 0.28) 0%,
    rgba(0, 229, 255, 0.08) 40%,
    transparent 65%);
  pointer-events: none;
  animation: contactGlow 5s ease-in-out infinite;
}

@keyframes contactGlow {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50%       { opacity: 0.7; transform: translateX(-50%) scale(1.08); }
}

/* Neon horizon line — sits OUTSIDE the clip-path, always visible */
.contact-bg-grid::before {
  content: '';
  position: absolute;
  bottom: 340px;    /* sits right at the top of the 340px skyline */
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 229, 255, 0.9) 20%,
    rgba(58, 143, 255, 1) 50%,
    rgba(0, 229, 255, 0.9) 80%,
    transparent 100%);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.7), 0 0 50px rgba(58, 143, 255, 0.4);
  animation: horizonPulse 3s ease-in-out infinite;
}

@keyframes horizonPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

.contact-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58, 143, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 143, 255, 0.12) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* Floating orbs — matching team section tech style */
.contact-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.contact-bg-orb--1 {
  width: 450px;
  height: 450px;
  top: -80px;
  right: -100px;
  background: radial-gradient(circle, rgba(58, 143, 255, 0.30) 0%, rgba(58, 143, 255, 0.06) 50%, transparent 70%);
  filter: blur(50px);
  animation: orbFloat 9s ease-in-out infinite;
}

.contact-bg-orb--2 {
  width: 350px;
  height: 350px;
  bottom: 60px;
  left: -80px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.22) 0%, rgba(0, 229, 255, 0.04) 50%, transparent 70%);
  filter: blur(50px);
  animation: orbFloat 11s ease-in-out infinite reverse;
}

/* Scan line — matching team section */
.contact-bg-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0) 5%, rgba(0, 229, 255, 0.7) 30%, rgba(58, 143, 255, 0.9) 50%, rgba(0, 229, 255, 0.7) 70%, rgba(0, 229, 255, 0) 95%, transparent 100%);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5), 0 0 30px rgba(58, 143, 255, 0.3);
  animation: scanLine 7s linear infinite;
  top: 0;
  z-index: 1;
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   CASE CARD — Multi-image Mini Carousel
   ========================================================================== */

.case-has-gallery .case-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  transform: none !important;
}

.case-has-gallery .case-img.case-img--active {
  opacity: 1;
}

.cg-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.cg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.25s, transform 0.25s;
  cursor: pointer;
}

.cg-dot.cg-dot--active {
  background: #fff;
  transform: scale(1.35);
}

.cg-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast), background var(--transition-fast);
  z-index: 3;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.case-thumb:hover .cg-btn {
  opacity: 1;
}

.cg-prev { left: 8px; }
.cg-next { right: 8px; }

.cg-btn:hover {
  background: rgba(58, 143, 255, 0.65);
}

/* ==========================================================================
   CV GALLERY — Real images + label overlay
   ========================================================================== */

.cv-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.cv-gallery-item:hover .cv-gallery-img {
  transform: scale(1.07);
}

.cv-gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px 6px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  font-size: 0.65rem;
  color: #fff;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.3px;
  pointer-events: none;
}

/* ==========================================================================
   AGENT CARD — UI Mockup Slides
   ========================================================================== */

.agent-ui-mockup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  min-height: 220px;
  justify-content: center;
}

.aui-messages {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.aui-msg {
  max-width: 88%;
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 0.73rem;
  line-height: 1.5;
}

.aui-msg--user {
  align-self: flex-end;
  background: rgba(168, 85, 247, 0.22);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #e2d4f8;
}

.aui-msg--ai {
  align-self: flex-start;
  background: rgba(30, 40, 65, 0.8);
  border: 1px solid rgba(58, 143, 255, 0.2);
  color: var(--color-text-secondary);
}

.aui-ai-label {
  display: block;
  font-size: 0.62rem;
  color: var(--color-agent);
  font-weight: 700;
  margin-bottom: 3px;
}

.aui-typing-dots::after {
  content: '● ● ●';
  font-size: 0.52rem;
  letter-spacing: 2px;
  color: var(--color-agent);
  animation: typingPulse 1.2s infinite;
}

@keyframes typingPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1;   }
}

.aui-input-bar {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.05);
  font-size: 0.68rem;
  color: var(--color-text-muted);
  text-align: center;
}

.aui-doc-header {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 7px 10px;
  background: rgba(58, 143, 255, 0.07);
  border-radius: 6px;
  border-left: 3px solid var(--color-primary);
  margin-bottom: 6px;
}

.aui-doc-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.aui-doc-item {
  font-size: 0.74rem;
  color: var(--color-text-secondary);
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
}

.aui-tasks {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.aui-task-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-agent);
  margin-bottom: 2px;
}

.aui-task-title span {
  background: rgba(168, 85, 247, 0.2);
  padding: 1px 8px;
  border-radius: 50px;
  font-weight: 600;
}

.aui-task-item {
  font-size: 0.74rem;
  color: var(--color-text-secondary);
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aui-task-item.done {
  color: var(--color-text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}

.aui-urgent {
  font-size: 0.64rem;
  padding: 1px 7px;
  border-radius: 50px;
  background: rgba(168, 85, 247, 0.2);
  color: var(--color-agent);
  font-weight: 600;
}

.aui-suggest {
  font-size: 0.71rem;
  color: var(--color-text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.15);
}

@media (max-width: 768px) {
  .agent-ui-mockup { padding: 12px 14px; min-height: 180px; }
}

/* ==========================================================================
   Focus Visible (accessibility)
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
