/* ==========================================================================
   KYZEN — MODERN DESIGN SYSTEM (VANILLA CSS)
   Creator • Gaming • Digital Growth Agency
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Brand Colors */
  --bg-main: #0a0d0c;
  --bg-secondary: #0f1412;
  --bg-tertiary: #141c18;
  --bg-card: rgba(18, 24, 21, 0.75);
  --bg-card-hover: rgba(22, 32, 27, 0.9);
  
  /* Accent Emerald Palette (Matching KYZEN Logo Arrow) */
  --accent: #00B67A;
  --accent-light: #00e599;
  --accent-dark: #008a5c;
  --accent-glow: rgba(0, 182, 122, 0.25);
  --accent-soft: rgba(0, 182, 122, 0.1);
  --accent-border: rgba(0, 182, 122, 0.35);

  /* Neutrals & Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--accent-glow);
  --shadow-glow-lg: 0 0 45px rgba(0, 182, 122, 0.35);

  /* Layout */
  --max-w: 1240px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Radial Glow Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 50% 0%, rgba(0, 182, 122, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(0, 182, 122, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 15% 70%, rgba(0, 182, 122, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Global Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-light);
}

/* Text Gradient / Accent Helper */
.text-accent {
  color: var(--accent);
}

.text-white {
  color: #ffffff;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Header Structure */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.15rem;
}

/* Section Spacing */
.section-py {
  padding: 100px 0;
}

.section-py-sm {
  padding: 60px 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #03140e;
  font-weight: 700;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #03140e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-highlight);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Selected work card gets a clear light-green click state. */
.work-project-card {
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.work-project-card.selected {
  border-color: var(--accent-light);
  background: rgba(0, 182, 122, 0.055);
  box-shadow: 0 0 0 1px rgba(0, 182, 122, 0.22), 0 10px 30px rgba(0, 182, 122, 0.08);
}

.work-project-card.selected .work-badge-tag {
  background: rgba(0, 182, 122, 0.16);
  border-color: var(--accent-light);
  color: var(--accent-light);
}

/* Active portfolio filter keeps the selected click point clearly highlighted. */
.filter-btn.active {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #03140e;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.filter-btn.active:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #03140e;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
}

.btn-outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-icon {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   NAVIGATION / HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(10, 13, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(10, 13, 12, 0.95);
  border-bottom-color: rgba(0, 182, 122, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: rgba(12, 16, 14, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .nav-link {
  font-size: 1.1rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  padding: 110px 0 55px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at center, rgba(0, 182, 122, 0.15) 0%, rgba(18, 24, 21, 0.8) 70%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow), var(--shadow-md);
  backdrop-filter: blur(12px);
}

.hero-badge-card img {
  max-width: 70%;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(0, 182, 122, 0.4));
  transition: transform var(--transition-smooth);
}

.hero-badge-card:hover img {
  transform: scale(1.04);
}

.hero-stat-floating {
  position: absolute;
  background: rgba(15, 20, 18, 0.9);
  border: 1px solid var(--border-highlight);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-stat-1 {
  top: -15px;
  right: -15px;
}

.hero-stat-2 {
  bottom: -15px;
  left: -15px;
}

.stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ==========================================================================
   CARDS & GRIDS (MODERN GLASSMORPHISM)
   ========================================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 22px;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.card-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Deliverables Pill List */
.deliverables-list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deliverables-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #e2e8f0;
}

.deliverables-list li svg,
.deliverables-list li i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ==========================================================================
   PROCESS / STEP CARDS
   ========================================================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: all var(--transition-smooth);
}

.process-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.process-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}

.process-card h4 {
  margin-bottom: 8px;
  color: #ffffff;
}

.process-card p {
  font-size: 0.9rem;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  background: rgba(14, 18, 16, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: rgba(18, 24, 21, 0.95);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300B67A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

select.form-control option {
  background: #0f1412;
  color: #ffffff;
}

.form-text {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.form-errors {
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 6px;
  list-style: none;
}

/* File Upload Box */
.file-upload-box {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: rgba(14, 18, 16, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.file-upload-box:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

/* ==========================================================================
   ALERTS & FLASH TOASTS
   ========================================================================== */

.flash-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  animation: slideInRight 0.3s ease-out;
}

.alert-success {
  background: rgba(6, 78, 59, 0.9);
  border: 1px solid var(--accent);
  color: #ecfdf5;
}

.alert-warning {
  background: rgba(120, 53, 15, 0.9);
  border: 1px solid #f59e0b;
  color: #fffbeb;
}

.alert-danger {
  background: rgba(127, 29, 29, 0.9);
  border: 1px solid #ef4444;
  color: #fef2f2;
}

.alert-info {
  background: rgba(30, 58, 138, 0.9);
  border: 1px solid #3b82f6;
  color: #eff6ff;
}

.alert-close {
  background: transparent;
  border: none;
  color: currentColor;
  cursor: pointer;
  opacity: 0.7;
  font-size: 1.1rem;
}

.alert-close:hover {
  opacity: 1;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   ACCORDION (FAQ)
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.faq-item:hover,
.faq-item.active {
  border-color: var(--accent-border);
}

.faq-question {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  user-select: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #03140e;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  padding: 0 26px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 24px;
}

/* ==========================================================================
   PORTFOLIO & CASE STUDY CARDS
   ========================================================================== */

.work-badge-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.badge-selected {
  background: rgba(0, 182, 122, 0.2);
  color: var(--accent-light);
  border: 1px solid var(--accent);
}

.badge-concept {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid var(--border-highlight);
}

/* ==========================================================================
   FINAL CTA BANNER
   ========================================================================== */

.final-cta {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 50%, rgba(0, 182, 122, 0.2) 0%, rgba(15, 20, 18, 0.95) 75%);
  border: 1px solid var(--accent-border);
  padding: 80px 40px;
  text-align: center;
  box-shadow: var(--shadow-glow-lg);
  overflow: hidden;
}

.final-cta-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.final-cta-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}

.final-cta-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 36px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: var(--text-dim);
}

.footer-legal-links a:hover {
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .final-cta {
    padding: 50px 24px;
  }

  /* Hero badge card and floating stats on mobile */
  .hero-badge-card {
    max-width: 320px;
    margin: 0 auto;
    padding: 24px;
    transform: none !important;
  }

  .hero-badge-card::after {
    display: none !important;
  }

  .hero-stat-floating {
    padding: 8px 14px;
    gap: 10px;
    border-radius: 12px;
    z-index: 10;
  }

  .hero-stat-1 {
    top: 10px;
    right: -8px;
  }

  .hero-stat-2 {
    bottom: 10px;
    left: -8px;
  }

  .hero-stat-floating .stat-icon-wrap {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
  }

  .hero-stat-floating div div:first-child {
    font-size: 0.78rem !important;
  }

  .hero-stat-floating div div:last-child {
    font-size: 0.68rem !important;
  }
}

/* ==========================================================================
   KYZEN — ASSET & CODE PROTECTION UTILITIES
   ========================================================================== */
img, svg, .brand-logo, .nav-links, .hero-badge, .card, .btn {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

::selection {
  background: var(--accent);
  color: #000;
}

::-moz-selection {
  background: var(--accent);
  color: #000;
}

input, textarea, select {
  -webkit-user-select: text !important;
  user-select: text !important;
}



/* ============================================================================
   KYZEN MOTION SYSTEM — REFINED 3D / MICRO-INTERACTIONS
   Same existing palette. Motion varies by component instead of repeating one effect.
   ============================================================================ */

:root {
  --motion-perspective: 1200px;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  perspective: var(--motion-perspective);
}

/* --- Scroll reveals: each component gets its own entrance language ---
   Progressive enhancement: elements are FULLY VISIBLE by default. They are
   only hidden for the fade-in animation once the 'js-anim' class confirms
   JavaScript actually ran on this device/browser. This guarantees content
   is never invisible if JS is blocked, stripped by a data-saver proxy, or
   fails for any reason on a given phone/browser. */
.motion-reveal {
  opacity: 1;
  transition: opacity 0.75s var(--motion-ease), transform 0.85s var(--motion-ease), filter 0.85s var(--motion-ease);
  will-change: opacity, transform;
}

html.js-anim .motion-reveal {
  opacity: 0;
}
html.js-anim .motion-reveal.is-visible {
  opacity: 1;
}


.motion-section {
  transform: translate3d(0, 34px, 0);
}
.motion-section.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }

.motion-card {
  transform: translate3d(0, 26px, 0) scale(0.985);
}
.motion-card.is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }

.motion-card:nth-child(odd) { transform: translate3d(-22px, 24px, 0) scale(0.985); }
.motion-card:nth-child(even) { transform: translate3d(22px, 24px, 0) scale(0.985); }
.motion-card.is-visible:nth-child(n) { transform: translate3d(0, 0, 0) scale(1); }

.motion-process {
  transform: translate3d(0, 42px, 0) rotateX(5deg);
  transform-origin: center bottom;
}
.motion-process.is-visible { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0); }

.motion-faq {
  transform: translate3d(18px, 0, 0);
}
.motion-faq.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }

.motion-cta {
  transform: translate3d(0, 30px, 0) scale(0.97);
}
.motion-cta.is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }

.motion-delay-1 { transition-delay: 70ms; }
.motion-delay-2 { transition-delay: 140ms; }
.motion-delay-3 { transition-delay: 210ms; }
.motion-delay-4 { transition-delay: 280ms; }
.motion-delay-5 { transition-delay: 350ms; }
.motion-delay-6 { transition-delay: 420ms; }

/* --- Physical 3D surfaces --- */
.card,
.process-card,
.hero-badge-card,
.final-cta,
.faq-item {
  transform-style: preserve-3d;
  will-change: transform;
}

.card,
.process-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.55s var(--motion-ease),
    border-color 0.35s var(--motion-ease),
    box-shadow 0.55s var(--motion-ease);
}

.card::after,
.process-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), var(--accent-soft), transparent 68%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.card:hover::after,
.process-card:hover::after { opacity: 1; }

/* Process cards read as a connected journey on desktop instead of a loose card wall. */
.process-card:nth-child(1)::before,
.process-card:nth-child(2)::before,
.process-card:nth-child(3)::before,
.process-card:nth-child(5)::before,
.process-card:nth-child(6)::before,
.process-card:nth-child(7)::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -21px;
  width: 21px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-border), transparent);
  opacity: 0.72;
  pointer-events: none;
}

.process-card:nth-child(1)::before,
.process-card:nth-child(2)::before,
.process-card:nth-child(3)::before,
.process-card:nth-child(5)::before,
.process-card:nth-child(6)::before,
.process-card:nth-child(7)::before {
  box-shadow: 6px 0 14px var(--accent-soft);
}
.card:hover,
.process-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Cards use a quiet lift; process cards use a deeper perspective. */
.motion-tilt-card { transform-style: preserve-3d; }
.motion-tilt-process { transform-style: preserve-3d; }
.motion-tilt-cta { transform-style: preserve-3d; }

/* --- Hero: layered depth + logo rotation --- */
.hero-visual {
  perspective: 1400px;
  position: relative;
}

.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 12%;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.32;
  transform: rotate(-18deg) scaleX(1.08);
  animation: kyzen-orbit 18s linear infinite;
}
.hero-visual::after {
  inset: 22%;
  opacity: 0.18;
  transform: rotate(22deg) scaleX(0.82);
  animation-duration: 24s;
  animation-direction: reverse;
}

.hero-badge-card {
  position: relative;
  animation: kyzen-float 7s ease-in-out infinite;
}

.hero-badge-card::before {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1px solid var(--accent-border);
  border-radius: inherit;
  transform: translateZ(-1px);
  opacity: 0.55;
  pointer-events: none;
}

.kyzen-logo--hero {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  backface-visibility: visible;
  animation: kyzen-logo-spin 7s linear infinite;
  filter: drop-shadow(0 14px 28px var(--accent-glow));
  transition: filter 0.4s ease, transform 0.5s var(--motion-ease);
}
.hero-badge-card:hover .kyzen-logo--hero {
  animation-play-state: paused;
  filter: drop-shadow(0 18px 34px var(--accent-glow));
  transform: scale(1.045) rotateY(12deg);
}

.kyzen-logo--nav,
.kyzen-logo--footer {
  transform-style: preserve-3d;
  backface-visibility: visible;
  transition: transform 0.65s var(--motion-ease), filter 0.4s ease;
}
.brand-logo:hover .kyzen-logo--nav,
.footer-brand .brand-logo:hover .kyzen-logo--footer {
  transform: rotateY(360deg) scale(1.06);
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.hero-stat-floating {
  transition: transform 0.55s var(--motion-ease), box-shadow 0.4s var(--motion-ease);
  animation: kyzen-float-small 5.8s ease-in-out infinite;
}
.hero-stat-2 { animation-delay: -2.6s; }

@keyframes kyzen-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg); }
  50% { transform: translate3d(0, -9px, 0) rotateX(1deg) rotateY(-1.2deg); }
}
@keyframes kyzen-float-small {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}
@keyframes kyzen-logo-spin {
  0% { transform: rotateY(0deg) rotateZ(0deg); }
  50% { transform: rotateY(180deg) rotateZ(2deg); }
  100% { transform: rotateY(360deg) rotateZ(0deg); }
}
@keyframes kyzen-orbit {
  from { transform: rotate(-18deg) scaleX(1.08); }
  to { transform: rotate(342deg) scaleX(1.08); }
}

/* --- Header/nav: subtle depth, not the same card animation --- */
.site-header {
  transform: translateZ(0);
  will-change: background, box-shadow, transform;
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--motion-ease);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  transform: scaleX(1);
}

/* --- Buttons: tactile shine, distinct from cards --- */
.btn {
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.12) 48%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.65s var(--motion-ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translate3d(0, -3px, 0) scale(1.01); }
.btn:active { transform: translate3d(0, 0, 0) scale(0.98); }

/* --- Hero background text effect: left side only (keeps the logo area untouched) --- */
.hero-content {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-content::before {
  content: "KYZEN  •  CREATORS  •  DIGITAL  •  GROWTH";
  position: absolute;
  left: -10%;
  top: 12%;
  width: 125%;
  z-index: -1;
  pointer-events: none;
  white-space: nowrap;
  font-size: clamp(3.8rem, 7vw, 8rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 182, 122, 0.075);
  opacity: 0.9;
  transform: rotate(-7deg) translateX(-3%);
  animation: hero-bg-text-drift 14s ease-in-out infinite alternate;
}
.hero-content::after {
  content: "KYZEN";
  position: absolute;
  left: 8%;
  top: 30%;
  z-index: -1;
  pointer-events: none;
  font-size: clamp(6rem, 13vw, 13rem);
  line-height: 0.8;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.012);
  text-shadow: 0 0 40px rgba(0, 182, 122, 0.08);
  transform: translateZ(0);
  animation: hero-bg-text-pulse 6s ease-in-out infinite;
}
@keyframes hero-bg-text-drift {
  from { transform: rotate(-7deg) translate3d(-3%, 0, 0); }
  to { transform: rotate(-7deg) translate3d(3%, -8px, 0); }
}
@keyframes hero-bg-text-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1) translate3d(0, 0, 0); }
  50% { opacity: 1; transform: scale(1.025) translate3d(8px, -4px, 0); }
}

/* --- Hero text entrance --- */
.hero-content > * {
  animation: kyzen-enter 0.85s var(--motion-ease) both;
}
.hero-content > *:nth-child(2) { animation-delay: 80ms; }
.hero-content > *:nth-child(3) { animation-delay: 160ms; }
.hero-content > *:nth-child(4) { animation-delay: 240ms; }
@keyframes kyzen-enter {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* --- Media gets a cinematic crop instead of a universal zoom --- */
.card img,
.work-card img,
.team-card img {
  transition: transform 0.75s var(--motion-ease), filter 0.55s ease;
  transform: translateZ(0) scale(1);
}
.card:hover img,
.work-card:hover img,
.team-card:hover img {
  transform: translateZ(10px) scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .motion-reveal,
  .motion-card,
  .motion-process,
  .motion-faq,
  .motion-cta {
    opacity: 1;
    transform: none !important;
  }
}


/* ========================================================================
   KYZEN PREMIUM MOTION LAYER — additive frontend enhancement
   ======================================================================== */
.brand-motion-logo {
  transform-origin: 50% 50%;
  animation: kyzenLogoFloat 5.5s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
  will-change: transform;
}
.brand-logo:hover .brand-motion-logo {
  transform: perspective(500px) rotateY(180deg) rotateX(8deg) scale(1.05);
  filter: drop-shadow(0 0 12px var(--accent-glow));
}
@keyframes kyzenLogoFloat {
  0%, 100% { transform: perspective(700px) rotateY(-7deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(700px) rotateY(7deg) rotateX(-2deg) translateY(-3px); }
}

.kyzen-ai-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-main);
  padding-top: 55px;
}
.kyzen-ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 72px;
}
.kyzen-ai-copy { max-width: 560px; }
.kyzen-ai-points { display: grid; gap: 12px; margin-top: 28px; }
.kyzen-ai-point {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.kyzen-ai-point-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.kyzen-ai-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  perspective: 1100px;
  transform-style: preserve-3d;
  isolation: isolate;
}
.kyzen-ai-stage::before {
  content: '';
  position: absolute;
  width: 58%; height: 58%;
  border-radius: 50%;
  background: var(--accent-glow);
  filter: blur(70px);
  opacity: 0.45;
  z-index: -2;
  animation: aiPulse 4.8s ease-in-out infinite;
}
.kyzen-ai-grid {
  position: absolute;
  inset: 7%;
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  transform: rotateX(58deg) rotateZ(-12deg) translateZ(-70px);
  background-image: linear-gradient(var(--border-subtle) 1px, transparent 1px), linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle, black 25%, transparent 76%);
  opacity: 0.55;
}
.kyzen-ai-orbit {
  position: absolute;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  transform-style: preserve-3d;
  pointer-events: none;
}
.kyzen-ai-orbit-a { width: 330px; height: 150px; transform: rotateX(70deg) rotateZ(18deg); animation: orbitA 8s linear infinite; }
.kyzen-ai-orbit-b { width: 380px; height: 190px; transform: rotateY(65deg) rotateZ(-24deg); animation: orbitB 11s linear infinite reverse; opacity: 0.75; }
.kyzen-ai-orbit-c { width: 250px; height: 250px; transform: rotateX(66deg) rotateY(18deg); animation: orbitC 14s linear infinite; opacity: 0.55; }
.kyzen-ai-core {
  position: relative;
  width: 230px; height: 230px;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: coreFloat 5.5s ease-in-out infinite;
}
.kyzen-ai-core::before, .kyzen-ai-core::after {
  content: '';
  position: absolute; inset: 16px;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  transform: translateZ(35px);
}
.kyzen-ai-core::after { inset: 32px; transform: translateZ(-35px); opacity: 0.5; }
.kyzen-ai-core-ring {
  position: absolute; inset: 28px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  box-shadow: 0 0 24px var(--accent-glow), inset 0 0 24px var(--accent-soft);
  animation: ringSpin 7s linear infinite;
}
.kyzen-ai-core-ring-2 { inset: 52px; border-style: dashed; animation-duration: 4.5s; animation-direction: reverse; opacity: 0.7; }
.kyzen-ai-core-center {
  position: absolute; inset: 73px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-border);
  box-shadow: 0 0 45px var(--accent-glow), inset 0 0 24px rgba(255,255,255,0.03);
  transform: translateZ(55px);
}
.kyzen-ai-core-center span { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; color: var(--accent-light); text-shadow: 0 0 22px var(--accent); }
.kyzen-ai-node {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-light); box-shadow: 0 0 16px var(--accent);
  transform: translateZ(80px);
  animation: nodePulse 2.2s ease-in-out infinite;
}
.node-1 { top: 8px; left: 50%; }
.node-2 { right: 14px; top: 46%; animation-delay: -0.5s; }
.node-3 { bottom: 14px; left: 26%; animation-delay: -1s; }
.node-4 { left: 12px; top: 28%; animation-delay: -1.5s; }
.kyzen-ai-label {
  position: absolute;
  padding: 7px 11px;
  border: 1px solid var(--border-highlight);
  background: rgba(10,13,12,0.62);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.kyzen-ai-label-top { top: 8%; right: 2%; animation: labelFloat 4s ease-in-out infinite; }
.kyzen-ai-label-bottom { bottom: 8%; left: 2%; animation: labelFloat 4.8s ease-in-out infinite reverse; }

.reveal-left, .reveal-right { opacity: 1; transform: translate3d(0, 28px, 0); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal-right { transform: translate3d(28px, 0, 0) rotateY(-8deg); }
html.js-anim .reveal-left, html.js-anim .reveal-right { opacity: 0; }
html.js-anim .reveal-left.is-visible, html.js-anim .reveal-right.is-visible { opacity: 1; transform: translate3d(0,0,0) rotateY(0); }
[data-tilt-strength] { transform-style: preserve-3d; }

@keyframes aiPulse { 0%,100%{transform:scale(.88);opacity:.28} 50%{transform:scale(1.08);opacity:.55} }
@keyframes orbitA { to { transform: rotateX(70deg) rotateZ(378deg); } }
@keyframes orbitB { to { transform: rotateY(425deg) rotateZ(-24deg); } }
@keyframes orbitC { to { transform: rotateX(66deg) rotateY(378deg); } }
@keyframes coreFloat { 0%,100%{transform:translateY(0) rotateZ(0)} 50%{transform:translateY(-10px) rotateZ(4deg)} }
@keyframes ringSpin { to { transform: rotateZ(360deg) rotateX(12deg); } }
@keyframes nodePulse { 0%,100%{transform:translateZ(80px) scale(.8);opacity:.55} 50%{transform:translateZ(95px) scale(1.25);opacity:1} }
@keyframes labelFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }

  .process-card::before { display: none; }

  .kyzen-ai-layout { grid-template-columns: 1fr; gap: 24px; }
  .kyzen-ai-copy { max-width: 760px; margin: 0 auto; text-align: center; }
  .kyzen-ai-points { justify-items: center; }
  .kyzen-ai-stage { min-height: 460px; }
}
@media (max-width: 600px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .kyzen-ai-stage { min-height: 350px; transform: scale(.82); margin: -35px 0; }
  .kyzen-ai-orbit-a { width: 300px; height: 135px; }
  .kyzen-ai-orbit-b { width: 330px; height: 165px; }
  .kyzen-ai-label { font-size: .58rem; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-motion-logo, .kyzen-ai-stage *, .kyzen-ai-stage::before { animation: none !important; }
  .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
}


/* Brand social icons
   Inline SVGs keep the social marks available without adding another icon library. */
.social-brand-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  vertical-align: middle;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.social-brand-icon--sm {
  width: 14px;
  height: 14px;
}

.social-brand-icon--team {
  width: 18px;
  height: 18px;
}

a:hover .social-brand-icon {
  transform: translateY(-1px) scale(1.06);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
}

/* The home logo is also a smooth-scroll control when the user is already on home. */
.js-scroll-top-logo {
  cursor: pointer;
}

/* ============================================================================
   KYZEN PREMIUM REAL-WORLD AGENCY LAYER
   Visual-only refinement. Keeps the existing structure, content and backend.
   ============================================================================ */

:root {
  --premium-surface: rgba(14, 19, 17, 0.88);
  --premium-surface-2: rgba(17, 23, 20, 0.94);
  --premium-line: rgba(255, 255, 255, 0.10);
  --premium-line-strong: rgba(255, 255, 255, 0.15);
  --premium-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 182, 122, 0.10), transparent 38%),
    linear-gradient(180deg, #080b0a 0%, #0a0d0c 42%, #080b0a 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

/* A calmer, more physical navigation bar */
@media (min-width: 900px) {
  .site-header {
    top: 12px;
    left: 18px;
    width: calc(100% - 36px);
    height: 68px;
    border: 1px solid var(--premium-line);
    border-radius: 18px;
    background: rgba(8, 11, 10, 0.76);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  }

  .site-header.scrolled {
    background: rgba(8, 11, 10, 0.92);
    border-color: rgba(0, 182, 122, 0.20);
  }

  .nav-container { padding-left: 18px; padding-right: 18px; }
  .nav-links { gap: 22px; }
  .nav-link { font-size: 0.88rem; }
}

/* Hero becomes an editorial agency landing page rather than a generic tech block. */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 88px 0 72px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 182, 122, 0.13), rgba(0, 182, 122, 0.03) 42%, transparent 70%);
  filter: blur(4px);
  pointer-events: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(48px, 7vw, 100px);
}

.hero-badge {
  background: rgba(0, 182, 122, 0.07);
  border-color: rgba(0, 182, 122, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.hero-title {
  max-width: 780px;
  font-size: clamp(3.1rem, 6vw, 5.4rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero-subtitle {
  max-width: 620px;
  font-size: 1.08rem;
  color: #aab7b2;
}

.hero-ctas .btn { min-height: 54px; }

.hero-visual {
  perspective: 1200px;
  min-height: 520px;
}

.hero-badge-card {
  max-width: 500px;
  aspect-ratio: 0.92 / 1;
  border-radius: 28px;
  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 182, 122, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(24, 32, 28, 0.95), rgba(8, 12, 10, 0.94));
  box-shadow: var(--premium-shadow), inset 0 1px 0 rgba(255,255,255,.05);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 500ms cubic-bezier(.16,1,.3,1), border-color 300ms ease;
  overflow: visible;
}

.hero-badge-card::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  pointer-events: none;
}

.hero-badge-card::after {
  content: none;
  display: none;
}

.hero-badge-card:hover {
  transform: rotateY(-1deg) rotateX(0) translateY(-5px);
  border-color: rgba(0, 182, 122, 0.30);
}

.hero-badge-card img {
  max-width: 58%;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.55)) drop-shadow(0 0 28px rgba(0,182,122,.28));
}

.hero-stat-floating {
  background: rgba(10, 14, 12, 0.90);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 18px 36px rgba(0,0,0,.30);
}

.hero-stat-1 { top: 34px; right: -30px; }
.hero-stat-2 { bottom: 34px; left: -30px; }

/* Section rhythm and cards: more premium, less synthetic */
.section-py { padding: 88px 0; }
.section-py-sm { padding: 54px 0; }
.section-header { margin-bottom: 46px; }
.section-desc { color: #9ca9a4; }

.card,
.process-card {
  background: linear-gradient(145deg, rgba(18,24,21,.94), rgba(11,15,13,.92));
  border-color: var(--premium-line);
  box-shadow: 0 12px 34px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.025);
}

.card::before,
.process-card::before {
  opacity: .32;
}

.card:hover,
.process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 182, 122, 0.32);
  box-shadow: 0 22px 48px rgba(0,0,0,.28), 0 0 0 1px rgba(0,182,122,.05);
}

.card-icon {
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(0,182,122,.16), rgba(0,182,122,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

/* Work / case-study cards get a more editorial case-study feel. */
.work-project-card {
  min-height: 100%;
  border-radius: 20px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(17,23,20,.96), rgba(10,14,12,.96));
}

.work-project-card.selected {
  border-color: #00e599;
  background:
    linear-gradient(180deg, rgba(0,182,122,.075), rgba(10,14,12,.96));
  box-shadow: 0 0 0 1px rgba(0,229,153,.22), 0 24px 60px rgba(0,182,122,.10);
}

.work-project-card.selected::after {
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(0,229,153,.45), transparent);
}

.filter-btn {
  border-radius: 999px;
  padding-left: 18px;
  padding-right: 18px;
}

.filter-btn.active {
  box-shadow: 0 8px 24px rgba(0,182,122,.16), inset 0 1px 0 rgba(255,255,255,.16);
}

/* AI section: preserve the 3D system but place it inside a real product panel. */
.kyzen-ai-section {
  position: relative;
  overflow: hidden;
}

.kyzen-ai-layout {
  gap: 70px;
}

.kyzen-ai-stage {
  min-height: 520px;
  border-radius: 28px;
  border-color: rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 50% 50%, rgba(0,182,122,.10), transparent 35%),
    linear-gradient(145deg, rgba(18,24,21,.96), rgba(8,12,10,.96));
  box-shadow: var(--premium-shadow), inset 0 1px 0 rgba(255,255,255,.04);
}

/* Footer gets stronger hierarchy without adding new content. */
.site-footer {
  border-top-color: rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(9,12,11,.72), #070a09);
}

.footer-col-title { letter-spacing: .02em; }
.footer-links a { transition: transform .2s ease, color .2s ease; }
.footer-links a:hover { transform: translateX(3px); }

/* Buttons feel tactile rather than overly animated. */
.btn {
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.btn-primary {
  box-shadow: 0 10px 28px rgba(0,182,122,.16), inset 0 1px 0 rgba(255,255,255,.18);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(0,182,122,.22), inset 0 1px 0 rgba(255,255,255,.20);
}

/* Keep the design realistic on tablets and phones. */
@media (max-width: 1100px) {
  .nav-links { gap: 15px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { max-width: 760px; }
  .hero-visual { min-height: 440px; margin-top: 10px; }
  .hero-badge-card { max-width: 460px; }
  .hero-stat-1 { right: 4%; }
  .hero-stat-2 { left: 4%; }
}

@media (max-width: 720px) {
  .hero { min-height: auto; padding: 62px 0 54px; }
  .hero-title { font-size: clamp(2.55rem, 12vw, 4rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-visual { min-height: 360px; }
  .hero-badge-card { max-width: 390px; border-radius: 22px; }
  .hero-stat-floating { padding: 10px 12px; transform: scale(.90); }
  .hero-stat-1 { top: 12px; right: -2px; }
  .hero-stat-2 { bottom: 10px; left: -2px; }
  .section-py { padding: 68px 0; }
  .work-project-card { padding: 26px; }
}

/* Discord community callout */
.discord-community-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px;
  border: 1px solid rgba(88, 101, 242, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(0, 0, 0, 0.22));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.discord-community-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: rgba(88, 101, 242, 0.14);
  filter: blur(10px);
  pointer-events: none;
}

.discord-community-content {
  position: relative;
  z-index: 1;
}

.discord-community-kicker {
  margin-bottom: 8px;
  color: #8f9cff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.discord-community-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.discord-community-text {
  max-width: 680px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.discord-community-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 13px 18px;
  border: 1px solid rgba(88, 101, 242, 0.5);
  border-radius: 10px;
  background: #5865f2;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.discord-community-action:hover {
  transform: translateY(-2px);
  background: #6875f5;
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.28);
}

.discord-community-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

@media (max-width: 700px) {
  .discord-community-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .discord-community-action {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   KYZEN 3D CRYSTAL — cinematic hero object
   Pure CSS: a floating glass/energy prism replaces the old robot figure.
   -------------------------------------------------------------------------- */
.kyzen-3d-crystal {
  position: absolute;
  width: 360px;
  height: 390px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateZ(90px);
  transform-style: preserve-3d;
  perspective: 900px;
  animation: kyzenCrystalFloat 6.5s ease-in-out infinite;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 30px 42px rgba(0,0,0,.46));
}

.crystal-aura {
  position: absolute;
  width: 250px;
  height: 250px;
  left: 55px;
  top: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,182,122,.20) 0, rgba(0,182,122,.08) 34%, transparent 70%);
  filter: blur(10px);
  animation: crystalAura 4.8s ease-in-out infinite;
}

.crystal-prism {
  position: absolute;
  width: 170px;
  height: 170px;
  left: 95px;
  top: 102px;
  transform-style: preserve-3d;
  transform: rotateX(-12deg) rotateY(28deg) rotateZ(-4deg);
  animation: crystalSpin 12s linear infinite;
}

.crystal-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(50% 0%, 100% 25%, 86% 84%, 50% 100%, 14% 84%, 0% 25%);
  border: 1px solid rgba(220,255,242,.28);
  backface-visibility: visible;
}
.crystal-face::after {
  content: '';
  position: absolute;
  inset: 10%;
  background: linear-gradient(135deg, rgba(255,255,255,.26), transparent 28%, transparent 62%, rgba(0,182,122,.24));
  clip-path: polygon(50% 0, 100% 25%, 86% 84%, 50% 100%, 14% 84%, 0 25%);
}
.crystal-face-front {
  background: linear-gradient(145deg, rgba(226,255,245,.82), rgba(23,93,72,.82) 35%, rgba(3,31,23,.96) 76%);
  box-shadow: inset 16px 10px 28px rgba(255,255,255,.24), inset -24px -22px 36px rgba(0,0,0,.48), 0 0 42px rgba(0,182,122,.28);
  transform: translateZ(54px);
}
.crystal-face-front span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  color: #d9fff0;
  font: 800 4.7rem/1 var(--font-heading);
  text-shadow: 0 0 12px rgba(0,182,122,.9), 0 0 34px rgba(0,182,122,.62);
  transform: translateZ(2px);
}
.crystal-face-right {
  background: linear-gradient(155deg, rgba(73,169,139,.76), rgba(5,37,28,.96));
  transform: rotateY(90deg) translateZ(54px);
}
.crystal-face-left {
  background: linear-gradient(205deg, rgba(145,230,205,.54), rgba(4,30,23,.98));
  transform: rotateY(-90deg) translateZ(54px);
}
.crystal-face-top {
  background: linear-gradient(135deg, rgba(220,255,245,.72), rgba(8,74,54,.88));
  transform: rotateX(90deg) translateZ(54px);
}
.crystal-face-bottom {
  background: linear-gradient(135deg, rgba(2,30,22,.96), rgba(35,114,89,.72));
  transform: rotateX(-90deg) translateZ(54px);
}
.crystal-core-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  left: 79px;
  top: 79px;
  border-radius: 50%;
  background: #d9fff0;
  box-shadow: 0 0 12px #b9ffe5, 0 0 34px rgba(0,182,122,.95);
  transform: translateZ(62px);
  animation: corePulse 2.2s ease-in-out infinite;
}

.crystal-orbit {
  position: absolute;
  left: 65px;
  top: 112px;
  width: 230px;
  height: 150px;
  border: 1px solid rgba(0,182,122,.48);
  border-radius: 50%;
  transform-style: preserve-3d;
  box-shadow: 0 0 20px rgba(0,182,122,.08);
}
.crystal-orbit::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  left: 50%;
  top: -4px;
  border-radius: 50%;
  background: #b9ffe5;
  box-shadow: 0 0 12px rgba(0,182,122,.95);
}
.crystal-orbit-1 { transform: rotateX(68deg) rotateZ(18deg); animation: crystalOrbit1 7s linear infinite; }
.crystal-orbit-2 { width: 250px; height: 178px; left: 55px; top: 98px; transform: rotateY(67deg) rotateZ(-22deg); animation: crystalOrbit2 10s linear infinite reverse; opacity: .7; }
.crystal-orbit-3 { width: 190px; height: 190px; left: 85px; top: 92px; transform: rotateX(60deg) rotateY(24deg); animation: crystalOrbit3 13s linear infinite; opacity: .5; }

.crystal-shard {
  position: absolute;
  width: 25px;
  height: 58px;
  background: linear-gradient(160deg, rgba(217,255,240,.72), rgba(0,182,122,.12) 48%, rgba(0,35,26,.9));
  border: 1px solid rgba(185,255,229,.25);
  clip-path: polygon(50% 0, 100% 26%, 72% 100%, 28% 100%, 0 26%);
  transform-style: preserve-3d;
  box-shadow: 0 0 22px rgba(0,182,122,.16);
}
.shard-1 { left: 66px; top: 86px; transform: rotate(28deg) translateZ(42px); animation: shardFloat1 4.2s ease-in-out infinite; }
.shard-2 { right: 58px; top: 135px; transform: rotate(-34deg) translateZ(62px); animation: shardFloat2 5s ease-in-out infinite; }
.shard-3 { left: 70px; bottom: 76px; transform: rotate(46deg) translateZ(25px) scale(.72); animation: shardFloat1 5.8s ease-in-out infinite reverse; }
.shard-4 { right: 66px; bottom: 78px; transform: rotate(-52deg) translateZ(36px) scale(.66); animation: shardFloat2 4.8s ease-in-out infinite reverse; }

.crystal-data {
  position: absolute;
  padding: 7px 10px;
  border: 1px solid rgba(0,182,122,.25);
  border-radius: 8px;
  background: rgba(4,12,9,.64);
  backdrop-filter: blur(8px);
  color: rgba(185,255,229,.82);
  font: 700 .54rem/1 var(--font-heading);
  letter-spacing: .14em;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}
.data-1 { left: 5px; top: 145px; transform: translateZ(150px); animation: dataFloat 4.6s ease-in-out infinite; }
.data-2 { right: 2px; bottom: 125px; transform: translateZ(145px); animation: dataFloat 5.2s ease-in-out infinite reverse; }

@keyframes kyzenCrystalFloat { 0%,100% { transform: translate(-50%,-50%) translateZ(90px) rotateX(0deg) rotateY(-2deg); } 50% { transform: translate(-50%,-53%) translateZ(112px) rotateX(2deg) rotateY(6deg); } }
@keyframes crystalSpin { to { transform: rotateX(-12deg) rotateY(388deg) rotateZ(-4deg); } }
@keyframes crystalAura { 0%,100% { opacity:.55; transform:scale(.94); } 50% { opacity:1; transform:scale(1.08); } }
@keyframes corePulse { 0%,100% { transform:translateZ(62px) scale(.82); opacity:.8; } 50% { transform:translateZ(68px) scale(1.15); opacity:1; } }
@keyframes crystalOrbit1 { to { transform:rotateX(68deg) rotateZ(378deg); } }
@keyframes crystalOrbit2 { to { transform:rotateY(427deg) rotateZ(-22deg); } }
@keyframes crystalOrbit3 { to { transform:rotateX(60deg) rotateY(384deg); } }
@keyframes shardFloat1 { 0%,100% { margin-top:0; opacity:.55; } 50% { margin-top:-10px; opacity:1; } }
@keyframes shardFloat2 { 0%,100% { margin-top:0; opacity:.5; } 50% { margin-top:9px; opacity:.95; } }
@keyframes dataFloat { 0%,100% { translate:0 0; } 50% { translate:0 -7px; } }

@media (max-width: 720px) {
  .kyzen-3d-crystal { transform:translate(-50%,-50%) scale(.78) translateZ(70px); }
  .crystal-data { display:none; }
}

/* --------------------------------------------------------------------------
   KYZEN COMMUNITY — green brand treatment with white Discord icon
   -------------------------------------------------------------------------- */
.discord-community-card {
  border-color: var(--accent-border);
  background: linear-gradient(135deg, rgba(0, 182, 122, 0.10), rgba(0, 0, 0, 0.22));
}

.discord-community-card::after {
  background: rgba(0, 182, 122, 0.13);
}

.discord-community-kicker {
  color: var(--accent-light);
}

.discord-community-action {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.discord-community-action:hover {
  background: var(--accent-light);
  box-shadow: 0 12px 30px var(--accent-glow);
}

/* Keep the Discord mark white to match the community button. */
.discord-community-logo {
  color: #fff;
}

/* Slightly reduce the oversized homepage hero heading. */
.hero-title {
  font-size: clamp(2.9rem, 5.4vw, 4.7rem);
}

@media (max-width: 700px) {
  .hero-title {
    font-size: clamp(2.45rem, 11vw, 3.6rem);
  }
}

/* --------------------------------------------------------------------------
   KYZEN VISUAL v3 — premium 3D monolith (replaces the previous crystal/robot)
   -------------------------------------------------------------------------- */
.kyzen-ai-stage { overflow: visible; }
.kyzen-ai-stage::before { width: 48%; height: 48%; opacity: .30; filter: blur(90px); }
.kyzen-ai-grid { opacity: .25; }

.kyzen-ai-spotlight {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,182,122,.18) 0%, rgba(0,182,122,.06) 36%, transparent 70%);
  filter: blur(14px);
  animation: visualPulse 5s ease-in-out infinite;
}

.kyzen-visual-orbit {
  position: absolute;
  left: 50%; top: 50%;
  width: 360px; height: 142px;
  margin-left: -180px; margin-top: -71px;
  border: 1px solid rgba(0,182,122,.30);
  border-radius: 50%;
  transform-style: preserve-3d;
  pointer-events: none;
}
.kyzen-visual-orbit::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  left: 50%; top: -4px;
  border-radius: 50%;
  background: #baffdf;
  box-shadow: 0 0 12px rgba(0,182,122,.9), 0 0 28px rgba(0,182,122,.45);
}
.orbit-one { transform: rotateX(68deg) rotateZ(12deg); animation: visualOrbitOne 9s linear infinite; }
.orbit-two { width: 410px; height: 175px; margin-left:-205px; margin-top:-87px; transform: rotateY(66deg) rotateZ(-20deg); opacity:.55; animation: visualOrbitTwo 13s linear infinite reverse; }
.orbit-three { width: 285px; height: 285px; margin-left:-142px; margin-top:-142px; transform: rotateX(68deg) rotateY(18deg); opacity:.35; animation: visualOrbitThree 16s linear infinite; }

.kyzen-monolith {
  position: relative;
  width: 205px;
  height: 255px;
  transform-style: preserve-3d;
  transform: rotateX(-7deg) rotateY(-23deg) rotateZ(1deg) translateZ(60px);
  animation: monolithFloat 6s ease-in-out infinite;
  z-index: 5;
}
.monolith-shadow {
  position:absolute;
  left:18px; right:18px; bottom:-34px; height:48px;
  border-radius:50%;
  background: rgba(0,0,0,.58);
  filter: blur(17px);
  transform: translateZ(-45px);
}
.monolith-base {
  position:absolute;
  left:12px; right:12px; bottom:-10px; height:24px;
  border:1px solid rgba(185,255,229,.20);
  border-radius:50%;
  background: linear-gradient(180deg, rgba(16,34,28,.96), rgba(2,10,7,.98));
  box-shadow: 0 0 28px rgba(0,182,122,.20), inset 0 1px 0 rgba(255,255,255,.08);
  transform: translateZ(-8px);
}
.monolith-face { position:absolute; inset:0; border:1px solid rgba(185,255,229,.20); overflow:hidden; }
.monolith-front {
  border-radius: 22px 22px 30px 30px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.10), transparent 25%),
    linear-gradient(160deg, #17251f 0%, #0a1712 42%, #04100b 100%);
  box-shadow: inset 12px 0 26px rgba(255,255,255,.035), inset -20px -22px 34px rgba(0,0,0,.58), 0 0 45px rgba(0,182,122,.13);
  transform: translateZ(30px);
}
.monolith-front::before {
  content:''; position:absolute; inset:8px; border:1px solid rgba(0,182,122,.16); border-radius:16px;
  background: linear-gradient(180deg, rgba(0,182,122,.035), transparent 48%);
}
.monolith-sheen {
  position:absolute; width:80px; height:360px; left:-105px; top:-50px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
  transform: rotate(20deg); animation: monolithSheen 5.5s ease-in-out infinite;
}
.monolith-side {
  width: 60px; left:auto; right:-60px;
  border-radius:0 18px 26px 0;
  background: linear-gradient(160deg, #19392e, #06130e 70%);
  transform-origin:left center; transform: rotateY(90deg) translateZ(30px);
}
.monolith-top {
  height:60px; bottom:auto;
  border-radius:18px 18px 0 0;
  background: linear-gradient(145deg, #2a4b3f, #0b1813 72%);
  transform-origin:bottom center; transform: rotateX(90deg) translateZ(30px);
}
.monolith-logo-wrap {
  position:absolute; width:112px; height:112px; left:50%; top:42px; transform:translateX(-50%);
  display:grid; place-items:center;
  border-radius:50%;
  background: radial-gradient(circle, rgba(0,182,122,.18), rgba(0,182,122,.035) 52%, transparent 72%);
  box-shadow: 0 0 42px rgba(0,182,122,.18);
}
.monolith-logo { width:92px; height:92px; object-fit:contain; filter: drop-shadow(0 0 9px rgba(0,182,122,.35)); transform: translateZ(8px); }
.monolith-wordmark {
  position:absolute; left:0; right:0; top:166px; text-align:center;
  color:#f2fff9; font:800 1.05rem/1 var(--font-heading); letter-spacing:.34em; padding-left:.34em;
  text-shadow:0 0 18px rgba(0,182,122,.20);
}
.monolith-line {
  position:absolute; width:54px; height:2px; left:50%; top:194px; transform:translateX(-50%);
  background:linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow:0 0 12px var(--accent-glow);
}

.kyzen-particle { position:absolute; width:5px; height:5px; border-radius:50%; background:#baffdf; box-shadow:0 0 12px var(--accent); z-index:4; }
.particle-a { left:25%; top:28%; animation: particleFloat 4.4s ease-in-out infinite; }
.particle-b { right:23%; top:36%; width:3px;height:3px; animation: particleFloat 5.3s ease-in-out infinite reverse; }
.particle-c { left:30%; bottom:27%; width:4px;height:4px; animation: particleFloat 6s ease-in-out infinite -1s; }
.particle-d { right:27%; bottom:30%; width:6px;height:6px; animation: particleFloat 4.8s ease-in-out infinite -2s; }
.particle-e { left:50%; top:17%; width:3px;height:3px; animation: particleFloat 5.8s ease-in-out infinite -1.5s; }

.kyzen-float-card {
  position:absolute; z-index:8;
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border:1px solid rgba(0,182,122,.22);
  border-radius:12px;
  background:rgba(6,13,10,.74);
  backdrop-filter:blur(12px);
  box-shadow:0 14px 32px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.045);
  color:#d9fff0;
  font-size:.62rem; letter-spacing:.10em;
}
.kyzen-float-card b { display:block; font-size:.62rem; letter-spacing:.08em; color:#fff; }
.kyzen-float-card small { display:block; margin-top:4px; color:var(--text-muted); font-size:.62rem; letter-spacing:0; }
.float-card-top { top:18%; right:3%; animation:cardFloat 5s ease-in-out infinite; }
.float-card-bottom { bottom:18%; left:5%; animation:cardFloat 5.8s ease-in-out infinite reverse; }
.float-card-icon { display:grid; place-items:center; width:28px;height:28px;border-radius:8px; background:rgba(0,182,122,.10); color:var(--accent-light); }
.float-card-icon svg { width:15px;height:15px; }
.status-dot { width:7px;height:7px;border-radius:50%;background:var(--accent-light);box-shadow:0 0 10px var(--accent); }
.float-card-bottom strong { margin-left:4px; color:var(--accent-light); font-size:.68rem; }

@keyframes visualPulse { 0%,100%{transform:scale(.9);opacity:.5} 50%{transform:scale(1.08);opacity:.9} }
@keyframes visualOrbitOne { to { transform:rotateX(68deg) rotateZ(372deg); } }
@keyframes visualOrbitTwo { to { transform:rotateY(426deg) rotateZ(-20deg); } }
@keyframes visualOrbitThree { to { transform:rotateX(68deg) rotateY(378deg); } }
@keyframes monolithFloat { 0%,100%{transform:rotateX(-7deg) rotateY(-23deg) rotateZ(1deg) translateY(0) translateZ(60px)} 50%{transform:rotateX(-4deg) rotateY(-16deg) rotateZ(-1deg) translateY(-12px) translateZ(74px)} }
@keyframes monolithSheen { 0%,25%{left:-105px;opacity:0} 42%{opacity:.8} 60%,100%{left:230px;opacity:0} }
@keyframes particleFloat { 0%,100%{transform:translate3d(0,0,0);opacity:.3} 50%{transform:translate3d(8px,-16px,30px);opacity:1} }
@keyframes cardFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

@media (max-width: 1024px) {
  .float-card-top { right:0; }
  .float-card-bottom { left:0; }
}
@media (max-width: 600px) {
  .kyzen-monolith { transform:scale(.82) rotateX(-7deg) rotateY(-20deg) translateZ(40px); }
  .kyzen-visual-orbit { transform:scale(.82); }
  .float-card-top { top:11%; right:-4px; transform:scale(.82); }
  .float-card-bottom { bottom:12%; left:-4px; transform:scale(.82); }
  .kyzen-ai-label { font-size:.56rem; }
}
@media (prefers-reduced-motion: reduce) {
  .kyzen-monolith,.kyzen-visual-orbit,.kyzen-ai-spotlight,.kyzen-particle,.kyzen-float-card,.monolith-sheen { animation:none !important; }
}


/* Hero 3D digital-pulse visual: replaces the old monolith artwork. */
.hero-ai-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
  perspective: 1200px;
  overflow: visible;
}
.hero-ai-stage {
  position: relative;
  width: min(100%, 620px);
  min-height: 520px;
  display: grid;
  place-items: center;
  isolation: isolate;
  transform-style: preserve-3d;
}
.hero-ai-stage::before {
  content: '';
  position: absolute;
  width: 58%; height: 58%;
  border-radius: 50%;
  background: var(--accent-glow);
  filter: blur(75px);
  opacity: .34;
  z-index: -2;
  animation: aiPulse 4.8s ease-in-out infinite;
}
.hero-ai-stage .kyzen-ai-grid { inset: 12%; opacity: .20; }
.hero-ai-core {
  position: relative;
  width: 230px; height: 230px;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: coreFloat 5.5s ease-in-out infinite;
  z-index: 5;
}
.hero-ai-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  box-shadow: 0 0 24px var(--accent-glow), inset 0 0 24px var(--accent-soft);
}
.hero-ai-ring-one { inset: 22px; animation: ringSpin 7s linear infinite; transform: rotateX(12deg); }
.hero-ai-ring-two { inset: 48px; border-style: dashed; opacity: .72; animation: ringSpin 4.5s linear infinite reverse; transform: rotateX(12deg); }
.hero-ai-core-center {
  position: absolute; inset: 73px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(0,229,153,.24), rgba(7,18,13,.96) 62%);
  border: 1px solid var(--accent-border);
  box-shadow: 0 0 45px var(--accent-glow), inset 0 0 24px rgba(255,255,255,.04);
  transform: translateZ(55px);
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 0 0 22px var(--accent);
}
.hero-ai-stage .kyzen-float-card { z-index: 10; white-space: nowrap; }
.hero-float-live { top: 14%; right: 2%; animation: cardFloat 5s ease-in-out infinite; }
.hero-float-engine { bottom: 18%; right: 1%; animation: cardFloat 5.8s ease-in-out infinite reverse; }
.hero-float-creator { bottom: 18%; left: 2%; animation: cardFloat 4.8s ease-in-out infinite; }

/* Careers: keep every Apply for Role button aligned to the bottom of its card. */
.career-grid > .card {
  display: flex;
  flex-direction: column;
}

.career-grid > .card > .btn {
  margin-top: auto;
}

/* Home page — keep the two value-card CTAs perfectly aligned */
.dual-value-grid {
  align-items: stretch;
}

.dual-value-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.dual-value-card .dual-value-action {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
}

.dual-value-card .dual-value-action .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}


/* Services page: keep every card, divider and CTA aligned across each row. */
.services-grid {
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.service-card-intro {
  min-height: 156px;
  box-sizing: border-box;
}

.service-deliverables {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-top: 0;
  margin-bottom: 24px;
  min-height: 215px;
  box-sizing: border-box;
}

.service-card-action {
  margin-top: 0;
}

.service-card-action .btn {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .service-card-intro { min-height: 0; }
  .service-deliverables { min-height: 0; }
}

/* ==========================================================================
   HOMEPAGE TRUSTED BY / CLIENT MARQUEE
   ========================================================================== */
.trusted-marquee-section {
  padding: 36px 0 40px 0;
  background: rgba(8, 11, 14, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.trusted-marquee-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
}

.trusted-marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00B67A;
  box-shadow: 0 0 8px rgba(0, 182, 122, 0.7);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.trusted-marquee-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #94a3b8;
}

.marquee-scroller {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.85) 6%, #000 14%, #000 86%, rgba(0,0,0,0.85) 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.85) 6%, #000 14%, #000 86%, rgba(0,0,0,0.85) 94%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  will-change: transform;
  animation: kyzenMarquee 34s linear infinite;
  padding: 8px 0;
}

.marquee-scroller:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes kyzenMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-badge-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  min-width: 210px;
  max-width: 270px;
  padding: 0 32px;
  background: rgba(16, 20, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.client-badge-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(24, 30, 42, 0.98);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -2px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 182, 122, 0.25);
}

.client-badge-logo {
  max-height: 44px;
  max-width: 195px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.1);
  opacity: 0.95;
  transition: all 0.3s ease;
}

.client-badge-card:hover .client-badge-logo {
  filter: brightness(1.45) contrast(1.15);
  opacity: 1;
}

@media (max-width: 768px) {
  .trusted-marquee-section {
    padding: 30px 0 34px 0;
  }
  .client-badge-card {
    height: 58px;
    min-width: 165px;
    padding: 0 20px;
  }
  .client-badge-logo {
    max-height: 32px;
    max-width: 145px;
  }
}
