/* AET Gerber Görüntüleyici - kurumsal renkler (aetelectronics.com ile aynı tokenlar) */
:root {
  --navy: #012a40; --navy-700: #013a55; --brand: #004E7A; --brand-600: #0a6394; --accent: #16a6e0; --accent-soft: #35c3ff;
  --ink: #0e1f2d; --body: #41566a; --muted: #7388a0; --line: #e2e9f0; --bg: #ffffff; --bg-soft: #f3f7fb;
  --ok: #1e8a4c; --ok-bg: #e4f5ea; --warn: #9a6400; --warn-bg: #fff3d6; --bad: #b3261e; --bad-bg: #fde4e2;
  --info: #1d5fbf; --info-bg: #e3eefb; --mute: #6b7684; --mute-bg: #eef1f4;
  --shadow-sm: 0 2px 10px rgba(1,42,64,.06); --shadow-md: 0 14px 40px rgba(1,42,64,.10); --shadow-lg: 0 30px 60px rgba(1,42,64,.16);
  --radius: 14px; --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--body); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0 0 1rem; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .mono { font-family: Consolas, "Cascadia Mono", monospace; }

/* düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: .2s ease; white-space: nowrap; text-decoration: none !important; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(0,78,122,.3); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn--primary[disabled] { opacity: .55; cursor: default; transform: none; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--brand); color: var(--brand); }
.btn--danger { background: #fff; border-color: #f0c9c6; color: var(--bad); }
.btn--danger:hover { background: var(--bad-bg); }
.btn--sm { padding: 7px 14px; font-size: .85rem; }

/* üst bar */
.gh { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.gh__in { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.gh__brand img { height: 42px; width: auto; }
.gh__app { font-weight: 800; color: var(--ink); font-size: 1.02rem; padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; }
.gh__app:hover { text-decoration: none; color: var(--brand); }
.gh__nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.gh__nav a:not(.btn) { color: var(--ink); font-weight: 600; font-size: .9rem; padding: 8px 10px; border-radius: 8px; }
.gh__nav a:not(.btn):hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
@media (max-width: 860px) { .gh__nav a:not(.btn) { display: none; } .gh__brand img { height: 34px; } .gh__app { font-size: .9rem; } }
@media (max-width: 520px) { .gh__app { display: none; } }

/* bildirimler */
.flashes { max-width: var(--maxw); margin: 14px auto 0; padding: 0 22px; }
.flash { padding: 11px 15px; border-radius: 10px; margin-bottom: 8px; border: 1px solid; font-size: .95rem; }
.flash.success { background: var(--ok-bg); border-color: #bfe3cc; color: #16623a; }
.flash.danger { background: var(--bad-bg); border-color: #f2c4bf; color: #8c1d17; }
.flash.warning { background: var(--warn-bg); border-color: #f1dca3; color: #7a5000; }

/* kahraman alanı + yükleme */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, rgba(22,166,224,.28), transparent 60%),
  linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 55%, var(--brand) 100%); color: #d8e7f2; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .13; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%2335c3ff' stroke-width='1.4'%3E%3Cpath d='M0 40h40l20 20h40l20-20h40M0 120h30l20-20h60l20 20h30M80 0v30l-15 15v30M80 160v-30l15-15v-30'/%3E%3C/g%3E%3Cg fill='%2335c3ff'%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3Ccircle cx='120' cy='40' r='3'/%3E%3Ccircle cx='50' cy='100' r='3'/%3E%3Ccircle cx='110' cy='100' r='3'/%3E%3Ccircle cx='65' cy='75' r='3'/%3E%3Ccircle cx='95' cy='85' r='3'/%3E%3C/g%3E%3C/svg%3E"); }
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding: 64px 22px 72px; }
@media (max-width: 960px) { .hero__in { grid-template-columns: 1fr; padding: 40px 22px 48px; gap: 28px; } }
.kicker { display: inline-flex; gap: 8px; align-items: center; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--accent-soft); }
.hero .lead { font-size: 1.1rem; color: #c5d9e8; max-width: 560px; }
.hchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hchips span { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 6px 12px; font-size: .84rem; color: #e6f2fa; font-weight: 600; }
.hchips span::before { content: "✓"; color: var(--accent-soft); font-weight: 900; }
.upcard { background: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--shadow-lg); color: var(--body); }
.upcard h2 { font-size: 1.25rem; margin-bottom: 4px; }
.drop { display: block; border: 2px dashed #b9cbdc; border-radius: 16px; padding: 30px 18px; text-align: center; background: var(--bg-soft);
  cursor: pointer; transition: .2s; margin: 14px 0; }
.drop:hover, .drop.over { border-color: var(--accent); background: #eaf6fd; }
.drop__icon { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.drop b { color: var(--ink); display: block; font-size: 1.02rem; }
.drop small { color: var(--muted); display: block; margin-top: 6px; }
.picked { margin: 0 0 12px; max-height: 150px; overflow: auto; font-size: .86rem; }
.picked div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 2px; border-bottom: 1px solid var(--line); }
.picked div span:last-child { color: var(--muted); white-space: nowrap; }
.upbar { height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; margin: 10px 0; display: none; }
.upbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .2s; }
.upcard .btn--primary { width: 100%; }
.legal-note { font-size: .78rem; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }

/* bölümler */
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { color: var(--brand); font-weight: 800; letter-spacing: .1em; font-size: .78rem; text-transform: uppercase; margin-bottom: 8px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: .2s; }
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent)); margin-bottom: 14px; }
.feature p { margin: 0; font-size: .95rem; }
.cadlist { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.cadlist span { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-weight: 700; color: var(--ink); font-size: .9rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px 22px 22px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -14px; left: 22px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.secure { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
@media (max-width: 860px) { .secure { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231e8a4c' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }
.shield { background: linear-gradient(135deg, var(--navy), var(--brand)); color: #d6e7f3; border-radius: 20px; padding: 30px; box-shadow: var(--shadow-md); }
.shield h3 { color: #fff; }
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--brand) 100%); color: #d8e7f2; border-radius: 22px; padding: 40px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 28px; } }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta__btns { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 15px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 15px; }

/* alt bilgi */
.gf { background: var(--navy); color: #a9c1d3; padding: 44px 0 0; margin-top: 0; font-size: .92rem; }
.gf__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 28px; }
@media (max-width: 860px) { .gf__in { grid-template-columns: 1fr 1fr; } }
.gf img { height: 34px; width: auto; margin-bottom: 12px; }
.gf h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.gf a { color: #cfe1ee; display: block; margin-bottom: 6px; }
.gf a:hover { color: #fff; }
.gf__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding: 16px 0; font-size: .82rem; color: #7f9bb0; }

/* yasal metin ve iş sayfaları */
.page { max-width: 900px; margin: 0 auto; padding: 44px 22px 64px; }
.page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page h2 { font-size: 1.25rem; margin-top: 1.8em; }
.page table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: .92rem; }
.page th, .page td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.page th { background: var(--bg-soft); color: var(--ink); }
.page ul { padding-left: 20px; } .page li { margin-bottom: 6px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { display: flex; gap: 18px; align-items: center; }
.rep { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rep th { text-align: left; background: var(--bg-soft); color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding: 9px 10px; }
.rep td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rep td.nm { font-family: Consolas, monospace; font-size: .85rem; word-break: break-all; color: var(--ink); }
.st { display: inline-block; font-size: .75rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.st.used { background: var(--ok-bg); color: var(--ok); } .st.warning { background: var(--warn-bg); color: var(--warn); }
.st.error { background: var(--bad-bg); color: var(--bad); } .st.ignored, .st.archive { background: var(--mute-bg); color: var(--mute); }
.tips { background: var(--bg-soft); border-radius: 12px; padding: 16px 20px; }
.tips li { margin-bottom: 6px; }

/* çerez bandı */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 760px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie p { margin: 0; flex: 1 1 360px; font-size: .9rem; }
.cookie .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie[hidden] { display: none; }
