/* ============================================================================
   FINALMATIK — PREMIUM REDESIGN KATMANI  ·  "Prestij: lacivert + altın"
   style.css'ten SONRA yüklenir; bilinçli override eder.
   ============================================================================ */

:root{
  --font-display: 'Sora', 'Inter', system-ui, -apple-system, sans-serif;
  --navy-1: #0a1f49;
  --navy-2: #0d2a5e;
  --navy-3: #07163a;
  --hero-text: #e9efff;
  --hero-dim: #9fb0d6;
}

/* ---------------- Tipografi ---------------- */
h1, h2, h3, .step-num, .value, .brand, .section-head h2, .demo-score .num {
  font-family: var(--font-display);
  letter-spacing: -0.8px;
}
body { letter-spacing: -0.01em; }
section { padding: 90px 0; }
.section-head { margin-bottom: 52px; }
.section-head .kicker, .kicker {
  color: var(--gold-deep); letter-spacing: 2.6px; font-weight: 700; font-size: 12.5px;
}
.section-head h2 { font-size: clamp(27px, 3.6vw, 42px); letter-spacing: -1.2px; color: var(--ink); }

/* ---------------- NAV (beyaz, cam, altın CTA) ---------------- */
.nav { background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--border); }
.nav-links a { font-weight: 600; }
/* Logo her zeminde temiz dursun (koyu footer'da beyaz plaka) */
.nav { padding: 6px 0; }
.nav .nav-inner { min-height: 68px; }
.brand-logo { height: 58px; background: #fff; border-radius: 10px; padding: 2px 5px; }
.brand.lg .brand-logo { height: 76px; }
.footer .brand-logo { height: 52px; }
/* "Ücretsiz Dene" nav CTA'sı altın */
.nav-actions .btn-primary { background: var(--grad-gold); color: #2b1d00; box-shadow: var(--shadow-gold); border: none; font-weight: 700; }
.nav-actions .btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ---------------- HERO (koyu lacivert + altın) ---------------- */
.hero {
  background:
    radial-gradient(55% 75% at 82% 8%, rgba(245,183,13,.16), transparent 58%),
    radial-gradient(48% 60% at 10% 92%, rgba(10,115,219,.26), transparent 60%),
    linear-gradient(162deg, var(--navy-1) 0%, var(--navy-2) 52%, var(--navy-3) 100%);
  color: var(--hero-text); position: relative; overflow: hidden;
  padding: 74px 0 96px; border-bottom: none;
}
.hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-gold); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 70%); opacity: .5; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.03; letter-spacing: -1.8px; font-weight: 800; }
.hero .grad-text { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero .lead { color: #c0cdee; font-size: clamp(16px, 1.55vw, 19px); max-width: 50ch; margin-top: 22px; }
.hero .dim { color: var(--hero-dim) !important; }
.hero .eyebrow { background: rgba(245,183,13,.12); border: 1px solid rgba(245,183,13,.34); color: #ffd56a; backdrop-filter: blur(4px); }
.hero .eyebrow .dot { background: var(--gold-bright); box-shadow: 0 0 12px var(--gold-bright); }
/* Hero CTA'ları */
.hero-cta .btn-primary { background: var(--grad-gold); color: #2b1d00; box-shadow: var(--shadow-gold); font-weight: 700; }
.hero-cta .btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); }
.hero-cta .btn-ghost { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.28); color: #fff; }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: var(--gold); color: #fff; }

/* Demo kartı — premium cam / dark + altın kenar */
.demo-card {
  background: linear-gradient(180deg, rgba(16,38,84,.94), rgba(9,24,58,.96));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 46px 90px -34px rgba(0,0,0,.65), 0 0 0 1px rgba(245,183,13,.07);
  border-radius: 22px; backdrop-filter: blur(8px);
}
.demo-head .title { color: #cfd9f3; }
.demo-file { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.demo-file .dim, .demo-step, .demo-score .lbl { color: #b6c4e6 !important; }
.demo-score { background: rgba(245,183,13,.07); border: 1px solid rgba(245,183,13,.22); border-radius: 16px; }
.demo-feedback .fb-item { color: #cdd8f2; }
.fb-item.ok { border-left: 3px solid var(--gold); }
.fb-item.warn { border-left: 3px solid var(--gold-bright); }

/* ---------------- NASIL İŞLER — premium adımlar ---------------- */
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px 30px; position: relative; overflow: hidden; transition: transform .28s, box-shadow .28s, border-color .28s; }
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.step-card::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.step-card:hover::after { transform: scaleX(1); }
.step-num { font-size: 48px; font-weight: 800; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 14px; }
.step-card h3 { color: var(--ink); }

/* ---------------- NELER SUNAR — premium kartlar ---------------- */
.feature { border: 1px solid var(--border); border-radius: 20px; transition: transform .26s, box-shadow .26s, border-color .26s; background: var(--surface); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.feature .ic { background: linear-gradient(135deg, var(--gold-soft), #ffffff); border: 1px solid var(--gold-soft); color: var(--gold-deep); border-radius: 14px; }
.feature h3 { color: var(--ink); }
.feature .metric .big { font-family: var(--font-display); }
.feature .metric .big:last-child { color: var(--gold-deep); -webkit-text-fill-color: initial; background: none; }

/* ---------------- ETKİ — koyu lacivert bant + altın sayılar ---------------- */
.stats-band { background: linear-gradient(135deg, var(--navy-1), var(--navy-2) 58%, var(--navy-3)); color: #fff; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-gold); }
.stats-band .kicker { color: var(--gold); }
.stats-band .section-head h2 { color: #fff; }
.stats-band .value { font-family: var(--font-display); background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats-band .label { color: #a9b8db; }

/* ---------------- BİZ KİMİZ ---------------- */
.about-card { border: 1px solid var(--border); border-radius: 16px; transition: border-color .25s, transform .25s; }
.about-card:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.about-card h4 { color: var(--gold-deep); }
.tag { background: var(--gold-soft); border: 1px solid #f3dca0; color: var(--gold-deep); }

/* ---------------- CTA — koyu lacivert + altın glow ---------------- */
.cta-inner { background: linear-gradient(135deg, var(--navy-1), var(--navy-2) 55%, var(--navy-3)); position: relative; overflow: hidden; border: 1px solid rgba(245,183,13,.22); box-shadow: 0 40px 80px -34px rgba(8,22,54,.7); }
.cta-inner::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 130% at 82% 0%, rgba(245,183,13,.2), transparent 58%); }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #c6d2ef; }
.cta-inner .btn { background: var(--grad-gold); color: #2b1d00; font-weight: 700; box-shadow: var(--shadow-gold); }
.cta-inner .btn:hover { filter: brightness(1.06); transform: translateY(-2px); }

/* ---------------- FOOTER — koyu lacivert premium ---------------- */
.footer { background: var(--navy-3); color: #a9b8db; position: relative; border-top: none; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-gold); }
.footer h5 { color: #fff; }
.footer a { color: #a9b8db; }
.footer a:hover { color: var(--gold-bright); }
.footer .desc { color: #8294ba; }
.footer-bottom { color: #6f82a9; border-top-color: rgba(255,255,255,.08); }
.footer .brand-logo { background: #fff; }

/* ---------------- Formlar / iletişim ---------------- */
.contact-item .ic { background: var(--gold-soft); color: var(--gold-deep); }
.btn-primary.btn-block { background: var(--grad); }

/* ============================================================================
   YENİ YAPI (v2) — ortalanmış hero · yatay pipeline · zig-zag akış · bento
   ============================================================================ */

/* Hero ortalanmış */
.hero--center { text-align: center; padding: 72px 0 84px; }
.hero--center .hero-top { max-width: 880px; margin: 0 auto; }
.hero--center .eyebrow { margin: 0 auto 24px; }
.hero--center h1 { margin: 0 auto; max-width: 18ch; }
.hero.hero--center p.lead { margin: 24px auto 0; text-align: center; max-width: 60ch; }
.hero--center .hero-cta { justify-content: center; }

/* Pipeline (yatay akış şeridi) */
.pipeline { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.pipeline::before { content: ""; position: absolute; top: 48px; left: 9%; right: 9%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,183,13,.55), transparent); z-index: 0; }
.pl-stage { position: relative; z-index: 1; background: linear-gradient(180deg, rgba(16,38,84,.92), rgba(9,24,58,.94));
  border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 26px 20px; text-align: center; }
.pl-ic { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 15px; display: grid; place-items: center;
  font-size: 25px; background: rgba(245,183,13,.14); border: 1px solid rgba(245,183,13,.3); }
.pl-k { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 16px; margin-bottom: 6px; }
.pl-t { color: #a9b8db; font-size: 13px; line-height: 1.5; }
.pl-score { font-family: var(--font-display); font-weight: 800; font-size: 42px; line-height: 1; margin-bottom: 8px;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pl-score small { font-size: 16px; -webkit-text-fill-color: #8ea0c8; }
.pl-stage--out { border-color: rgba(245,183,13,.32); }

/* Zig-zag akış satırları */
.section-head.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.flow-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 60px; }
.flow-row:last-child { margin-bottom: 0; }
.flow-row--rev .flow-text { order: 2; }
.flow-num { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 14px;
  color: var(--gold-deep); letter-spacing: 1.5px; padding: 6px 15px; border: 1px solid #f3dca0;
  border-radius: 999px; background: var(--gold-soft); margin-bottom: 20px; }
.flow-text h3 { font-family: var(--font-display); font-size: clamp(22px, 2.7vw, 31px); letter-spacing: -0.8px; color: var(--ink); margin-bottom: 14px; }
.flow-text p { color: var(--text-muted); font-size: 16.5px; line-height: 1.7; max-width: 44ch; }
.flow-visual { display: flex; justify-content: center; }

/* Mini mockup kartları */
.mini-card { width: 100%; max-width: 370px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.mini-ttl { font-weight: 700; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.mini-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 15px; color: var(--text); }
.mini-row b { font-family: var(--font-display); color: var(--teal-deep); }
.mini-total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 14px; border-top: 2px solid var(--border-strong); font-weight: 700; color: var(--ink); }
.mini-total b { font-family: var(--font-display); background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 21px; }
.up-file { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; font-size: 14px; color: var(--text); }
.up-file i { margin-left: auto; font-style: normal; font-weight: 700; }
.up-file i.ok { color: var(--ok); } .up-file i.run { color: var(--gold-deep); }
.up-bar { height: 8px; border-radius: 99px; background: var(--bg-3); overflow: hidden; margin-top: 6px; }
.up-bar span { display: block; height: 100%; width: 66%; background: var(--grad-gold); border-radius: 99px; }
.mr-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mr-score { font-family: var(--font-display); font-weight: 800; font-size: 42px; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mr-score small { font-size: 15px; -webkit-text-fill-color: var(--text-dim); }
.mr-badge { font-size: 12px; font-weight: 700; color: #1a7a4d; background: #e7f6ee; border: 1px solid #c6ead6; padding: 6px 13px; border-radius: 999px; }
.mr-fb { font-size: 14.5px; padding: 9px 0; }
.mr-fb.ok { color: #1a7a4d; } .mr-fb.warn { color: #9a6a00; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.b-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.b-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.b-tile .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 25px;
  background: linear-gradient(135deg, var(--gold-soft), #fff); border: 1px solid var(--gold-soft); margin-bottom: 18px; }
.b-tile h3 { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.6px; color: var(--ink); margin-bottom: 12px; }
.b-tile h4 { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.3px; color: var(--ink); margin-bottom: 9px; }
.b-tile p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.b-hero { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--navy-1), var(--navy-2)); border-color: rgba(245,183,13,.22); }
.b-hero .ic { background: rgba(245,183,13,.16); border-color: rgba(245,183,13,.3); }
.b-hero h3 { color: #fff; font-size: 29px; }
.b-hero p { color: #c0cdee; font-size: 16px; }
.b-metric { margin-top: auto; padding-top: 24px; display: flex; align-items: baseline; gap: 16px; }
.b-metric .big { font-family: var(--font-display); font-weight: 800; font-size: 42px; }
.b-metric .x { color: var(--gold-bright); font-weight: 700; font-size: 16px; }
.b-wide { grid-column: span 2; }

/* Responsive */
@media (max-width: 960px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); } .pipeline::before { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); } .b-hero { grid-column: span 2; grid-row: auto; } .b-wide { grid-column: span 2; }
  .flow-row { grid-template-columns: 1fr; gap: 28px; } .flow-row--rev .flow-text { order: 0; } .flow-visual { order: -1; }
}
@media (max-width: 560px) {
  .pipeline { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; } .b-hero, .b-wide { grid-column: auto; }
}

/* ============================================================================
   KULLANICI PANELİ (app) — premium
   ============================================================================ */

/* Zemin — hafif lacivert tint + üstte yumuşak degrade */
.app-shell { background:
  radial-gradient(70% 45% at 50% 0%, #e7eefb 0%, transparent 72%),
  linear-gradient(180deg, #f3f6fc, #f6f8fd); }
.app-main { padding-top: 44px; }

/* Aktif menü — altın alt çizgi */
.nav-links a { position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { font-weight: 700; }
.nav-links a.active::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: -7px; height: 2.5px; border-radius: 2px; background: var(--grad-gold); }

/* Sayfa başlığı */
.page-head h1 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 33px); letter-spacing: -0.8px; }
.page-head .sub { font-size: 14.5px; }

/* KPI kartları — premium */
.tiles { gap: 18px; margin-bottom: 36px; }
.tile { position: relative; border-radius: 20px; padding: 26px 24px 22px; border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(10,42,102,.05); overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.tile::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-gold); opacity: 0; transition: opacity .22s; }
.tile:hover::after { opacity: 1; }
.tile::before { position: absolute; top: 22px; right: 22px; width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, var(--gold-soft), #fff); border: 1px solid var(--gold-soft);
  display: grid; place-items: center; font-size: 20px; }
.tiles .tile:nth-child(1)::before { content: "📄"; }
.tiles .tile:nth-child(2)::before { content: "📥"; }
.tiles .tile:nth-child(3)::before { content: "✅"; }
.tiles .tile:nth-child(4)::before { content: "⭐"; }
.tile .v { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1;
  background: none; -webkit-text-fill-color: var(--ink); color: var(--ink); }
.tile .l { text-transform: uppercase; letter-spacing: .7px; font-size: 12px; font-weight: 600; color: var(--text-dim); margin-top: 8px; }
.tiles .tile:nth-child(4) .v { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Bölüm başlığı — altın aksan çubuğu */
.card-title { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.3px; position: relative; padding-left: 16px; margin: 6px 0 18px; }
.card-title::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: var(--grad-gold); }

/* Sınav kartları */
.exam-list { gap: 14px; }
.exam-item { border-radius: 18px; padding: 22px 24px; box-shadow: 0 2px 12px rgba(10,42,102,.05); }
.exam-item:hover { border-color: var(--gold-soft); box-shadow: var(--shadow); }
.exam-item .meta h3 { font-family: var(--font-display); font-size: 17.5px; letter-spacing: -0.3px; }
.exam-item .nums .n { font-family: var(--font-display); font-size: 22px; }

/* Boş durum — premium kart */
.empty { background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 2px 16px rgba(10,42,102,.05); padding: 72px 24px; }
.empty .ic { width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 22px; opacity: 1;
  background: linear-gradient(135deg, var(--gold-soft), #fff); border: 1px solid var(--gold-soft);
  display: grid; place-items: center; font-size: 34px; }
.empty h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.3px; }

/* Rozetler biraz daha premium */
.badge { padding: 5px 13px; border-radius: 999px; font-size: 11.5px; letter-spacing: .2px; }

/* Rubrik — dinamik ölçüt satırı ekleme */
#addCriterion { border-style: dashed; color: var(--teal-deep); font-weight: 600; }
#addCriterion:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-soft); }
.crit-remove { background: none; border: none; cursor: pointer; color: var(--text-dim); font-size: 15px; line-height: 1; padding: 6px 8px; border-radius: 8px; transition: color .15s, background .15s; }
.crit-remove:hover { color: var(--err); background: var(--red-soft); }
