/* SAAS Group — ortak stil dosyası (grup sayfası + dört marka sayfası) */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-tr.woff2?v=2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* Font yüklenene kadar ölçüleri Archivo'ya eşitlenmiş yedek yazı tipi (kayma olmasın diye). */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 98.24%;
  ascent-override: 89.37%;
  descent-override: 21.38%;
  line-gap-override: 0%;
}

/* ---------- Tokenlar ---------- */

:root {
  /* Tek renk düzeni: grup ve tüm marka siteleri aynı */
  --paper: #ffffff;
  --surface: #f3f4f6;
  --ink: #0e0f11;
  --ink-muted: #5c6169;
  --ink-soft: #b4b9c1;
  --rule: #e2e4e8;
  --rule-strong: #c5c9cf;
  --danger: #b42318;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--ink-muted);
  --line: var(--rule);
  --line-strong: var(--rule-strong);

  --font: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 92rem;
  --bleed: clamp(0.75rem, 1.5vw, 1.5rem);
  --chip: 0.75rem;

  --step-display: clamp(3rem, 1.6rem + 5.2vw, 6rem);
  --step-name: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem);
  --step-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --step-small: 0.9375rem;
  --step-tiny: 0.875rem;
  color-scheme: light;
}

/* ---------- Temel ---------- */

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 100%;
  line-height: 1.5;
  font-kerning: normal;
  word-spacing: 0.05em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scrollbar-color: var(--line-strong) transparent;
  caret-color: var(--fg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ---------- İskelet ---------- */

.frame {
  display: flex;
  flex-direction: column;
  width: min(100% - 2 * var(--gutter), var(--measure));
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2rem, 6vh, 4.5rem);
}

/* ---------- Üst bant ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: clamp(1.25rem, 3.5vh, 2.25rem) 0;
}

.logo {
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  line-height: 1;
  padding-block: 0.375rem;
}

.wordmark {
  white-space: nowrap;
}

.wordmark__saas {
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.015em;
}

.wordmark__word {
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Giriş ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 2.5rem);
  row-gap: clamp(1.25rem, 3vh, 2rem);
  align-items: end;
}

.display {
  grid-column: 1 / span 8;
  font-size: var(--step-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  word-spacing: normal;
  text-wrap: balance;
}

.display__line {
  display: block;
}

/* Marka sayfaları: grup sayfasındaki "SAAS" ile aynı dev ve dar kelime */
.display--word {
  font-size: min(13.5vw, 12rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.8;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.hero--brand {
  align-items: center;
}

.hero--brand .display {
  grid-column: 1 / span 7;
}

.hero--brand .intro {
  grid-column: 8 / -1;
}

/* Grup sayfası: tek satır, dar ve yüksek "SAAS" */
.display--group {
  font-size: clamp(6rem, 1rem + 18vw, 18rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.8;
  letter-spacing: -0.005em;
}

.hero--group {
  align-items: center;
}

.hero--group .display {
  grid-column: 1 / span 6;
  white-space: nowrap;
}

/* Metin, yanındaki "SAAS" yüksekliğine sığacak ölçüde */
.intro {
  grid-column: 7 / -1;
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
}

.intro p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.intro .intro__statement {
  margin-bottom: 0.25rem;
  color: var(--fg);
  font-size: clamp(1.25rem, 0.9rem + 0.8vw, 1.625rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lead {
  grid-column: 9 / -1;
  max-width: 34ch;
  padding-bottom: 0.3em;
  color: var(--muted);
  font-size: var(--step-lead);
  line-height: 1.45;
  text-wrap: pretty;
}

/* ---------- Grup: şirket kartları ---------- */

.companies {
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.cards > li {
  display: flex;
}

.card {
  --c-bg: var(--surface);
  --c-fg: var(--ink);
  --c-muted: var(--ink-muted);
  --c-line: color-mix(in oklab, var(--c-fg) 14%, transparent);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: clamp(16rem, 36vh, 21rem);
  padding: clamp(1.25rem, 1.6vw, 1.75rem);
  border-radius: 12px;
  background: var(--c-bg);
  color: var(--c-fg);
  box-shadow: inset 0 0 0 1px rgb(14 15 17 / 0.04);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.card:focus-visible {
  --c-bg: var(--ink);
  --c-fg: var(--paper);
  --c-muted: var(--ink-soft);
}

.card:focus-visible .card__go {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem 0.375rem 0.625rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--c-bg) 80%, transparent);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  transition: border-color 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}

.card__status::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: currentColor;
}

.card__go {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: color-mix(in oklab, var(--c-bg) 80%, transparent);
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.card__go .icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.6s var(--ease-out);
}

.card__body,
.card__name {
  display: block;
}

.card__name {
  font-size: clamp(1.375rem, 0.9rem + 0.75vw, 1.75rem);
  line-height: 1.05;
}

.card__name .wordmark {
  white-space: normal;
}

.card__meta {
  display: grid;
  gap: 0.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-line);
  font-size: var(--step-small);
  line-height: 1.35;
  transition: border-color 0.4s var(--ease-out);
}

.card__sector {
  font-weight: 500;
}

.card__domain {
  color: var(--c-muted);
  transition: color 0.4s var(--ease-out);
}

@media (hover: hover) {
  .card:hover {
    --c-bg: var(--ink);
    --c-fg: var(--paper);
    --c-muted: var(--ink-soft);
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -28px rgb(14 15 17 / 0.6);
  }

  .card:hover .card__go {
    border-color: var(--paper);
    background: var(--paper);
    color: var(--ink);
  }

  .card:hover .card__go .icon {
    transform: rotate(45deg);
  }
}

/* ---------- Marka: durum etiketi ve haber ver formu ---------- */

.intro .pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0.375rem 0.75rem 0.375rem 0.625rem;
  border: 1px solid color-mix(in oklab, var(--fg) 14%, transparent);
  border-radius: 999px;
  color: var(--fg);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
}

.intro .pill::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: currentColor;
}

.notify {
  margin-top: 0.5rem;
}

.intro .notify__done {
  color: var(--fg);
  font-weight: 500;
}

.notify__form {
  display: grid;
  gap: 0.875rem;
}

.notify__row {
  display: flex;
  gap: 0.5rem;
}

.input {
  flex: 1;
  min-width: 0;
  height: 3rem;
  padding: 0 1.125rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.3s var(--ease-out);
}

.input::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

.input:focus-visible {
  border-color: var(--fg);
  outline-offset: 2px;
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
}

.notify .button {
  justify-content: center;
  height: 3rem;
  padding: 0 1.375rem;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0.125rem 0 0;
  accent-color: var(--ink);
}

.intro .notify__error {
  color: var(--danger);
  font-size: var(--step-small);
  font-weight: 500;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 404 ---------- */

.page--not-found .display {
  grid-column: 1 / -1;
}

.page--not-found .lead {
  grid-column: 1 / span 6;
}

.hero__action {
  grid-column: 1 / -1;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9375rem 1.375rem 0.9375rem 1.125rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.button .icon {
  width: 1.125rem;
  height: 1.125rem;
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--fg) 70%, transparent);
  }
}

/* ---------- Alt bilgi ---------- */

.footer {
  padding-block: 1.25rem clamp(1.5rem, 3.5vh, 2.25rem);
  color: var(--muted);
  font-size: var(--step-tiny);
  font-variant-numeric: tabular-nums;
}

/* ---------- Duyarlı düzen ---------- */

@media (max-width: 82rem) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card {
    min-height: 12rem;
  }
}

@media (max-width: 56rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .card {
    min-height: 14rem;
    gap: 2rem;
  }
}

@media (max-width: 64rem) {
  .display,
  .lead,
  .page--not-found .lead {
    grid-column: 1 / -1;
  }

  .hero--group .display,
  .hero--brand .display,
  .intro,
  .hero--brand .intro {
    grid-column: 1 / -1;
  }

  .display--word {
    font-size: 21vw;
  }

  .intro {
    max-width: 36rem;
  }
}

@media (max-width: 30rem) {
  .notify__row {
    flex-direction: column;
  }
}

/* ---------- Hareket: tek, düzenlenmiş bir açılış ---------- */

@media (prefers-reduced-motion: no-preference) {
  .display__line {
    animation: rise 1.1s var(--ease-out) both;
  }

  .display__line + .display__line {
    animation-delay: 80ms;
  }

  .cards > li {
    animation: settle 1s var(--ease-out) both;
    animation-delay: 220ms;
  }

  .cards > li:nth-child(2) { animation-delay: 280ms; }
  .cards > li:nth-child(3) { animation-delay: 340ms; }
  .cards > li:nth-child(4) { animation-delay: 400ms; }
  .cards > li:nth-child(5) { animation-delay: 460ms; }
}

/* İçerik ilk karede görünürdür; yalnızca konum ve bulanıklık hareket eder. */
@keyframes rise {
  from {
    transform: translateY(0.3em);
    filter: blur(6px);
  }
}

@keyframes settle {
  from {
    transform: translateY(0.5rem);
  }
}
