/* ============================================
   xaviera.tech — Dev Company Homepage
   ============================================ */

:root {
  --brand: #1a8fe0;
  --brand-light: #4db3f5;
  --brand-dark: #0d6ebc;
  --brand-glow: rgba(26, 143, 224, 0.3);
  --code-green: #3dd68c;
  --code-purple: #c792ea;
  --code-orange: #ffcb6b;
  --mono: 'JetBrains Mono', 'Consolas', monospace;
  --ide-bg: #0a0e14;
  --ide-surface: #0d1117;
  --ide-border: #1c2333;
}

.logo span { color: var(--brand-light); }

/* ---- HERO ---- */
.dev-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 24px) 0 72px;
  overflow: hidden;
  background: #04060b;
}

#code-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Ambient glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: 5%;
  background: rgba(26, 143, 224, 0.12);
  animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  bottom: 5%;
  left: -5%;
  background: rgba(99, 102, 241, 0.08);
  animation: orbFloat 15s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 40%;
  background: rgba(61, 214, 140, 0.05);
  animation: orbFloat 10s ease-in-out infinite 2s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

.dev-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 45% at 75% 35%, rgba(26, 143, 224, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, rgba(4, 6, 11, 0.2) 0%, rgba(4, 6, 11, 0.88) 75%, #04060b 100%),
    linear-gradient(90deg, rgba(4, 6, 11, 0.96) 0%, rgba(4, 6, 11, 0.55) 42%, rgba(4, 6, 11, 0.8) 100%);
  pointer-events: none;
}

.dev-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(26, 143, 224, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 143, 224, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 40% 50%, black 15%, transparent 70%);
  pointer-events: none;
}

.dev-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

/* Brand lockup */
.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(26, 143, 224, 0.4);
  box-shadow: 0 0 32px var(--brand-glow), 0 0 64px rgba(26, 143, 224, 0.1);
}

.hero-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-brand-name {
  font-family: 'Montserrat', var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--brand, #1a8fe0);
  text-transform: uppercase;
  line-height: 1.1;
}

.hero-brand-name .brand-dot {
  color: var(--brand, #1a8fe0);
}

.hero-brand-tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--brand-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

/* Footer brand lockup (matches hero) */
.footer-brand .hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.footer-brand .hero-brand-lockup:hover {
  opacity: 0.88;
}

.footer-brand .hero-brand-logo {
  width: 48px;
  height: 48px;
}

.footer-brand .hero-brand-name {
  font-size: 1.125rem;
}

.footer-brand .hero-brand-tag {
  font-size: 0.625rem;
}

/* Terminal */
.dev-terminal-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  margin-bottom: 24px;
  padding: 10px 16px;
  background: rgba(10, 14, 20, 0.7);
  border: 1px solid var(--ide-border);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  max-width: fit-content;
}

.dev-terminal-line .prompt { color: var(--brand-light); }
.dev-terminal-line .path { color: var(--code-green); }
.dev-terminal-line .cmd {
  color: var(--text-primary);
  transition: opacity 0.2s ease;
}

.term-cursor {
  color: var(--brand-light);
  animation: blink 1s step-end infinite;
}

.dev-hero-content h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.dev-hero-content h1 .hero-tagline-comment {
  font-family: var(--mono);
  font-size: 0.55em;
  font-weight: 500;
  color: var(--code-green, #3dd68c);
  vertical-align: middle;
  margin-right: 0.15em;
}

.dev-hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--brand-light) 0%, #818cf8 50%, var(--code-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dev-hero-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 500px;
}

.dev-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn-glow {
  box-shadow: 0 0 24px var(--brand-glow), 0 4px 16px rgba(26, 143, 224, 0.25);
}

.btn-glow:hover {
  box-shadow: 0 0 36px var(--brand-glow), 0 8px 24px rgba(26, 143, 224, 0.35);
}

.dev-hero-actions .btn-outline {
  font-family: var(--mono);
  font-size: 0.875rem;
  border-color: var(--ide-border);
}

.dev-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.dev-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid var(--ide-border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dev-status-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--code-green);
  box-shadow: 0 0 8px var(--code-green);
  animation: pulse 2s infinite;
}

.dev-status-item strong {
  color: var(--brand-light);
  font-weight: 600;
}

/* ---- IDE ---- */
.ide-wrapper {
  position: relative;
}

.ide-glow-ring {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #6366f1, var(--code-green), var(--brand));
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  opacity: 0.6;
  z-index: 0;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.ide-window {
  position: relative;
  z-index: 1;
  background: var(--ide-bg);
  border: 1px solid var(--ide-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto 1fr auto auto;
}

.ide-titlebar,
.ide-breadcrumbs,
.ide-problems,
.ide-statusbar {
  grid-column: 1 / -1;
}

.ide-sidebar {
  grid-row: 3;
  grid-column: 1;
  background: #060a10;
  border-right: 1px solid var(--ide-border);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ide-main {
  grid-row: 3;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ide-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: #060a10;
  border-bottom: 1px solid var(--ide-border);
}

.ide-dot { width: 11px; height: 11px; border-radius: 50%; }
.ide-dot.r { background: #ff5f57; }
.ide-dot.y { background: #febc2e; }
.ide-dot.g { background: #28c840; }

.ide-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.ide-sidebar-item {
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  cursor: default;
  opacity: 0.5;
  transition: var(--transition);
}

.ide-sidebar-item.active {
  opacity: 1;
  color: var(--brand-light);
  border-right: 2px solid var(--brand);
}

.ide-tabs {
  display: flex;
  background: #060a10;
  border-bottom: 1px solid var(--ide-border);
  overflow-x: auto;
}

.ide-tab {
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  border-right: 1px solid var(--ide-border);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.ide-tab:hover { color: var(--text-secondary); }

.ide-tab.active {
  background: var(--ide-surface);
  color: var(--text-primary);
  border-top: 2px solid var(--brand);
}

.ide-tab .icon { margin-right: 5px; opacity: 0.5; }

.ide-body {
  display: flex;
  flex: 1;
  min-height: 300px;
  max-height: 340px;
  position: relative;
}

.ide-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
}

.ide-gutter {
  padding: 14px 0;
  background: #060a10;
  border-right: 1px solid var(--ide-border);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.6;
  color: #3d4555;
  text-align: right;
  user-select: none;
  min-width: 44px;
}

.ide-gutter span { display: block; padding: 0 10px; }
.ide-gutter span.active { color: #6b7280; }

.ide-code {
  flex: 1;
  padding: 14px 16px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: #abb2bf;
  background: var(--ide-surface);
}

.ide-code .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--brand-light);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

.ide-statusbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 14px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  font-family: var(--mono);
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.9);
}

.ide-statusbar-left,
.ide-statusbar-right {
  display: flex;
  gap: 14px;
  align-items: center;
}

.status-ok { color: #a7f3d0; }
.status-warn {
  color: #fde68a;
  animation: pulse 2s infinite;
}

/* Syntax */
.t-kw { color: var(--code-purple); }
.t-fn { color: #82aaff; }
.t-str { color: var(--code-green); }
.t-cm { color: #4a5568; font-style: italic; }
.t-num { color: var(--code-orange); }
.t-type { color: #ffcb6b; }
.t-var { color: #cdd6f4; }

@keyframes blink {
  50% { opacity: 0; }
}

/* ---- STACK ---- */
.dev-stack {
  padding: 18px 0;
  border-top: 1px solid var(--ide-border);
  border-bottom: 1px solid var(--ide-border);
  background: linear-gradient(180deg, #060a10, #0a0e14);
  overflow: hidden;
}

.dev-stack-track {
  display: flex;
  gap: 40px;
  animation: scrollStack 35s linear infinite;
  width: max-content;
}

.dev-stack-item {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.dev-stack-item::before {
  content: 'import ';
  color: var(--code-purple, #c792ea);
  opacity: 0.8;
}

.dev-stack-item::after {
  content: ';';
  color: var(--text-muted);
  opacity: 0.5;
}

@keyframes scrollStack {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- SERVICES ---- */
.dev-services {
  padding: 100px 0;
  position: relative;
}

.dev-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(26, 143, 224, 0.06), transparent 70%);
  pointer-events: none;
}

.dev-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dev-service-card {
  background: var(--ide-bg);
  border: 1px solid var(--ide-border);
  border-radius: 12px;
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.dev-service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 143, 224, 0.04), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.dev-service-card:hover {
  border-color: rgba(26, 143, 224, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 24px rgba(26, 143, 224, 0.08);
}

.dev-service-card:hover::after { opacity: 1; }

.dev-service-num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--brand);
  margin-bottom: 16px;
  position: relative;
}

.dev-service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
  position: relative;
}

.dev-service-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  position: relative;
}

.dev-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
}

.dev-service-tags span {
  font-family: var(--mono);
  font-size: 0.625rem;
  padding: 4px 8px;
  background: rgba(26, 143, 224, 0.08);
  border: 1px solid rgba(26, 143, 224, 0.15);
  border-radius: 4px;
  color: var(--brand-light);
}

/* ---- WORKFLOW ---- */
.dev-workflow {
  padding: 100px 0;
  background: linear-gradient(180deg, #060a10, #0a0e14);
  border-top: 1px solid var(--ide-border);
}

.dev-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.dev-pipeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--brand) 0, var(--brand) 5px, transparent 5px, transparent 12px);
  opacity: 0.25;
}

.pipeline-step { text-align: center; padding: 0 12px; }

.pipeline-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ide-bg);
  border: 1px solid var(--ide-border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--brand-light);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.pipeline-step:hover .pipeline-icon {
  border-color: var(--brand);
  box-shadow: 0 0 20px var(--brand-glow);
}

.pipeline-step h3 { font-size: 1rem; margin-bottom: 8px; }
.pipeline-step p { font-size: 0.8125rem; color: var(--text-secondary); }

/* ---- STATS ---- */
.dev-stats {
  padding: 80px 0;
  border-top: 1px solid var(--ide-border);
}

.dev-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dev-stat-box {
  padding: 32px 20px;
  background: var(--ide-bg);
  border: 1px solid var(--ide-border);
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
}

.dev-stat-box:hover {
  border-color: rgba(26, 143, 224, 0.35);
  box-shadow: 0 0 32px rgba(26, 143, 224, 0.08);
}

.dev-stat-box .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-light), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.dev-stat-box .label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- TESTIMONIALS ---- */
.dev-testimonials {
  padding: 100px 0;
  background: #060a10;
  border-top: 1px solid var(--ide-border);
}

.dev-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dev-testimonial {
  background: var(--ide-bg);
  border: 1px solid var(--ide-border);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition);
}

.dev-testimonial:hover {
  border-color: rgba(26, 143, 224, 0.3);
}

.dev-testimonial-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--text-muted);
}

.dev-testimonial blockquote {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: normal;
}

.dev-testimonial-author strong {
  color: var(--text-primary);
  display: block;
  font-size: 0.875rem;
}

.dev-testimonial-author span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ---- CTA ---- */
.dev-cta { padding: 100px 0; }

.dev-cta-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 40px;
  background: var(--ide-bg);
  border: 1px solid var(--ide-border);
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dev-cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(26, 143, 224, 0.1), transparent 60%);
}

.dev-cta-box::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(135deg, var(--brand), transparent, #6366f1);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.dev-cta-terminal {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--code-green);
  margin-bottom: 24px;
  position: relative;
}

.dev-cta-box h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 12px;
  position: relative;
}

.dev-cta-box p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  position: relative;
}

.dev-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .dev-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .ide-wrapper { max-width: 600px; margin: 0 auto; }
  .ide-sidebar { display: none; }
  .ide-window { grid-template-columns: 1fr; }
  .dev-services-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-pipeline { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .dev-pipeline::before { display: none; }
  .dev-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-brand-lockup { flex-direction: column; align-items: flex-start; }
  .dev-services-grid { grid-template-columns: 1fr; }
  .dev-pipeline { grid-template-columns: 1fr; }
  .dev-stats-grid { grid-template-columns: 1fr 1fr; }
  .ide-body { min-height: 260px; }
  .hero-orb { opacity: 0.5; }
}
