/* TakipoCRM tanıtım (landing) sayfası — #910.
   Fontlar /css/fonts.css'ten (IBM Plex Sans/Mono, lokal woff2) gelir; burada inline yok. */

:root {
  --ink: #16233F;
  --ink-2: #46536E;
  --ink-3: #6C7894;
  --blue: #2F6BFF;
  --blue-ink: #1E4FD6;
  --green: #14B37A;
  --green-ink: #0E8F60;
  --bg: #F4F6FB;
  --bg-2: #EAEEF7;
  --surface: #FFFFFF;
  --surface-2: #F8FAFE;
  --line: #E3E8F2;
  --line-2: #D3DAE9;
  --bar-1: #C6D5FF;
  --bar-2: #8AA8F7;
  --shadow-card: 0 1px 3px rgba(22,35,63,.05), 0 18px 44px -18px rgba(22,35,63,.22);
  --shadow-soft: 0 1px 2px rgba(22,35,63,.04), 0 8px 24px -14px rgba(22,35,63,.16);
  --r: 14px;
  --r-lg: 20px;
  --r-sm: 9px;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  --maxw: 1160px;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* Landing açık temaya sabittir — koyu tema/işletim sistemi tercihi tetiklenmez. */

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0;
}

/* ── Brand mark ── */
.mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 24px; }
.mark span { width: 6px; border-radius: 2px 2px 1px 1px; display: block; }
.mark .m1 { height: 10px; background: var(--bar-1); }
.mark .m2 { height: 16px; background: var(--bar-2); }
.mark .m3 { height: 24px; background: var(--green); position: relative; }
.mark .m3::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 6px solid var(--green);
}
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo .word { font-weight: 700; font-size: 1.24rem; letter-spacing: -.02em; color: var(--ink); }
.logo .word b { color: var(--blue); font-weight: 700; }
.logo .word i { color: var(--green); font-style: normal; font-weight: 700; }

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { font-size: .92rem; color: var(--ink-2); font-weight: 500; transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.nav-spacer { flex: 1; }

/* Embedded login */
.login {
  display: flex; align-items: center; gap: 8px; position: relative;
}
.login form { display: flex; align-items: center; gap: 8px; }
.login input {
  font-family: var(--sans); font-size: .86rem;
  height: 38px; width: 148px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.login input::placeholder { color: var(--ink-3); }
.login input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}
.btn {
  font-family: var(--sans); font-weight: 600; font-size: .9rem;
  border: 0; cursor: pointer; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s var(--ease), box-shadow .18s, background .18s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary {
  background: var(--blue); color: #fff; height: 38px; padding: 0 18px;
  box-shadow: 0 1px 2px rgba(47,107,255,.35), 0 8px 18px -6px rgba(47,107,255,.5);
}
.btn-primary:hover { background: var(--blue-ink); }
.btn-ghost {
  background: transparent; color: var(--ink); height: 38px; padding: 0 16px;
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 1rem; }
.forgot { font-size: .78rem; color: var(--ink-3); white-space: nowrap; transition: color .18s; cursor: pointer; }
.forgot:hover { color: var(--blue); }
.login-forgot { display: flex; flex-direction: column; align-items: flex-start; }

/* Login hata satırı — gömülü formun altında küçük kırmızı bildirim */
#login-error:empty { display: none; }
#login-error {
  position: absolute; top: calc(100% + 8px); right: 0;
  max-width: 320px; margin: 0;
  font-size: .8rem; color: #C0264B; font-weight: 500;
  background: color-mix(in srgb, #C0264B 8%, var(--surface));
  border: 1px solid color-mix(in srgb, #C0264B 26%, transparent);
  padding: 7px 12px; border-radius: var(--r-sm);
  box-shadow: var(--shadow-soft); z-index: 60;
}

/* ── Hero ── */
.hero { padding: 76px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em;
  font-weight: 700; margin: 18px 0 0; text-wrap: balance;
}
.hero h1 .u {
  background: linear-gradient(120deg, var(--blue), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 1.12rem; color: var(--ink-2); margin: 22px 0 0; max-width: 34ch;
}
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust {
  font-family: var(--mono); font-size: .74rem; color: var(--ink-3);
  margin-top: 22px; letter-spacing: .01em; display: flex; gap: 14px; flex-wrap: wrap;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); display: inline-block; }

/* Product preview card */
.preview {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden;
}
.preview-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.preview-top .t { font-weight: 600; font-size: .96rem; display: flex; align-items: center; gap: 9px; }
.preview-top .d { font-family: var(--mono); font-size: .74rem; color: var(--ink-3); }
.preview-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.pv-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
}
.pv-label { font-size: .78rem; color: var(--ink-3); font-weight: 500; }
.pv-main { font-weight: 600; font-size: 1.02rem; margin-top: 2px; }
.pv-tag {
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  padding: 4px 9px; border-radius: 20px;
}
.pv-tag.up { color: var(--green-ink); background: color-mix(in srgb, var(--green) 14%, transparent); }
.pv-tag.blue { color: var(--blue-ink); background: color-mix(in srgb, var(--blue) 13%, transparent); }
.spark { display: inline-flex; align-items: flex-end; gap: 3px; height: 30px; }
.spark i {
  width: 8px; border-radius: 2px; display: block;
  background: linear-gradient(180deg, var(--bar-2), var(--blue));
  animation: grow .7s var(--ease) both;
}
.spark i:nth-child(1){ height: 30%; animation-delay: .05s;}
.spark i:nth-child(2){ height: 46%; animation-delay: .1s;}
.spark i:nth-child(3){ height: 40%; animation-delay: .15s;}
.spark i:nth-child(4){ height: 62%; animation-delay: .2s;}
.spark i:nth-child(5){ height: 78%; animation-delay: .25s;}
.spark i:nth-child(6){ height: 100%; background: linear-gradient(180deg, var(--green), var(--green-ink)); animation-delay: .3s;}
@keyframes grow { from { height: 0; opacity: .3; } }
.prog { height: 8px; border-radius: 5px; background: var(--bg-2); overflow: hidden; width: 120px; }
.prog i { display: block; height: 100%; width: 72%; border-radius: 5px; background: linear-gradient(90deg, var(--blue), var(--green)); }

/* ── Values ── */
.values { padding: 30px 0 20px; }
.values-head { text-align: center; margin-bottom: 34px; }
.values-head h2 { font-size: clamp(1.6rem,3vw,2.1rem); letter-spacing:-.025em; margin:.5rem 0 0; font-weight:700; text-wrap: balance; }
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 20px; box-shadow: var(--shadow-soft);
  transition: transform .2s var(--ease), border-color .2s;
}
.vcard:hover { transform: translateY(-3px); border-color: var(--line-2); }
.vcard .vmark { display:flex; align-items:flex-end; gap:3px; height: 26px; margin-bottom: 14px; }
.vcard .vmark b { width: 6px; border-radius: 2px; display:block; }
.vcard h3 { font-size: 1.04rem; margin: 0 0 6px; font-weight: 600; letter-spacing: -.01em; }
.vcard p { font-size: .9rem; color: var(--ink-2); margin: 0; }

/* ── Editions ── */
.editions { padding: 58px 0; }
.ed-head { text-align:center; max-width: 60ch; margin: 0 auto 38px; }
.ed-head h2 { font-size: clamp(1.7rem,3.2vw,2.3rem); letter-spacing:-.03em; margin:.5rem 0 10px; font-weight:700; text-wrap: balance; }
.ed-head p { color: var(--ink-2); margin: 0; }
.edgrid { display: grid; grid-template-columns: minmax(0, 560px); justify-content: center; gap: 22px; }
.edcard {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px;
  background: var(--surface); box-shadow: var(--shadow-soft); position: relative;
  display: flex; flex-direction: column;
}
.edcard.pro {
  border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 5%, var(--surface)), var(--surface));
}
.ed-badge {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}
.edcard h3 { font-size: 1.5rem; margin: 12px 0 6px; letter-spacing: -.02em; font-weight: 700; }
.edcard h3 em { font-style: normal; color: var(--blue); }
.edcard h3 .g { color: var(--green); }
.edcard > p { color: var(--ink-2); margin: 0 0 20px; font-size: .96rem; }
.edlist { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.edlist li { display: flex; align-items: flex-start; gap: 11px; font-size: .94rem; color: var(--ink); }
.edlist svg { flex-shrink: 0; margin-top: 3px; }
.edcard .btn { margin-top: auto; align-self: flex-start; }

/* ── Özellikler / yetenek grid (#910) ── */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px; box-shadow: var(--shadow-soft);
  transition: transform .2s var(--ease), border-color .2s;
}
.fcard:hover { transform: translateY(-3px); border-color: var(--line-2); }
.ficon {
  width: 42px; height: 42px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 15px; color: var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, var(--surface-2));
}
.ficon svg { width: 22px; height: 22px; }
.fcard.g .ficon { color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--surface-2)); }
.fcard h3 { font-size: 1.04rem; margin: 0 0 7px; font-weight: 600; letter-spacing: -.01em; }
.fcard p { font-size: .9rem; color: var(--ink-2); margin: 0; line-height: 1.55; }
.feat-more { text-align: center; max-width: 60ch; margin: 26px auto 0; font-size: .92rem; color: var(--ink-3); }
.feat-more b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 940px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .fgrid { grid-template-columns: 1fr; } }

/* ── Closing ── */
.closing { padding: 20px 0 76px; }
.closing-inner {
  background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--ink) 78%, var(--blue)));
  border-radius: var(--r-lg); padding: 54px 40px; text-align: center; position: relative; overflow: hidden;
}
.closing-inner::after {
  content:""; position:absolute; inset:0; opacity:.5;
  background: radial-gradient(600px 200px at 80% -20%, color-mix(in srgb, var(--green) 40%, transparent), transparent);
  pointer-events: none;
}
.closing h2 { color: #fff; font-size: clamp(1.7rem,3.4vw,2.4rem); margin: 0 0 10px; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; position: relative; }
.closing p { color: rgba(255,255,255,.72); margin: 0 0 26px; position: relative; }
.closing .btn-primary { position: relative; }

/* ── Footer ── */
footer { border-top: 1px solid var(--line); padding: 40px 0; }
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.foot .ftag { color: var(--ink-3); font-size: .9rem; margin: 12px 0 0; max-width: 30ch; }
.foot-links { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col .h { font-family: var(--mono); font-size: .68rem; letter-spacing:.1em; text-transform: uppercase; color: var(--ink-3); }
.foot-col a { font-size: .9rem; color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); display:flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); }
.foot-bottom .mono { font-family: var(--mono); }

.mobile-login-btn { display: none; }

/* ── Şifremi unuttum modalı (#910) ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); width: 100%; max-width: 400px; padding: 30px;
}
.modal h3 { margin: 0 0 8px; font-size: 1.24rem; letter-spacing: -.02em; font-weight: 700; }
.modal p.modal-sub { margin: 0 0 20px; font-size: .9rem; color: var(--ink-2); }
.modal label { display: block; font-size: .82rem; font-weight: 500; color: var(--ink-2); margin: 0 0 6px; }
.modal input[type=email] {
  font-family: var(--sans); font-size: .92rem; width: 100%; height: 42px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.modal input[type=email]:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}
.modal-msg { margin: 12px 0 0; font-size: .84rem; min-height: 1.2em; }
.modal-msg.ok { color: var(--green-ink); }
.modal-msg.err { color: #C0264B; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }
.btn-full { width: 100%; }

/* ── Responsive ── */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav .mobile-login-btn { display: inline-flex; }
  /* Gömülü login mobilde dropdown olur */
  .login {
    display: none; position: absolute; top: 64px; right: 24px; left: 24px;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--shadow-card); padding: 18px;
  }
  .login.login--open { display: flex; }
  .login form { flex-direction: column; align-items: stretch; gap: 10px; }
  .login input { width: 100%; height: 44px; }
  .login-forgot { align-items: stretch; }
  .login .btn-primary { width: 100%; height: 44px; }
  .login-forgot .btn-primary { width: 100%; }
  #login-error { position: static; max-width: none; margin-top: 4px; }
}
@media (min-width: 941px) { .nav .mobile-login-btn { display: none; } }
@media (max-width: 620px) {
  .vgrid { grid-template-columns: 1fr; }
  .edgrid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 20px; }
  .closing-inner { padding: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
