/* StepVis Insight — shared by /products/stepvisinsight/tr/ and /en/. */

:root {
  color-scheme: light;
  --ink: #0F1E33;
  --navy: #1D3557;
  --blue: #4A7BD0;
  --turquoise: #3FA7A3;
  --cyan: #4FB8D0;
  --bg: #F6F8FB;
  --white: #FFFFFF;
  --muted: #56677D;
  --line: rgba(15, 30, 51, 0.10);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 76rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(56rem 38rem at 76% 20rem, var(--white) 0%, rgba(255, 255, 255, 0) 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'liga', 'calt';
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  padding: 0.5rem 0.875rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(246, 248, 251, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
}

.wordmark {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--blue); font-weight: 500; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lang-switch a {
  padding: 0.375rem 0.5rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}
.lang-switch .sep {
  width: 1px;
  height: 0.875rem;
  background: var(--line);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  min-height: calc(100svh - 4rem);
  padding-top: clamp(2rem, 5vh, 4rem);
  padding-bottom: clamp(2rem, 5vh, 4rem);
}

.hero-text { max-width: 36rem; }

.product {
  margin: 0;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.product span { color: var(--blue); font-weight: 500; }

.descriptor {
  margin: 0.5rem 0 0;
  max-width: 26rem;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--turquoise);
}

.hero h1 {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.dot { color: var(--cyan); }

.hero .lede {
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  max-width: 31rem;
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0.5rem 1rem 0.5rem 0.875rem;
  border: 1px solid rgba(74, 123, 208, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}
.soon::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(79, 184, 208, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

.hero-visual {
  margin: 0;
  display: flex;
  justify-content: center;
}
.hero-visual img {
  display: block;
  width: 100%;
  max-width: 36rem;
  height: auto;
  aspect-ratio: 560 / 460;
}

/* ---------- Principles ---------- */

.section {
  padding-top: clamp(4.5rem, 10vw, 8rem);
  padding-bottom: clamp(4.5rem, 10vw, 8rem);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--turquoise);
}

.section-title {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.principle {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.principle::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--accent, var(--blue));
}
.principle:nth-child(2) { --accent: var(--turquoise); }
.principle:nth-child(3) { --accent: var(--cyan); }

.principle-num {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.principle h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.principle p {
  margin: 0;
  max-width: 22rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Closing ---------- */

.closing {
  text-align: center;
  padding-bottom: clamp(5rem, 11vw, 9rem);
}
.closing h2 {
  margin: 0 auto;
  max-width: 46rem;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.closing .soon { margin-top: 2rem; }
.closing .note {
  margin: 2.5rem auto 0;
  max-width: 38rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 2.5rem);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-brand p { margin: 0.5rem 0 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}
.site-footer a {
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.site-footer a:hover { color: var(--ink); }
.footer-bottom {
  margin: 2.5rem 0 0;
  font-size: 0.8125rem;
  color: #7D8CA0;
}

/* ---------- Motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 184, 208, 0.5); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(79, 184, 208, 0); }
}

.reveal { animation: rise 1.1s var(--ease) both; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.27s; }
.reveal-4 { animation-delay: 0.12s; animation-duration: 1.6s; }

.js .on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .on-scroll.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .on-scroll { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    text-align: center;
    gap: 1.25rem;
    padding-top: 1rem;
  }
  .hero-text { margin: 0 auto; }
  .descriptor,
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: min(24rem, 84vw); }

  .principles { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 860px) and (max-height: 700px) {
  .hero-visual img { max-width: min(16rem, 64vw); }
}
