/* ==========================================================================
   Khyren — Corporate site styles
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-dark: #0B1424;
  --bg-darker: #060B14;
  --text: #0B1424;
  --text-muted: #475569;
  --text-soft: #64748b;
  --text-light: #94a3b8;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #cbd5e1;

  /* Brand teal */
  --accent: #14B8A6;
  --accent-hover: #0F766E;
  --accent-soft: #99F6E4;
  --accent-bg: #f0fdfa;

  /* Expanded vibrant palette */
  --purple: #8B5CF6;
  --purple-deep: #7C3AED;
  --purple-bg: #f5f3ff;
  --indigo: #6366F1;
  --indigo-bg: #eef2ff;
  --blue: #0EA5E9;
  --blue-bg: #f0f9ff;
  --green: #10B981;
  --green-bg: #ecfdf5;
  --amber: #F59E0B;
  --amber-bg: #fffbeb;
  --orange: #F97316;
  --orange-bg: #fff7ed;
  --pink: #EC4899;
  --pink-bg: #fdf2f8;
  --rose: #F43F5E;
  --rose-bg: #fff1f2;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #f0fdfa 0%, #eef2ff 50%, #fdf2f8 100%);
  --gradient-fintech: linear-gradient(135deg, #f0f9ff 0%, #f0fdfa 100%);
  --gradient-edtech: linear-gradient(135deg, #fff7ed 0%, #f5f3ff 100%);
  --gradient-warm: linear-gradient(135deg, #fffbeb 0%, #fdf2f8 100%);
  --gradient-cool: linear-gradient(135deg, #f0fdfa 0%, #f5f3ff 100%);

  --border: #e2e8f0;
  --border-dark: #1e293b;
  --shadow-sm: 0 1px 2px 0 rgba(11, 20, 36, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(11, 20, 36, 0.06);
  --shadow-lg: 0 12px 40px -4px rgba(11, 20, 36, 0.10);
  --shadow-color: 0 8px 32px -4px rgba(20, 184, 166, 0.18);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max: 1200px;
  --max-narrow: 800px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }

/* Typography */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 720px;
}

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-compact { padding: 56px 0; }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-dark .lead { color: var(--text-on-dark-muted); }
.section-subtle { background: var(--bg-subtle); }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}
.nav-logo:hover { color: var(--text); }
.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.footer-logo {
  display: inline-block;
  margin-bottom: 18px;
}
.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding: 8px 0;
}
.btn-ghost:hover {
  color: var(--accent-hover);
}
.btn-on-dark {
  background: white;
  color: var(--bg-dark);
  border-color: white;
}
.btn-on-dark:hover {
  background: var(--accent-soft);
  color: var(--bg-dark);
  border-color: var(--accent-soft);
}

/* Hero */
.hero {
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero .lead { font-size: 1.3rem; margin-bottom: 36px; }
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  max-width: 560px;
  justify-self: end;
}
.hero-grid {
  grid-template-columns: 1fr 1.05fr;
}

/* Hero product mockup wrapper (with bold colored shape behind, Atlassian style) */
.hero-product-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-product-stage .hero-product-shape {
  position: absolute;
  width: 96%;
  height: 88%;
  bottom: 4%;
  right: -8%;
  border-radius: 16px;
  transform: rotate(3deg);
  z-index: 0;
  opacity: 0.92;
}
.hero-product-stage .hero-product-shape.shape-indigo-pink {
  background: linear-gradient(135deg, #6366F1 0%, #EC4899 100%);
}
.hero-product-stage .hero-product-shape.shape-teal-blue {
  background: linear-gradient(135deg, #14B8A6 0%, #0EA5E9 100%);
}
.hero-product-stage .hero-product-shape.shape-orange-pink {
  background: linear-gradient(135deg, #F97316 0%, #EC4899 100%);
}
.hero-product-stage .hero-product-shape.shape-purple-blue {
  background: linear-gradient(135deg, #8B5CF6 0%, #0EA5E9 100%);
}
.hero-product-stage .hero-product-shape.shape-green-teal {
  background: linear-gradient(135deg, #10B981 0%, #14B8A6 100%);
}
.hero-product-stage .mockup {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Floating decor (used across all hero sections) */
.hero-decor.d-cool { background: #14B8A6; }
.hero-decor.d-warm { background: #F97316; }

/* ==========================================================================
   Hero animated demo (sequential product walkthrough — Atlassian-style)
   ========================================================================== */

.hero-demo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: white;
  box-shadow: 0 24px 60px -12px rgba(11, 20, 36, 0.22);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Sequential reveal animations cycling on a 12s loop */
@keyframes demoReveal {
  0%   { opacity: 0; transform: translateY(8px); }
  8%   { opacity: 1; transform: translateY(0); }
  90%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

@keyframes demoDraw {
  0%   { stroke-dashoffset: 800; }
  20%  { stroke-dashoffset: 800; }
  60%  { stroke-dashoffset: 0; }
  90%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 800; }
}

@keyframes demoCount {
  0%   { opacity: 0; transform: translateY(4px); }
  8%   { opacity: 0; transform: translateY(4px); }
  20%  { opacity: 1; transform: translateY(0); }
  90%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(4px); }
}

@keyframes demoBarFill {
  0%   { transform: scaleX(0); }
  10%  { transform: scaleX(0); }
  35%  { transform: scaleX(1); }
  90%  { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

@keyframes demoCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes demoLivePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}

@keyframes demoTypewriter {
  0%, 50% { width: 0; }
  60%     { width: 100%; }
  90%     { width: 100%; }
  100%    { width: 0; }
}

/* Initial states + animation hookup for parts of the demo SVG */
.demo-title    { opacity: 0; animation: demoReveal 12s ease-in-out infinite; animation-delay: 0.2s; }
.demo-live-dot { transform-origin: center; transform-box: fill-box; animation: demoLivePulse 1.6s ease-in-out infinite; }

.demo-kpi-1    { opacity: 0; animation: demoReveal 12s ease-in-out infinite; animation-delay: 0.6s; transform-origin: bottom center; }
.demo-kpi-2    { opacity: 0; animation: demoReveal 12s ease-in-out infinite; animation-delay: 1.0s; transform-origin: bottom center; }
.demo-kpi-3    { opacity: 0; animation: demoReveal 12s ease-in-out infinite; animation-delay: 1.4s; transform-origin: bottom center; }
.demo-kpi-4    { opacity: 0; animation: demoReveal 12s ease-in-out infinite; animation-delay: 1.8s; transform-origin: bottom center; }

.demo-chart {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: demoDraw 12s ease-in-out infinite;
  animation-delay: 0s;
}
.demo-chart-fill { opacity: 0; animation: demoCount 12s ease-in-out infinite; animation-delay: 3.5s; }

.demo-bar {
  transform-origin: left center;
  transform: scaleX(0);
  animation: demoBarFill 12s ease-out infinite;
}
.demo-bar.bar-1 { animation-delay: 0.6s; }
.demo-bar.bar-2 { animation-delay: 0.8s; }
.demo-bar.bar-3 { animation-delay: 1.0s; }

.demo-ai-panel { opacity: 0; animation: demoReveal 12s ease-in-out infinite; animation-delay: 4.5s; }
.demo-ai-line  { opacity: 0; animation: demoCount 12s ease-in-out infinite; }
.demo-ai-line.l1 { animation-delay: 5.0s; }
.demo-ai-line.l2 { animation-delay: 5.6s; }

.demo-cursor { animation: demoCursor 1s steps(2) infinite; }

/* Subtle "play" badge over demo */
.hero-demo-play {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(11, 20, 36, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.hero-demo-play svg { width: 12px; height: 12px; color: white; margin-left: 1px; }

/* Reduced motion: hold final state, no looping */
@media (prefers-reduced-motion: reduce) {
  .demo-title, .demo-kpi-1, .demo-kpi-2, .demo-kpi-3, .demo-kpi-4,
  .demo-chart-fill, .demo-ai-panel, .demo-ai-line {
    opacity: 1; animation: none;
  }
  .demo-chart { stroke-dashoffset: 0; animation: none; }
  .demo-bar { transform: scaleX(1); animation: none; }
  .demo-cursor, .demo-live-dot { animation: none; }
}

/* Decorative motif */
.motif {
  width: 100%;
  height: 100%;
  display: block;
}

/* Sections */
.section-header {
  max-width: 720px;
  margin-bottom: 40px;
}
.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Three-column / Four-column grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Feature cards */
.feature {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}
.feature:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }

/* Vibrant icon color variants */
.feature-icon.icon-purple { background: var(--purple-bg); color: var(--purple); }
.feature-icon.icon-indigo { background: var(--indigo-bg); color: var(--indigo); }
.feature-icon.icon-blue { background: var(--blue-bg); color: var(--blue); }
.feature-icon.icon-green { background: var(--green-bg); color: var(--green); }
.feature-icon.icon-amber { background: var(--amber-bg); color: var(--amber); }
.feature-icon.icon-orange { background: var(--orange-bg); color: var(--orange); }
.feature-icon.icon-pink { background: var(--pink-bg); color: var(--pink); }
.feature-icon.icon-rose { background: var(--rose-bg); color: var(--rose); }

/* Eyebrow color variants */
.eyebrow.eb-purple { color: var(--purple); }
.eyebrow.eb-indigo { color: var(--indigo); }
.eyebrow.eb-blue { color: var(--blue); }
.eyebrow.eb-amber { color: var(--amber); }
.eyebrow.eb-orange { color: var(--orange); }
.eyebrow.eb-pink { color: var(--pink); }

/* Section background variants */
.section-gradient-cool { background: var(--gradient-cool); }
.section-gradient-warm { background: var(--gradient-warm); }
.section-gradient-fintech { background: var(--gradient-fintech); }
.section-gradient-edtech { background: var(--gradient-edtech); }

.mockup-wrapper {
  position: relative;
  display: block;
}

/* Trust strip — operating background (used on About page) */
.trust-strip {
  padding: 48px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.trust-logos {
  display: flex;
  gap: 56px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.trust-logo {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  opacity: 0.78;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.trust-logo:hover { opacity: 1; }

/* ==========================================================================
   Analytics marquee strip (replaces trust strip on homepage)
   ========================================================================== */

.analytics-strip {
  padding: 22px 0;
  background: linear-gradient(135deg, #14B8A6 0%, #6366F1 50%, #EC4899 100%);
  overflow: hidden;
  position: relative;
}
.analytics-strip-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marqueeScroll 38s linear infinite;
  width: max-content;
}
.analytics-strip:hover .analytics-strip-track {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.analytics-strip-item {
  font-weight: 700;
  font-size: 1rem;
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.analytics-strip-item::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  margin-left: 14px;
}

/* ==========================================================================
   Hero — floating decor shapes for vibrancy + animation
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
}
.hero-decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}
.hero-decor.d1 {
  width: 360px; height: 360px;
  background: #14B8A6;
  top: -40px; left: -120px;
  animation: floatA 14s ease-in-out infinite;
}
.hero-decor.d2 {
  width: 280px; height: 280px;
  background: #6366F1;
  top: 50%; left: 30%;
  animation: floatB 16s ease-in-out infinite;
}
.hero-decor.d3 {
  width: 320px; height: 320px;
  background: #EC4899;
  top: 10%; right: -80px;
  animation: floatC 18s ease-in-out infinite;
}
.hero-decor.d4 {
  width: 240px; height: 240px;
  background: #F59E0B;
  bottom: -60px; right: 25%;
  animation: floatD 20s ease-in-out infinite;
  opacity: 0.35;
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, 40px) scale(1.08); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-50px, -60px) scale(1.06); }
}
@keyframes floatC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-40px, 50px) scale(1.1); }
}
@keyframes floatD {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(70px, -40px) scale(1.04); }
}

/* Bold accent shape behind hero motif (Atlassian-style) */
.hero-shape-accent {
  position: absolute;
  width: 70%;
  height: 70%;
  bottom: 5%;
  right: -8%;
  background: linear-gradient(135deg, #6366F1 0%, #EC4899 100%);
  border-radius: 16px;
  transform: rotate(4deg);
  z-index: -1;
  opacity: 0.92;
}
.hero-visual {
  position: relative;
}

/* Hero stat row beneath the lead */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 6px;
  font-weight: 500;
}

@media (max-width: 980px) {
  .hero-shape-accent { display: none; }
  .hero-decor.d2 { left: 10%; top: 60%; }
}

/* Industry card color variants */
.industry-card.fintech .industry-card-art {
  background: linear-gradient(135deg, #f0f9ff 0%, #f0fdfa 100%);
}
.industry-card.edtech .industry-card-art {
  background: linear-gradient(135deg, #fff7ed 0%, #f5f3ff 100%);
}

/* Decorative accent strip */
.accent-strip {
  height: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--indigo) 33%, var(--orange) 66%, var(--pink) 100%);
}

/* ==========================================================================
   Animations & motion
   ========================================================================== */

/* Reveal-on-scroll base state */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

/* Fade-in for hero (no scroll trigger needed) */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero h1 { animation: heroFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero .lead { animation: heroFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
.hero-cta { animation: heroFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both; }
.hero-visual { animation: heroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }

/* Subtle motif drift */
@keyframes motifDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(0, -8px) scale(1.02); }
}
.motif {
  animation: motifDrift 9s ease-in-out infinite;
  transform-origin: center;
}

/* Pulsing data point */
@keyframes dataPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.8; }
}
.motif circle[r="7"], .motif circle[r="6"] {
  transform-origin: center;
  transform-box: fill-box;
  animation: dataPulse 2.4s ease-in-out infinite;
}
.motif circle[r="7"]:nth-of-type(2) { animation-delay: 0.3s; }
.motif circle[r="7"]:nth-of-type(3) { animation-delay: 0.6s; }
.motif circle[r="7"]:nth-of-type(4) { animation-delay: 0.9s; }

/* Decorative shape behind mockups (Atlassian-style) */
.mockup-stage {
  position: relative;
  padding: 60px;
  margin: -30px;
}
.mockup-stage::before {
  content: '';
  position: absolute;
  background: var(--accent);
  border-radius: 8px;
  z-index: 0;
  opacity: 0.95;
}
.mockup-stage.shape-bottom-left::before {
  width: 70%;
  height: 60%;
  bottom: 0;
  left: 0;
  transform: rotate(-2deg);
}
.mockup-stage.shape-bottom-right::before {
  width: 70%;
  height: 60%;
  bottom: 0;
  right: 0;
  transform: rotate(2deg);
}
.mockup-stage.shape-top-right::before {
  width: 60%;
  height: 50%;
  top: 0;
  right: 0;
  transform: rotate(3deg);
}
.mockup-stage.shape-purple::before { background: var(--purple); }
.mockup-stage.shape-orange::before { background: var(--orange); }
.mockup-stage.shape-indigo::before { background: var(--indigo); }
.mockup-stage.shape-pink::before { background: var(--pink); }
.mockup-stage .mockup-wrapper {
  position: relative;
  z-index: 1;
}

/* Play overlay for hero mockup (suggests video/animation) */
.play-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(11, 20, 36, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  backdrop-filter: blur(6px);
}
.play-overlay:hover {
  background: rgba(11, 20, 36, 0.85);
  transform: scale(1.06);
}
.play-overlay svg { width: 14px; height: 14px; color: white; }

/* Smooth card hover lift */
.feature, .product-card, .industry-card, .engagement-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.2s ease;
}

/* Counting number animation */
@keyframes numberCount {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mockup subtle hover */
.mockup {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease;
}
.mockup-stage:hover .mockup {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -12px rgba(11, 20, 36, 0.18);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Team grid for About page */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
}
.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: white;
  letter-spacing: -0.02em;
}
.team-avatar.av-teal { background: linear-gradient(135deg, #14B8A6, #0F766E); }
.team-avatar.av-indigo { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.team-avatar.av-orange { background: linear-gradient(135deg, #F97316, #EA580C); }
.team-avatar.av-purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.team-avatar.av-pink { background: linear-gradient(135deg, #EC4899, #DB2777); }
.team-avatar.av-blue { background: linear-gradient(135deg, #0EA5E9, #0284C7); }
.team-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card .team-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.team-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 980px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .mockup-stage { padding: 40px; margin: -20px; }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
  .mockup-stage { padding: 24px; margin: -8px; }
}
.feature h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature p { color: var(--text-muted); font-size: 0.97rem; margin: 0; line-height: 1.55; }

/* Industry cards (large) */
.industry-card {
  display: flex;
  flex-direction: column;
  padding: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.industry-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.industry-card-art {
  height: 180px;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-bg) 0%, #ecfdf5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.industry-card h3 { font-size: 1.6rem; margin-bottom: 14px; }
.industry-card p { color: var(--text-muted); margin-bottom: 20px; }
.industry-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.97rem;
  margin-top: auto;
}
.industry-card:hover .arrow { color: var(--accent-hover); }

/* Product cards */
.product-card {
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.product-card-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: white;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.product-card-mark.unikpath { background: linear-gradient(135deg, #F97316, #EA580C); }
.product-card-mark.thetempera { background: linear-gradient(135deg, #0EA5E9, #0284C7); }
.product-card-mark.uniklms { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.product-card-mark.retirement { background: linear-gradient(135deg, #10B981, #059669); }

/* Logo variant — no background, lets the SVG logo show through */
.product-card-mark.logo {
  background: transparent;
  padding: 0;
  width: 56px;
  height: 56px;
}
.product-card-mark.logo img,
.product-card-mark.logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Product hero pretitle logo */
.product-hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.product-hero-logo img,
.product-hero-logo svg {
  width: 40px;
  height: 40px;
  display: block;
}
.product-hero-logo .product-hero-pretitle {
  margin-bottom: 0;
}

.product-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.product-card .product-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.product-card .product-tag.coming {
  color: var(--text-light);
}
.product-card p { color: var(--text-muted); flex: 1; margin-bottom: 18px; }
.product-card .arrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Mockup illustrations (SVG-based) */
.mockup {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.mockup-large {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Feature with image (alternating left/right) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse {
  direction: rtl;
}
.feature-row.reverse > * {
  direction: ltr;
}
.feature-row h3 { font-size: 1.6rem; margin-bottom: 16px; }
.feature-row p { color: var(--text-muted); font-size: 1.05rem; }

/* Question list block */
.question-list {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  border-left: 4px solid var(--accent);
}
.question-list ul {
  margin: 0;
  padding-left: 20px;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.9;
}
.question-list ul li { margin-bottom: 4px; }

/* Engagement cards (3 across) */
.engagement-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.engagement-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--accent);
}
.engagement-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: var(--bg);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--bg-darker);
  color: var(--text-on-dark-muted);
  padding: 80px 0 40px;
}
.footer h4 {
  color: var(--text-on-dark);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand-text {
  color: var(--text-on-dark-muted);
  font-size: 0.93rem;
  max-width: 260px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer ul a {
  color: var(--text-on-dark-muted);
  font-size: 0.93rem;
}
.footer ul a:hover { color: var(--accent-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* CTA banner (used at bottom of vertical/product pages) */
.cta-banner {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--text-on-dark); margin-bottom: 16px; }
.cta-banner p {
  color: var(--text-on-dark-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* Product page hero */
.product-hero {
  padding: 56px 0 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--gradient-hero);
}

/* Wrapper that adds bold colored shape behind product hero mockup */
.product-mockup-stage {
  position: relative;
  margin-top: 48px;
  padding: 30px;
}
.product-mockup-stage::before {
  content: '';
  position: absolute;
  width: 95%;
  height: 84%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(1.5deg);
  background: linear-gradient(135deg, #14B8A6 0%, #6366F1 100%);
  border-radius: 16px;
  z-index: 0;
  opacity: 0.92;
}
.product-mockup-stage.shape-blue::before { background: linear-gradient(135deg, #14B8A6 0%, #0EA5E9 100%); }
.product-mockup-stage.shape-orange::before { background: linear-gradient(135deg, #F97316 0%, #EC4899 100%); }
.product-mockup-stage.shape-purple::before { background: linear-gradient(135deg, #8B5CF6 0%, #0EA5E9 100%); }
.product-mockup-stage.shape-green::before { background: linear-gradient(135deg, #10B981 0%, #14B8A6 100%); }
.product-mockup-stage .mockup,
.product-mockup-stage .mockup-large {
  position: relative;
  z-index: 1;
}
.product-hero-pretitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.product-hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  margin-bottom: 22px;
}
.product-hero-mockup {
  margin-top: 48px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 360px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
  .feature-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.mobile-open { display: flex; }
  .section { padding: 72px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .industry-card { padding: 32px 24px; }
  .question-list { padding: 24px 20px; }
}
