/* codestackify v2 — dark international theme */
:root {
  --c-bg: #070b14;
  --c-surface: #0f1629;
  --c-surface-2: #151d32;
  --c-border: #1e2a45;
  --c-text: #f1f5f9;
  --c-muted: #94a3b8;
  --c-muted-dim: #64748b;
  --c-accent: #818cf8;
  --c-cyan: #22d3ee;
  --c-gradient: linear-gradient(135deg, #6366f1, #22d3ee, #a78bfa);
  --c-gradient-text: linear-gradient(135deg, #a5b4fc, #67e8f9, #e9d5ff);
  --c-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --c-mono: "JetBrains Mono", ui-monospace, monospace;
  --c-max: 1160px;
  --c-header: 76px;
  --c-radius: 12px;
  --c-radius-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--c-font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% -5%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(34, 211, 238, 0.06), transparent);
  pointer-events: none;
  z-index: -1;
}

.container { max-width: var(--c-max); margin: 0 auto; padding: 0 1.5rem; }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--c-text);
}
.logo-mark {
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}
.logo-mark i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--c-gradient);
}
.logo-mark i:nth-child(1) { width: 100%; }
.logo-mark i:nth-child(2) { width: 70%; opacity: 0.8; }
.logo-mark i:nth-child(3) { width: 45%; opacity: 0.6; }
.logo-word {
  display: flex;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.logo-code { color: var(--c-text); }
.logo-stackify {
  background: var(--c-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
}
.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.97);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--c-header);
}
.header-nav-wrap { display: flex; align-items: center; gap: 1rem; position: relative; }

.site-header .nav-main .wp-block-navigation-item__content {
  color: var(--c-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-header .nav-main .wp-block-navigation-item__content:hover,
.site-header .nav-main .current-menu-item .wp-block-navigation-item__content {
  color: var(--c-text);
}

.nav-toggle {
  display: none;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 0.5rem;
  color: var(--c-text);
  cursor: pointer;
}

main.wp-block-group { padding-top: var(--c-header); }

/* Buttons */
.wp-block-button__link {
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button:not(.is-style-outline):not(.is-style-ghost) .wp-block-button__link {
  background: var(--c-gradient) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--c-text) !important;
  border: 1px solid var(--c-border) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--c-accent) !important;
  color: var(--c-accent) !important;
}
.wp-block-button.is-style-ghost .wp-block-button__link {
  background: transparent !important;
  color: var(--c-muted) !important;
  border: none !important;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--c-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--c-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--c-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--c-cyan);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  color: var(--c-text);
}
.text-gradient {
  background: var(--c-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--c-muted);
  max-width: 34rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--c-border);
}
.hero-meta span {
  display: block;
  font-size: 0.8rem;
  color: var(--c-muted-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--c-mono);
}
.hero-meta strong {
  font-size: 1rem;
  color: var(--c-text);
  font-weight: 600;
}

/* Globe / trust visual */
.hero-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  padding: 1.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.hero-card h3 {
  font-size: 0.75rem;
  font-family: var(--c-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: 1rem;
}
.region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.region-tag {
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  color: var(--c-muted);
}
.stat-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-border);
}
.stat-mini strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.02em;
}
.stat-mini span { font-size: 0.78rem; color: var(--c-muted); }

/* Sections */
.section { padding: 5rem 0; }
.section-header { margin-bottom: 3rem; max-width: 40rem; }
.section-header.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-label {
  font-family: var(--c-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-cyan);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.section-header p { color: var(--c-muted); font-size: 1.05rem; }

/* Tech grid */
.tech-section {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.tech-categories { display: flex; flex-direction: column; gap: 2rem; }
.tech-category h3 {
  font-size: 0.72rem;
  font-family: var(--c-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  margin-bottom: 0.85rem;
}
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tech-chip {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-text);
  transition: border-color 0.2s, background 0.2s;
}
.tech-chip:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.1);
}

/* Service cards */
.services-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.services-tab {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: var(--c-muted);
  border: 1px solid transparent;
  cursor: default;
}
.services-tab.is-active {
  color: var(--c-text);
  background: var(--c-surface-2);
  border-color: var(--c-border);
}

/* Service cards — wpstackify layout, dark theme */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.service-card.wp-block-group,
.services-grid .service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card.wp-block-group:hover,
.services-grid .service-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border: none;
}

.service-card h3,
.service-card .wp-block-heading {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.service-card > p:not(.service-card-icon) {
  color: var(--c-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.service-card ul,
.service-card .wp-block-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.service-card li {
  font-size: 0.875rem;
  color: var(--c-muted);
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-size: 0.75rem;
  font-weight: 700;
}

.service-card .wp-block-buttons {
  margin-top: auto;
}

.wp-block-button.is-style-small .wp-block-button__link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.section-elevated {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat-box {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
}
.stat-box strong {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--c-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-box span { font-size: 0.85rem; color: var(--c-muted); }

/* CTA */
.cta-block {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.2), transparent 60%);
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta-block p { color: var(--c-muted); max-width: 32rem; margin: 0 auto 1.5rem; }

/* Services page (wpstackify layout) */
.page-hero-compact {
  padding: calc(var(--c-header) + 3rem) 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--c-border);
}
.page-hero-compact h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.page-hero-compact p {
  color: var(--c-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.services-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.services-nav {
  position: sticky;
  top: calc(var(--c-header) + 1.5rem);
  align-self: start;
}
.services-nav h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.services-nav-group {
  font-family: var(--c-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-cyan);
  margin: 1.25rem 0 0.5rem;
}
.services-nav-group:first-of-type { margin-top: 0; }
.services-nav ul,
.services-nav-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.services-nav-contact {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}
.services-nav a {
  display: block;
  padding: 0.5rem 0;
  padding-left: 0.75rem;
  margin-left: -0.75rem;
  color: var(--c-muted);
  font-size: 0.9rem;
  border-left: 2px solid transparent;
  text-decoration: none;
}
.services-nav a:hover,
.services-nav a.active {
  color: var(--c-accent);
  border-left-color: var(--c-accent);
}

.service-detail {
  scroll-margin-top: calc(var(--c-header) + 1rem);
  padding: 3rem 0;
  border-bottom: 1px solid var(--c-border);
}
.service-detail:last-of-type { border-bottom: none; }
.services-contact-wrap.service-detail {
  border-bottom: none;
  padding: 0 0 4rem;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}
.service-detail-sidebar {
  position: sticky;
  top: calc(var(--c-header) + 1.5rem);
}
.service-detail-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.service-detail-sidebar h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.service-detail-tagline {
  color: var(--c-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.service-detail-meta {
  font-size: 0.85rem;
  color: var(--c-muted);
}
.service-detail-meta dt {
  font-weight: 600;
  color: var(--c-text);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}
.service-detail-meta dt:first-child { margin-top: 0; }

.service-detail-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.service-detail-content > p:first-child {
  color: var(--c-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.service-detail-content p {
  color: var(--c-muted);
  margin-bottom: 1rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.feature-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  padding: 1.25rem;
}
.feature-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--c-text);
}
.feature-item span {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.5;
}

.cta-band {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--c-radius-lg);
  padding: 3rem;
  text-align: center;
  margin: 0;
}
.cta-band h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta-band p {
  color: var(--c-muted);
  max-width: 480px;
  margin: 0 auto 1rem;
}
.cta-band p:last-of-type { margin-bottom: 1.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 4rem 0 2rem;
  background: var(--c-surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p { color: var(--c-muted); font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }
.footer-col h4 {
  font-family: var(--c-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted-dim);
  margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { font-size: 0.9rem; color: var(--c-muted); }
.footer-col a:hover { color: var(--c-cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  font-size: 0.85rem;
  color: var(--c-muted-dim);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-header .nav-main {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    flex-direction: column;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    padding: 1rem;
    min-width: 200px;
  }
  .site-header .nav-main.open { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .services-layout,
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  .service-detail-sidebar,
  .services-nav {
    position: static;
  }
  .services-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  .services-nav ul,
  .services-nav-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border: none;
    margin: 0;
    padding: 0;
  }
  .services-nav-group {
    width: 100%;
    margin-top: 0.75rem;
  }
  .services-nav a {
    border: 1px solid var(--c-border);
    border-radius: 100px;
    padding: 0.35rem 0.85rem;
    margin: 0;
    font-size: 0.8rem;
    border-left: 1px solid var(--c-border);
  }
  .services-nav a.active,
  .services-nav a:hover {
    border-color: var(--c-accent);
  }
  .stats-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
