/* JureStack yakında sayfası. Renkler ve yazı aileleri ürünün tasarım belirteçlerinden
   (design-tokens, brand paketi) alındı; açık ve koyu mod işletim sisteminin tercihini izler. */

@font-face {
  font-family: 'Red Hat Display';
  src: url('/assets/fonts/RedHatDisplay-VF.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Red Hat Text';
  src: url('/assets/fonts/RedHatText-VF.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Red Hat Display Fallback';
  src: local('Arial');
  size-adjust: 99.15%;
  ascent-override: 102.67%;
  descent-override: 30.76%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Red Hat Text Fallback';
  src: local('Arial');
  size-adjust: 99.86%;
  ascent-override: 101.94%;
  descent-override: 30.54%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;
  --bg: #F4F4F2;
  --surface: #FFFFFF;
  --text: #16181B;
  --muted: #656768;
  --border: #DBDBDA;
  --accent: #8E2B3A;
  --accent-hover: #7A2432;
  --accent-text: #6F1F2B;
  --accent-fg: #FFFFFF;
  --mark-bg: #8E2B3A;
  --mark-fg: #F4F4F2;
  --mark-ring: transparent;
  --wordmark: #16181B;
  --spine-a: #FFFFFF;
  --spine-b: #E8E7E3;
  --spine-c: #DCDAD4;
  --spine-ink: #16181B;
  --spine-ink-label: #2A2C30;
  --spine-ink-text: #E4E3DF;
  --spine-edge: rgba(22, 24, 27, 0.10);
  --label: #FFFFFF;
  --label-text: #3D3F41;
  --hole: rgba(22, 24, 27, 0.16);
  --shelf: #CFCDC8;
  --shadow: 0 18px 30px -18px rgba(22, 24, 27, 0.35);
  --font-display: 'Red Hat Display', 'Red Hat Display Fallback', system-ui, sans-serif;
  --font-sans: 'Red Hat Text', 'Red Hat Text Fallback', system-ui, sans-serif;
  --gutter: 16px;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181B;
    --surface: #1F2123;
    --text: #EDECE8;
    --muted: #9A9A99;
    --border: #3A3C3E;
    --accent: #CD636D;
    --accent-hover: #D9787F;
    --accent-text: #E2898F;
    --accent-fg: #16181B;
    --mark-bg: #8E2B3A;
    --mark-fg: #EDECE8;
    --mark-ring: rgba(237, 236, 232, 0.35);
    --wordmark: #EDECE8;
    --spine-a: #26282B;
    --spine-b: #2E3033;
    --spine-c: #36383B;
    --spine-ink: #EDECE8;
    --spine-ink-label: #D9D8D3;
    --spine-ink-text: #26282B;
    --spine-edge: rgba(0, 0, 0, 0.35);
    --label: #3A3C3F;
    --label-text: #D4D3CF;
    --hole: rgba(0, 0, 0, 0.45);
    --shelf: #45474A;
    --shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.8);
  }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

@media (min-width: 1100px) {
  :root { --gutter: 48px; }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 8px 12px;
  background: var(--text);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Üst şerit */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  display: inline-flex;
  line-height: 0;
}

.logo {
  height: 36px;
  width: auto;
}

.fill-mark-bg { fill: var(--mark-bg); }
.fill-mark-fg { fill: var(--mark-fg); }
.stroke-mark-ring { stroke: var(--mark-ring); }
.fill-wordmark { fill: var(--wordmark); }

.top-mail {
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.top-mail:hover {
  color: var(--text);
  border-bottom-color: currentColor;
}

/* Giriş bölümü */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 32px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    padding-top: 56px;
    padding-bottom: 48px;
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: pulse 2.8s ease-out 1.6s infinite;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.6rem, 1.2rem + 5.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 11em;
  text-wrap: balance;
}

.lede {
  margin: 28px 0 0;
  max-width: 34em;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.button:hover {
  background: var(--accent-hover);
}

.hint {
  font-size: 0.9375rem;
  color: var(--muted);
}

.hint a {
  color: var(--text);
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.hint a:hover {
  text-decoration-color: currentColor;
}

/* Raf: dosya sırtları */

.shelf {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: 300px;
  padding: 0 8px;
  border-bottom: 6px solid var(--shelf);
  border-radius: 0 0 4px 4px;
}

@media (min-width: 900px) {
  .shelf {
    height: 420px;
    gap: 10px;
  }
}

.spine {
  position: relative;
  flex: 0 0 auto;
  border-radius: 7px 7px 2px 2px;
  box-shadow: inset -6px 0 0 var(--spine-edge), var(--shadow);
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.spine::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 13%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: var(--hole);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.18);
}

.spine .tag {
  position: absolute;
  left: 50%;
  top: 9%;
  transform: translateX(-50%);
  width: 70%;
  padding: 10px 0;
  border-radius: 3px;
  background: var(--label);
  color: var(--label-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spine .tag span {
  transform: rotate(180deg);
}

.s1 { width: 50px; height: 84%; background: var(--spine-b); animation-delay: 80ms; }
.s2 { width: 40px; height: 72%; background: var(--spine-a); animation-delay: 150ms; }
.s3 { width: 60px; height: 94%; background: var(--mark-bg); animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 220ms both, pull 900ms cubic-bezier(0.3, 0.7, 0.2, 1) 1150ms forwards; }
.s4 { width: 46px; height: 80%; background: var(--spine-ink); animation-delay: 290ms; }
.s5 { width: 36px; height: 66%; background: var(--spine-c); animation-delay: 360ms; }
.s6 { width: 48px; height: 88%; background: var(--spine-a); animation-delay: 430ms; }

.s3 { box-shadow: inset -6px 0 0 rgba(0, 0, 0, 0.16), var(--shadow); }
.s3::after { background: rgba(0, 0, 0, 0.28); }
.s4 .tag { background: var(--spine-ink-label); color: var(--spine-ink-text); }
.s4::after { background: rgba(127, 127, 127, 0.35); }

.s3 .mark {
  position: absolute;
  left: 50%;
  top: 7%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
}

.s3 .mark .ground { fill: transparent; }
.s3 .mark .glyph { fill: var(--mark-fg); }

.s3 .spine-word {
  position: absolute;
  left: 50%;
  top: 24%;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  color: var(--mark-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Neler gelecek */

.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

@media (min-width: 900px) {
  .section {
    padding-top: 104px;
    padding-bottom: 104px;
  }
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.625rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16em;
  text-wrap: balance;
}

.section-lede {
  margin: 18px 0 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 1.0625rem;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px 48px;
  margin-top: 56px;
}

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.feature h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.feature p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 30em;
}

/* Güvenlik */

.band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.security {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .security {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--mark-bg);
}

.report {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.report a {
  color: var(--text);
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.report a:hover {
  text-decoration-color: currentColor;
}

/* Alt bilgi */

.foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 48px;
  padding-bottom: 56px;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .foot {
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 48px;
  }
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-mark {
  width: 28px;
  height: 28px;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a,
.foot-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.social a:hover,
.foot-links a:hover {
  color: var(--text);
  border-bottom-color: currentColor;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 900px) {
  .foot-links { align-items: flex-end; }
}

.foot-note {
  margin: 0;
}

/* Metin sayfaları (güvenlik bildirimi, 404) */

.doc {
  max-width: 44em;
  padding-top: 40px;
  padding-bottom: 96px;
}

.doc h1 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
  max-width: none;
}

.doc h2 {
  margin-top: 48px;
  font-size: 1.5rem;
}

.doc p,
.doc li {
  font-size: 1.0625rem;
  color: var(--text);
}

.doc .lede {
  color: var(--muted);
}

.doc ul {
  padding-left: 1.2em;
}

.doc li + li {
  margin-top: 8px;
}

.doc a {
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.doc a:hover {
  text-decoration-color: currentColor;
}

/* Hareket */

@keyframes rise {
  from { transform: translateY(28px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pull {
  from { transform: translateY(0); }
  to { transform: translateY(-22px); }
}

@keyframes pulse {
  0% { opacity: 0.7; transform: scale(0.6); }
  70% { opacity: 0; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(1.6); }
}

.hero-text > * {
  animation: fade 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-text > :nth-child(2) { animation-delay: 60ms; }
.hero-text > :nth-child(3) { animation-delay: 140ms; }
.hero-text > :nth-child(4) { animation-delay: 220ms; }

@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .s3 {
    transform: translateY(-22px);
  }
}
