/* PukkaSmart — kurumsal SaaS dünyası (Stripe/Linear çıtası), iki tema */
:root,
:root[data-theme="light"] {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #1e293b;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --on-primary: #ffffff;
  --link: #2563eb;
  --accent: #ea580c;
  --error: #b91c1c;
  --success: #15803d;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.05);
  --nav-bg: rgba(248, 250, 252, 0.85);
  --body-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --brand-font: "Zen Dots", "Plus Jakarta Sans", sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #111a2e;
  --ink: #e6edf7;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.16);
  --primary: #2563eb;
  --primary-hover: #3b82f6;
  --on-primary: #ffffff;
  --link: #60a5fa;
  --accent: #fb923c;
  --error: #fda4af;
  --success: #86efac;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  --nav-bg: rgba(11, 17, 32, 0.85);
}

* { box-sizing: border-box; margin: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-weight: 400;
  line-height: 1.65;
  transition: background 0.25s, color 0.25s;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.container.narrow { max-width: 760px; }

a { color: var(--link); }

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -48px;
  z-index: 20;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 9px 9px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner { display: flex; align-items: center; gap: 2rem; height: 64px; }

.brand {
  font-family: var(--brand-font);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links { display: flex; gap: 1.5rem; flex: 1; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.55rem 0.2rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 0.8rem; }

.lang-toggle {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.55rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--muted); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); }
:root[data-theme="light"] .ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon { display: none; }

/* ---------- BUTONLAR ---------- */
.btn {
  display: inline-block;
  padding: 0.72rem 1.5rem;
  border-radius: 9px;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn-sm { padding: 0.48rem 1.05rem; font-size: 0.88rem; }

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-ghost { border-color: var(--border); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); transform: translateY(-1px); }

.btn-inverse { background: #ffffff; color: #1d4ed8; }
.btn-inverse:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }

/* ---------- TİPOGRAFİ ---------- */
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 0.9rem;
}
:root[data-theme="dark"] .kicker { color: var(--link); }

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 0.8rem;
}

.lede { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.section-sub { color: var(--muted); max-width: 40rem; }

/* ---------- HERO ---------- */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ---------- HERO GÖRSELİ: 3B JİROSKOP ---------- */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

#heroGlobe {
  width: min(480px, 82vw);
  height: auto;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}
.fc1 { top: 8%; right: 0; }
.fc2 { bottom: 10%; left: 0; animation-delay: -3s; }

.fc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.fc-body { display: grid; line-height: 1.3; }
.fc-body strong { font-size: 0.9rem; font-weight: 700; }
.fc-body em { font-style: normal; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- TEŞHİS ---------- */
.quiz-head { max-width: 640px; margin-bottom: 2rem; }

.quiz-card {
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}

.quiz-progress {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.7rem;
}
:root[data-theme="dark"] .quiz-progress { color: var(--link); }

.quiz-bar {
  height: 5px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.quiz-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--primary);
  border-radius: 999px;
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-q { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.4; margin-bottom: 1.6rem; text-wrap: balance; }

.quiz-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.quiz-results { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.6rem; }

.quiz-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.95rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s, transform 0.15s;
}
.quiz-chip:hover { border-color: var(--primary); transform: translateY(-1px); }
.quiz-chip strong { font-size: 0.92rem; }
.quiz-chip em { font-style: normal; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- SAYFA BAŞLIĞI (ürünler) ---------- */
.page-head { padding-bottom: 0; }
.page-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}
.products-section { padding-top: 2.2rem; }

/* ---------- BÖLÜMLER ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
:root[data-theme="dark"] .section-alt { background: rgba(17, 26, 46, 0.55); }

.about-text { color: var(--muted); font-size: 1.05rem; max-width: 44rem; }

/* ---------- ÜRÜN SWITCHER ---------- */
.switcher {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.4rem;
  margin-top: 2.4rem;
}

.switcher-list { display: grid; gap: 0.5rem; align-content: start; }

.switcher-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.switcher-tab:hover { color: var(--ink); background: var(--surface); }
.switcher-tab[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.switcher-tab .tag { margin-left: auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }

.switcher-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
  min-height: 260px;
}

.panel-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
}
:root[data-theme="dark"] .panel-tag { color: var(--link); }

.panel-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.6rem; }
.panel-desc { color: var(--muted); max-width: 52ch; }

.panel-media { margin-top: 1.4rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.panel-media img { display: block; width: 100%; max-height: 320px; object-fit: cover; }

/* Mobil ürün yığını */
.product-stack { display: none; margin-top: 1.8rem; }

.product-stack article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.product-stack article + article { margin-top: 1rem; }
.product-stack img { width: 100%; border-radius: 8px; margin-top: 1rem; border: 1px solid var(--border); }
.stack-media { margin-top: 1rem; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }

/* ---------- CTA BANDI ---------- */
.cta-band { background: var(--primary); color: #ffffff; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }

.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #ffffff; margin-bottom: 0.3rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); }

/* ---------- İLETİŞİM ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1.05rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.contact-form label { display: grid; gap: 0.4rem; font-size: 0.88rem; font-weight: 600; color: var(--ink); }

.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.75rem 0.95rem;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.field-error { color: var(--error); font-size: 0.82rem; font-weight: 500; }

.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 15%, transparent);
}

.form-status { font-size: 0.9rem; min-height: 1.4em; color: var(--success); }
.form-status.error { color: var(--error); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 2.6rem 0 0; }

.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

.brand-footer { font-size: 1rem; }
.footer-tag { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }

.footer-col-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.6rem; }
.footer-links { display: grid; gap: 0.35rem; justify-items: start; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; padding: 0.15rem 0; }
.footer-links a:hover { color: var(--ink); }
.footer-inner { align-items: start; }
.footer-inner > div:first-child { max-width: 320px; }

.footer-bottom { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.2rem; padding-bottom: 1.2rem; color: var(--muted); font-size: 0.85rem; }

/* ---------- YASAL SAYFA (gizlilik) ---------- */
.legal .page-title { margin-bottom: 0.4rem; }
.legal-updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.6rem; }
.legal-intro { color: var(--muted); margin-bottom: 2rem; max-width: 60ch; }
.legal-section { margin-bottom: 1.6rem; max-width: 68ch; }
.legal-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.legal-section p { color: var(--muted); white-space: pre-line; line-height: 1.7; }
.legal-disclaimer {
  margin-top: 2rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--ink);
  max-width: 68ch;
}

/* ---------- PUKKABOT ---------- */
#pukkabot { position: fixed; right: clamp(0.9rem, 3vw, 1.6rem); bottom: clamp(0.9rem, 3vw, 1.6rem); z-index: 50; }

#pbToggle {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 45%, transparent);
  transition: transform 0.18s, box-shadow 0.18s;
  animation: pb-bob 4s ease-in-out infinite;
}
#pbToggle:hover { transform: scale(1.06); }

@keyframes pb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.pb-eye { animation: pb-blink 4.4s infinite; transform-origin: center; }
.pb-antenna { animation: pb-pulse 2.2s ease-in-out infinite; }

@keyframes pb-blink { 0%, 92%, 100% { transform: scaleY(1); } 95%, 97% { transform: scaleY(0.12); } }
@keyframes pb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.pb-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 700 0.72rem/20px var(--body-font);
  text-align: center;
}

#pbPanel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(360px, calc(100vw - 2rem));
  height: min(520px, calc(100vh - 8rem));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}
:root[data-theme="dark"] #pbPanel { box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6); }

.pb-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: var(--primary);
  color: #fff;
}
.pb-head-txt { display: grid; line-height: 1.25; flex: 1; }
.pb-head-txt strong { font-family: var(--brand-font); font-size: 0.95rem; letter-spacing: 0.04em; }
.pb-head-txt span { font-size: 0.72rem; opacity: 0.85; display: flex; align-items: center; gap: 0.35rem; }
.pb-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }

#pbClose {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
}
#pbClose:hover { background: rgba(255, 255, 255, 0.15); }

.pb-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: grid; gap: 0.55rem; align-content: start; }

.pb-msg {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.pb-bot { background: var(--bg); border: 1px solid var(--border); border-bottom-left-radius: 4px; justify-self: start; }
.pb-user { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }

.pb-typing { display: flex; gap: 4px; padding: 0.8rem 0.9rem; }
.pb-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: pb-ty 1.1s infinite;
}
.pb-typing span:nth-child(2) { animation-delay: 0.15s; }
.pb-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pb-ty { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

.pb-quick { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0 1rem 0.6rem; }
.pb-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--link);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font: 600 0.82rem var(--body-font);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pb-chip:hover { border-color: var(--primary); background: var(--bg); }

.pb-input { display: flex; gap: 0.5rem; padding: 0.7rem; border-top: 1px solid var(--border); }
.pb-input input {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font: 400 0.9rem var(--body-font);
}
.pb-input input:focus { outline: none; border-color: var(--primary); }
.pb-input button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (prefers-reduced-motion: reduce) {
  #pbToggle, .pb-eye, .pb-antenna, .pb-typing span { animation: none; }
}

/* ---------- ODAK & REVEAL ---------- */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.reveal { transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.pending { opacity: 0.001; transform: translateY(18px); }

/* ---------- DUYARLILIK ---------- */
@media (max-width: 900px) {
  .hero-inner, .contact-inner { grid-template-columns: 1fr; }
  .switcher { display: none; }
  .product-stack { display: block; }
  .hero-visual { min-height: 320px; margin-top: 1rem; }
  .float-card { padding: 0.55rem 0.8rem; }
}

@media (max-width: 560px) {
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    gap: 0.6rem;
    padding-top: 0.55rem;
    padding-bottom: 0.35rem;
  }
  .brand { order: 1; }
  .nav-actions { order: 2; margin-left: auto; }
  .nav-links { order: 3; width: 100%; justify-content: center; gap: 0.4rem; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.5rem; }
  .theme-toggle { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover { transform: none; transition: none; }
  .float-card { animation: none; }
}
