/* DinamiKrag Public Site — professional, high-contrast theme */

:root {
  --dk-cyan: #0891b2;
  --dk-cyan-bright: #06b6d4;
  --dk-cyan-soft: #ecfeff;
  --dk-navy: #0f172a;
  --dk-ink: #0f172a;
  --dk-body: #334155;
  --dk-muted: #64748b;
  --dk-border: #e2e8f0;
  --dk-surface: #ffffff;
  --dk-bg: #f8fafc;
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  background: var(--dk-bg);
  color: var(--dk-ink);
  line-height: 1.6;
}

/* Header — light for logo readability; bar height stays fixed, logo can overhang */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dk-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  overflow: visible;
}

.site-header > div {
  overflow: visible;
}

.site-logo-link {
  position: relative;
  z-index: 60;
  align-self: flex-start;
  margin-bottom: -1.25rem; /* hang below the header bar */
}

.site-logo {
  height: 3.75rem; /* larger than bar content (~2.5rem with py-4) */
  width: auto;
  display: block;
  object-fit: contain;
}

@media (min-width: 768px) {
  .site-logo {
    height: 4.5rem;
  }
  .site-logo-link {
    margin-bottom: -1.75rem;
  }
}

.site-header .nav-link {
  color: #334155;
}
.site-header .nav-link:hover {
  color: var(--dk-cyan);
}
.nav-link.active {
  color: var(--dk-cyan) !important;
  font-weight: 600;
}

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
#mobile-menu.open {
  max-height: min(80vh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hero — dark, high contrast white text (solid colour fallback first) */
.hero-mesh {
  background-color: #0f172a;
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(8, 145, 178, 0.35), transparent 55%),
    linear-gradient(165deg, #0f172a 0%, #164e63 48%, #0e7490 100%);
  color: #ffffff;
}

.page-hero {
  background-color: #0f172a;
  background-image: linear-gradient(145deg, #0f172a 0%, #155e75 55%, #0e7490 100%);
  color: #ffffff;
}

.page-hero h1,
.page-hero p,
.hero-mesh h1,
.hero-mesh p {
  color: inherit;
}

.btn-primary-site {
  background: #0891b2;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-primary-site:hover {
  background: #0e7490;
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.4);
  transform: translateY(-1px);
}

.btn-secondary-site {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-secondary-site:hover {
  background: #fff;
  color: #0f172a;
}

/* Cards */
.dk-card,
.glass-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  border: 1px solid var(--dk-border);
  color: #0f172a;
}
.dk-card:hover,
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}
.glass-card p,
.glass-card li {
  color: #334155;
}
.glass-card h2,
.glass-card h3,
.glass-card strong,
.dk-card h3 {
  color: #0f172a;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dk-cyan);
}

.light-surface {
  background: #ffffff;
  color: #0f172a;
}

.prose-readable {
  color: var(--dk-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Process */
.process-step { position: relative; }
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2rem;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #67e8f9, transparent);
  display: none;
}
@media (min-width: 768px) {
  .process-step:not(:last-child)::after { display: block; }
}

/* Tags */
.tech-tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}
.hero-mesh .tech-tag,
.page-hero .tech-tag {
  background: rgba(255, 255, 255, 0.14);
  color: #ecfeff;
  border-color: rgba(255, 255, 255, 0.28);
}

/* Forms */
.form-input {
  background: #fff;
  color: #0f172a;
}
.form-input:focus {
  outline: none;
  border-color: var(--dk-cyan);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.18);
}
.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.form-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.journey-line {
  background: linear-gradient(90deg, #0891b2, #2563eb, #7c3aed);
  height: 4px;
  border-radius: 999px;
}

/* Work page filters */
.filter-chip {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.filter-chip:hover {
  border-color: #67e8f9;
  color: #0e7490;
}
.filter-chip.is-active {
  background: #ecfeff;
  border-color: #22d3ee;
  color: #0e7490;
}

/* Dark band sections (use sparingly) */
.band-dark {
  background: #0f172a;
  color: #f1f5f9;
}
.band-dark p,
.band-dark li {
  color: #cbd5e1;
}
.band-dark h2,
.band-dark h3,
.band-dark strong {
  color: #fff;
}

/* Footer stays dark */
footer {
  background: #0f172a !important;
}

/* Customer lifecycle — HTML board matching Customer Lifecycle.jpg */
.lifecycle-diagram {
  max-width: 1100px;
  margin: 0 auto;
}

.lifecycle-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 920px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 50% 48%, #ffffff 0%, #e8fffb 42%, #c8f5ec 78%, #b6efe6 100%);
  border-radius: 1.5rem;
  overflow: hidden;
}

.lifecycle-ring-svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.lifecycle-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: clamp(9.5rem, 22%, 13.5rem);
  height: clamp(9.5rem, 22%, 13.5rem);
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 3px solid #5eead4;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
}

.lifecycle-hub-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(0.85rem, 1.7vw, 1.15rem);
  font-weight: 800;
  line-height: 1.2;
}

.lifecycle-hub-sub {
  margin: 0.35rem 0 0;
  color: #0f766e;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  font-weight: 700;
}

.lifecycle-card {
  position: absolute;
  z-index: 4;
  width: clamp(10.5rem, 23%, 15rem);
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 0.65rem;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.lifecycle-card h3 {
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: #0f766e;
  color: #ffffff;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

.lifecycle-card ul {
  margin: 0;
  padding: 0.7rem 0.85rem 0.85rem 1.35rem;
  list-style: disc;
  color: #0f172a;
  font-size: clamp(0.8rem, 1.35vw, 0.98rem);
  line-height: 1.55;
  font-weight: 500;
}

.lifecycle-card li {
  margin: 0.15rem 0;
}

/* Positions matched to the reference image */
.lc-prospecting { left: 4%; top: 7%; }
.lc-qualifying  { right: 4%; top: 7%; left: auto; }
.lc-proposing   { right: 2%; top: 38%; left: auto; }
.lc-closing     { right: 8%; bottom: 5%; top: auto; left: auto; }
.lc-onboarding  { left: 8%; bottom: 4%; top: auto; }
.lc-supporting  { left: 2%; top: 38%; }

.lifecycle-stack {
  display: none;
}

@media (max-width: 860px) {
  .lifecycle-diagram-desktop {
    display: none !important;
  }
  .lifecycle-stack {
    display: grid;
    gap: 0.85rem;
  }
  .lifecycle-stack-item {
    background: #fff;
    border: 1px solid #94a3b8;
    border-radius: 0.65rem;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  }
  .lifecycle-stack-item h3 {
    background: #0f766e;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    margin: 0;
    text-align: center;
  }
  .lifecycle-stack-item ul {
    margin: 0;
    padding: 0.9rem 1rem 1rem 1.5rem;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.55;
    list-style: disc;
    font-weight: 500;
  }
  .lifecycle-stack-center {
    text-align: center;
    background: #ffffff;
    border: 3px solid #5eead4;
    border-radius: 999px;
    padding: 1.4rem 1.25rem;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.15);
  }
  .lifecycle-stack-center strong {
    display: block;
    color: #0f172a;
    font-size: 1.1rem;
  }
  .lifecycle-stack-center span {
    color: #0f766e;
    font-weight: 700;
    font-size: 1.05rem;
  }
}
