/* ============ Qualion Danışmanlık ============ */
:root {
  --purple-900: #2e1f42;
  --purple-800: #3f2a5a;
  --purple-700: #5b3d7a;
  --purple-600: #6f4e93;
  --purple-500: #8a6aad;
  --purple-100: #efe9f5;
  --purple-50: #f7f4fa;
  --ink: #1b2128;
  --ink-2: #3a424c;
  --muted: #69717c;
  --line: #e4e1e8;
  --bg: #ffffff;
  --bg-soft: #f5f4f7;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(30, 20, 50, .06);
  --shadow: 0 12px 34px rgba(46, 31, 66, .10);
  --shadow-lg: 0 24px 60px rgba(46, 31, 66, .16);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 600; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--purple-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--purple-600); transform: rotate(45deg); }
.accent { color: var(--purple-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--purple-700); color: #fff; box-shadow: 0 8px 22px rgba(91, 61, 122, .28); }
.btn--primary:hover { background: var(--purple-800); box-shadow: 0 12px 28px rgba(91, 61, 122, .36); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--purple-500); color: var(--purple-700); }
.btn--light { background: #fff; color: var(--purple-800); }
.btn--light:hover { box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__icon { width: 42px; height: auto; border-radius: 10px; box-shadow: 0 2px 6px rgba(30,20,50,.12); }
.brand__divider { width: 1px; height: 38px; background: var(--purple-500); opacity: .7; }
.brand__text { display: flex; flex-direction: column; align-items: stretch; line-height: 1; }
.brand__name {
  font-family: var(--font-head); font-weight: 600; font-size: 1.42rem; letter-spacing: .12em;
  display: inline-flex; align-items: baseline;
}
.brand__a { width: .78em; height: .72em; margin: 0 .12em 0 .02em; align-self: center; transform: translateY(-.02em); }
.brand__sub {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
  font-family: var(--font-head); font-size: .56rem; font-weight: 600; letter-spacing: .32em; color: var(--purple-600);
}
.brand__sub::before, .brand__sub::after { content: ""; flex: 1; height: 1px; background: var(--purple-500); opacity: .7; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-weight: 500; font-size: .95rem; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--purple-600); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--purple-700); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; border-radius: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; }
}
@media (max-width: 420px) {
  .brand__name { font-size: 1.2rem; }
  .brand__icon { width: 34px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 96px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.75)),
    url("../img/bg-pattern.jpg") center / cover no-repeat;
  background-color: var(--bg-soft);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 80% 40%, rgba(138,106,173,.16), transparent 70%);
}
.hero__deco { position: absolute; right: -60px; top: 60px; width: 420px; color: var(--purple-500); opacity: .35; pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero__card {
  width: min(340px, 80vw); aspect-ratio: 1; border-radius: 32px;
  background: linear-gradient(145deg, #fbfbfc, #eeedf1);
  box-shadow: var(--shadow-lg), inset 0 1px 0 #fff;
  display: grid; place-items: center; transform: rotate(-3deg);
  animation: float 7s ease-in-out infinite;
}
.hero__card img { width: 64%; mix-blend-mode: multiply; }
.hero__chip {
  position: absolute; background: #fff; border-radius: 14px; padding: 12px 18px;
  box-shadow: var(--shadow); font-size: .9rem; color: var(--ink-2); white-space: nowrap;
}
.hero__chip strong { font-family: var(--font-head); color: var(--purple-700); font-size: 1.2rem; margin-right: 4px; }
.hero__chip--1 { top: 8%; left: -2%; animation: float 6s ease-in-out infinite .5s; }
.hero__chip--2 { bottom: 8%; right: -2%; animation: float 6.5s ease-in-out infinite 1s; }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (max-width: 960px) {
  .hero { padding: calc(var(--header-h) + 40px) 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { min-height: 300px; }
  .hero__card { width: min(260px, 70vw); }
  .hero__deco { width: 260px; right: -80px; top: 40px; }
}
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__chip { font-size: .8rem; padding: 10px 14px; }
  .hero__chip--1 { left: 0; }
  .hero__chip--2 { right: 0; }
}

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -44px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 0; max-width: 1152px; width: calc(100% - 48px);
}
.stat { padding: 28px 26px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--purple-700); line-height: 1.1; }
.stat__label { font-size: .9rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 960px) {
  .stats { margin-top: -32px; }
  .stats .container { padding: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); width: calc(100% - 32px); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .stat { padding: 20px 16px; }
  .stat__num { font-size: 1.35rem; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--tint { background: var(--bg-soft); }
.section--dark {
  background: linear-gradient(135deg, var(--purple-900), var(--purple-800) 60%, #4a3268);
  color: rgba(255,255,255,.78); position: relative; overflow: hidden;
}
.section--dark::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px;
  border: 1px solid rgba(255,255,255,.12);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(135deg, rgba(255,255,255,.06), transparent);
}
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.section__head--light h2 { color: #fff; }
.section__head--light p { color: rgba(255,255,255,.72); }
.section__head--light .eyebrow { color: #cbb5e6; }
.section__head--light .eyebrow::before { background: #cbb5e6; }
@media (max-width: 768px) { .section { padding: 72px 0; } .section__head { margin-bottom: 40px; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #f3f2f4; }
.about__media img { width: 100%; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--purple-700), var(--purple-500));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--purple-100); color: var(--purple-700); margin-bottom: 22px;
  transition: background .3s, color .3s;
}
.card:hover .card__icon { background: var(--purple-700); color: #fff; }
.card__icon svg, .module svg, .contact__mail svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; gap: 16px; } .card { padding: 26px 22px; } }

/* ---------- Odoo ---------- */
.odoo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--purple-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b3d7a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.modules { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.module {
  aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 10px; color: var(--purple-700);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.module:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--purple-100); }
.module span { font-size: .78rem; font-weight: 600; color: var(--ink-2); line-height: 1.25; }
@media (max-width: 1000px) {
  .odoo { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .modules { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .module span { font-size: .74rem; }
}

/* ---------- Infrastructure ---------- */
.infra { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 24px; align-items: stretch; }
.infra__option {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px;
  transition: transform .3s, box-shadow .3s;
}
.infra__option:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.infra__option:hover .card__icon { background: var(--purple-700); color: #fff; }
.infra__option p { color: var(--muted); font-size: .96rem; margin: 0; }
.infra__list {
  list-style: none; margin: 0; padding: 30px 28px; display: grid; gap: 14px; align-content: center;
  background: linear-gradient(135deg, var(--purple-900), var(--purple-700)); border-radius: var(--radius-lg);
  color: rgba(255,255,255,.88); font-size: .95rem; box-shadow: var(--shadow);
}
.infra__list li { position: relative; padding-left: 26px; }
.infra__list li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 9px; height: 9px;
  background: #cbb5e6; transform: rotate(45deg);
}
@media (max-width: 1000px) { .infra { grid-template-columns: 1fr 1fr; } .infra__list { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .infra { grid-template-columns: 1fr; gap: 16px; } .infra__list { grid-template-columns: 1fr; padding: 26px 22px; } .infra__option { padding: 26px 22px; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; }
.step {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 30px 26px; transition: background .3s, transform .3s;
}
.step:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.step h3 { color: #fff; }
.step p { font-size: .95rem; margin: 0; }
.step__num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  font-family: var(--font-head); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.why__content p { color: var(--muted); font-size: 1.05rem; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why__list li {
  padding: 24px; border-radius: var(--radius); background: var(--purple-50); border-left: 3px solid var(--purple-600);
  display: flex; flex-direction: column; gap: 6px;
}
.why__list strong { font-family: var(--font-head); }
.why__list span { font-size: .92rem; color: var(--muted); }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .why__list { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { padding: 0 0 20px; }
.cta__inner {
  background: linear-gradient(120deg, var(--purple-700), var(--purple-600) 55%, var(--purple-500));
  border-radius: var(--radius-lg); padding: 48px 56px; color: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  max-width: 1152px; width: calc(100% - 48px);
}
.cta__inner h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin-bottom: .4em; }
.cta__inner p { margin: 0; }
@media (max-width: 800px) {
  .cta__inner { width: calc(100% - 32px); }
  .cta__inner { flex-direction: column; align-items: flex-start; padding: 36px 26px; }
  .cta__inner .btn { width: 100%; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__info p { color: var(--muted); font-size: 1.05rem; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--purple-700);
  padding: 16px 22px; border-radius: var(--radius); background: var(--purple-50); border: 1px solid var(--purple-100);
  word-break: break-all; transition: background .2s;
}
.contact__mail:hover { background: var(--purple-100); }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow); display: grid; gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fcfbfd;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--purple-500); background: #fff; box-shadow: 0 0 0 4px rgba(138,106,173,.15);
}
.form .is-invalid { border-color: #c0392b; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form__status.ok { color: #1e7b4b; }
.form__status.err { color: #c0392b; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .form { padding: 22px 18px; } .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: #16121d; color: rgba(255,255,255,.62); padding: 64px 0 28px; margin-top: 90px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand p { margin: 18px 0 0; max-width: 340px; font-size: .95rem; }
.brand--footer { color: #fff; }
.brand--footer .brand__sub { color: #cbb5e6; }
.brand__iconwrap { background: #f4f3f6; border-radius: 12px; padding: 6px; display: inline-grid; }
.brand__iconwrap .brand__icon { width: 34px; }
.footer__nav { display: grid; gap: 10px; align-content: start; }
.footer__nav a:hover, .footer__contact a:hover { color: #fff; }
.footer__contact a { color: #cbb5e6; font-weight: 500; word-break: break-all; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; font-size: .85rem; }
.footer__note { opacity: .7; }
@media (max-width: 800px) { .footer__inner { grid-template-columns: 1fr; gap: 28px; } .footer { margin-top: 64px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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