/* =========================================================
   Codify — Kurumsal Web Sitesi
   Bolumler: 1) Degiskenler 2) Reset 3) Yardimcilar 4) Header
   5) Hero 6) Bolumler 7) Kartlar 8) Hakkimizda 9) Surec
   10) Teknolojiler 11) Iletisim 12) Footer 13) Animasyon
   14) Responsive
   ========================================================= */

/* ---------- 1) Degiskenler ---------- */
:root {
  --orange: #f5821f;
  --orange-dark: #dd6f10;
  --orange-soft: #fff2e4;

  --ink: #14161d;
  --ink-soft: #2b2f3a;
  --body: #5c6273;
  --muted: #8b90a0;

  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --line: #e7e9ef;

  --dark: #101219;
  --dark-2: #171a24;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(20, 22, 29, .05);
  --shadow: 0 12px 32px rgba(20, 22, 29, .08);
  --shadow-lg: 0 24px 60px rgba(20, 22, 29, .12);

  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

/* ---------- 2) Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3) Yardimcilar ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(245, 130, 31, .28); }
.btn--primary:hover { background: var(--orange-dark); box-shadow: 0 12px 26px rgba(245, 130, 31, .34); }
.btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.badge {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(245, 130, 31, .35);
  border-radius: 999px;
  background: rgba(245, 130, 31, .12);
  color: #ffb46b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 4) Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(16, 18, 25, .0);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: block; line-height: 0; }
.logo img { width: auto; height: 30px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link:hover, .nav__link.is-active { color: #fff; }

.header.is-scrolled .nav__link { color: var(--ink-soft); }
.header.is-scrolled .nav__link:hover, .header.is-scrolled .nav__link.is-active { color: var(--ink); }

.lang { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.header.is-scrolled .lang { background: var(--bg-alt); border: 1px solid var(--line); }
.lang__btn {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.header.is-scrolled .lang__btn { color: var(--muted); }
.lang__btn:hover { color: #fff; }
.header.is-scrolled .lang__btn:hover { color: var(--ink); }
.lang__btn.is-active { background: var(--orange); color: #fff; }
.header.is-scrolled .lang__btn.is-active { color: #fff; }

.burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.burger span {
  display: block;
  width: 24px; height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background-color .3s var(--ease);
}
.header.is-scrolled .burger span { background: var(--ink); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5) Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 96px) 0 96px;
  background: radial-gradient(120% 100% at 50% 0%, #1d2130 0%, var(--dark) 62%);
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 20%, transparent 100%);
  z-index: -1;
}
.hero__glow {
  position: absolute;
  top: -180px; left: 50%;
  width: 720px; height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(245, 130, 31, .3) 0%, transparent 68%);
  filter: blur(40px);
  z-index: -1;
}

.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__title {
  max-width: 18ch;
  margin: 22px 0 0;
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
}
.hero__desc {
  max-width: 62ch;
  margin-top: 20px;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: rgba(255, 255, 255, .68);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }


/* ---------- 6) Bolumler ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.section__desc { margin-top: 16px; font-size: 1.05rem; color: var(--body); }

.about .section__desc { margin-top: 16px; }

/* ---------- 7) Kartlar ---------- */
.card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(245, 130, 31, .4); box-shadow: var(--shadow); }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.card__icon svg { width: 25px; height: 25px; }
.card:hover .card__icon { background: var(--orange); color: #fff; }

.card__title { font-size: 1.16rem; font-weight: 700; }
.card__text { margin-top: 10px; font-size: .96rem; }

/* ---------- 8) Hakkimizda ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.features { display: grid; gap: 22px; margin-top: 36px; }
.features__item { display: flex; gap: 16px; align-items: flex-start; }
.features__check {
  position: relative;
  flex: 0 0 auto;
  width: 26px; height: 26px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--orange-soft);
}
.features__check::after {
  content: "";
  position: absolute;
  top: 7px; left: 9px;
  width: 6px; height: 11px;
  border: solid var(--orange);
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}
.features__title { font-size: 1.02rem; font-weight: 700; }
.features__text { margin-top: 3px; font-size: .94rem; }

.codebox {
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.codebox__bar { display: flex; gap: 7px; padding: 15px 18px; background: var(--dark-2); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.codebox__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.codebox__bar span:first-child { background: var(--orange); }
.codebox__code {
  margin: 0;
  padding: 26px 24px 30px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: #c9cede;
  overflow-x: auto;
}
.c-key { color: #ff9d4d; }
.c-cls { color: #7fd3ff; }
.c-str { color: #a7e8a0; }
.c-fn  { color: #f0c674; }

/* ---------- 9) Surec ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps__item { position: relative; padding-top: 30px; border-top: 2px solid var(--line); transition: border-color .3s var(--ease); }
.steps__item:hover { border-top-color: var(--orange); }
.steps__num { display: block; margin-bottom: 12px; font-size: 2rem; font-weight: 800; color: var(--orange); letter-spacing: -.03em; opacity: .95; }
.steps__title { font-size: 1.08rem; font-weight: 700; }
.steps__text { margin-top: 8px; font-size: .94rem; }

/* ---------- 10) Teknolojiler ---------- */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tag {
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  transition: transform .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.tag:hover { transform: translateY(-3px); border-color: var(--orange); color: var(--orange); }

/* ---------- 11) Iletisim ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin-inline: auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
a.contact-card:hover { transform: translateY(-6px); border-color: rgba(245, 130, 31, .4); box-shadow: var(--shadow); }

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.contact-card__icon svg { width: 25px; height: 25px; }
a.contact-card:hover .contact-card__icon { background: var(--orange); color: #fff; }

.contact-card__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-card__value { max-width: 30ch; font-size: 1.02rem; font-weight: 600; color: var(--ink); line-height: 1.5; }

.contact-cta { margin-top: 40px; text-align: center; }

/* ---------- 12) Footer ---------- */
.footer { padding: 64px 0 28px; background: var(--dark); color: rgba(255, 255, 255, .6); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.footer__brand { max-width: 320px; }
.footer__logo { width: auto; height: 28px; }
.footer__text { margin-top: 14px; font-size: .94rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: flex-start; }
.footer__nav a { font-size: .95rem; transition: color .2s var(--ease); }
.footer__nav a:hover { color: var(--orange); }
.footer__bottom { padding-top: 22px; font-size: .88rem; color: rgba(255, 255, 255, .42); text-align: center; }

/* ---------- 13) Animasyon ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 14) Responsive ---------- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .nav { gap: 24px; }
}

@media (max-width: 860px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__link { padding: 14px 4px; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }

  .lang { align-self: flex-start; margin-top: 20px; }
  .lang { background: var(--bg-alt); border: 1px solid var(--line); }
  .lang__btn { color: var(--muted); }
  .lang__btn.is-active { color: #fff; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--header-h) + 64px) 0 72px; }
  .grid--3, .steps { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 28px; }
}
