:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #edf3f8;
  --text: #17202a;
  --muted: #657386;
  --border: #dbe2ea;
  --accent: #0d9488;
  --accent-2: #2563eb;
  --danger: #dc2626;
  --warning: #b45309;
  --success: #16803c;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(13, 148, 136, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  height: 72px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.topbar nav a:hover,
.topbar nav a.active {
  color: var(--text);
  background: var(--surface-2);
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

#ozellikler,
#kurulum-rehberi,
#fiyat,
#basvuru {
  scroll-margin-top: 92px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 66px;
  align-items: center;
  padding: 54px 0 44px;
}

.hero h1,
.auth-copy h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
}

.hero p {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.trust-strip,
.trial-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-strip span,
.trial-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button,
button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 15px;
  background: var(--text);
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button.secondary,
button.secondary {
  background: var(--surface-2);
  color: var(--text);
}

.button.danger,
button.danger {
  background: var(--danger);
}

.button.success,
button.success {
  background: var(--success);
}

.button.small,
button.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.hero-panel,
.panel,
.auth-card,
.widget-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 32, 42, 0.07);
}

.hero-panel {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.metric {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 14px;
}

.metric strong {
  display: block;
  font-size: 24px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 70px 0;
}

.section h2 {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.1;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel {
  padding: 22px;
}

.step-card strong {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.panel h3,
.auth-card h1 {
  margin: 0 0 14px;
}

.muted {
  color: var(--muted);
}

.price {
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  margin: 18px 0;
}

.status-number {
  font-size: 64px;
  line-height: 1;
  font-weight: 950;
  color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-split {
  grid-template-columns: minmax(0, 560px) minmax(360px, 460px);
  gap: 54px;
  background:
    radial-gradient(circle at 12% 10%, rgba(37,99,235,.1), transparent 30%),
    linear-gradient(135deg, #ffffff, #f3f7fb);
}

.auth-copy {
  max-width: 620px;
}

.auth-copy .brand {
  margin-bottom: 34px;
}

.auth-copy p {
  color: var(--muted);
  font-size: 18px;
}

.auth-card.elevated {
  box-shadow: 0 28px 80px rgba(23,32,42,.14);
}

.auth-card {
  width: min(460px, 100%);
  padding: 28px;
}

.layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #17202a;
  color: white;
  padding: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand {
  margin-bottom: 28px;
}

.sidebar nav {
  display: grid;
  gap: 6px;
}

.sidebar nav a {
  padding: 10px 12px;
  color: rgba(255,255,255,0.75);
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.main {
  padding: 28px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-head h1 {
  margin: 0;
  font-size: 30px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  background: #fafbfc;
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
  background: var(--surface-2);
  color: var(--text);
}

.badge.active,
.badge.success {
  background: #dcfce7;
  color: #166534;
}

.badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.badge.trial,
.badge.paid,
.badge.approved {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge.inactive,
.badge.danger {
  background: #fee2e2;
  color: #991b1b;
}

.flash {
  width: min(1160px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.flash.success {
  background: #dcfce7;
  color: #166534;
}

.flash.error {
  background: #fee2e2;
  color: #991b1b;
}

.code {
  background: #111827;
  color: #d1fae5;
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tabs a {
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.tabs a.active {
  background: var(--text);
  color: white;
}

.chat-demo {
  display: grid;
  gap: 10px;
}

.bubble {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--surface-2);
}

.bubble.user {
  margin-left: auto;
  background: #dbeafe;
}

.site-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-switcher a {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 800;
  color: var(--muted);
}

.site-switcher a.active {
  color: white;
  background: var(--accent);
}

.assistant-question {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 13px 14px;
  margin: 12px 0;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 16px;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.landing {
  overflow: hidden;
}

.landing-hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 64px 0 48px;
  background:
    linear-gradient(90deg, rgba(13,148,136,.08), transparent 32%),
    radial-gradient(circle at 78% 26%, rgba(37,99,235,.11), transparent 27%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: 58px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.95;
  max-width: 760px;
}

.hero-copy p {
  margin: 24px 0 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.62;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.74);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.hero-product {
  position: relative;
  min-height: 420px;
}

.product-shell {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  margin-left: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(23,32,42,.14);
  overflow: hidden;
}

.product-head {
  min-height: 74px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--border);
}

.product-head strong,
.product-head span {
  display: block;
}

.product-head span {
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  flex: none;
  color: #166534 !important;
  background: #dcfce7;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 900;
}

.landing-chat-messages {
  height: auto;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: #f7f9fc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-msg {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
}

.landing-msg .handoff,
.handoff.landing-handoff {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #16a34a;
  color: white;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.landing-msg.user {
  margin-left: auto;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.landing-msg.typing {
  display: inline-flex;
  width: auto;
  gap: 5px;
  align-items: center;
  padding: 13px 14px;
}

.landing-msg.typing span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #657386;
  animation: nebulaTyping 1s infinite ease-in-out;
}

.landing-msg.typing span:nth-child(2) {
  animation-delay: .14s;
}

.landing-msg.typing span:nth-child(3) {
  animation-delay: .28s;
}

@keyframes nebulaTyping {
  0%, 80%, 100% {
    opacity: .35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.landing-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.landing-chat-form input {
  min-height: 44px;
}

.chat-reset-button {
  display: none;
  margin: 0 14px 14px;
  min-height: 38px;
  width: calc(100% - 28px);
  background: var(--surface-2);
  color: var(--text);
}

.dashboard-preview {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin-left: auto;
  display: grid;
  grid-template-columns: 82px 1fr;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(23,32,42,.1);
  overflow: hidden;
}

.preview-sidebar {
  background: #17202a;
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.preview-sidebar span {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
}

.preview-main {
  padding: 18px;
}

.preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.preview-stats div {
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-2);
}

.preview-stats strong {
  display: block;
  font-size: 22px;
}

.preview-stats span {
  color: var(--muted);
  font-size: 12px;
}

.preview-table {
  display: grid;
  gap: 9px;
}

.preview-table span {
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
}

.landing-band {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: center;
}

.band-grid p {
  margin: 4px 0 0;
  color: var(--muted);
}

.band-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.band-steps span {
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 850;
  font-size: 13px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
}

.feature-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23,32,42,.05);
}

.feature-card strong {
  color: var(--accent);
  letter-spacing: .08em;
  font-size: 12px;
}

.feature-card h3 {
  margin: 16px 0 10px;
  font-size: 20px;
}

.feature-card p {
  color: var(--muted);
  margin: 0;
}

.soft-section {
  background: #f7fafc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
  gap: 48px;
  align-items: start;
}

.landing-code {
  margin-top: 20px;
}

.process-list {
  display: grid;
  gap: 12px;
}

.process-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.process-list span {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 950;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

.install-guide {
  margin-top: 48px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-grid details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23,32,42,.05);
  overflow: hidden;
}

.guide-grid summary {
  min-height: 58px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 850;
  list-style-position: inside;
}

.guide-grid details[open] summary {
  border-bottom: 1px solid var(--border);
  background: #f8fbfd;
}

.guide-grid ol {
  margin: 0;
  padding: 16px 20px 18px 38px;
  color: var(--muted);
}

.guide-grid li + li {
  margin-top: 7px;
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .62fr);
  gap: 42px;
  align-items: center;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 20px 55px rgba(23,32,42,.1);
}

.pricing-card ul {
  padding: 0;
  margin: 18px 0 24px;
  list-style: none;
  display: grid;
  gap: 9px;
  color: var(--muted);
}

.pricing-card li::before {
  content: "✓";
  color: var(--success);
  font-weight: 950;
  margin-right: 8px;
}

.final-section {
  background: linear-gradient(180deg, #ffffff, #f5f8fb);
}

.lead-form {
  box-shadow: 0 20px 60px rgba(23,32,42,.08);
}

.landing-floating-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.floating-chat-window {
  width: min(390px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 112px));
  min-height: 360px;
  display: none;
  grid-template-rows: auto 1fr auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(23,32,42,.24);
  overflow: hidden;
}

.landing-floating-chat.open .floating-chat-window {
  display: grid;
}

.floating-close {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.floating-chat-button {
  min-height: 58px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(23,32,42,.22);
  background: #17202a;
}

.floating-chat-button span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 950;
}

.floating-chat-button strong {
  font-size: 14px;
}

@media (max-width: 880px) {
  .topbar {
    height: auto;
    padding: 14px 16px;
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    flex-wrap: wrap;
  }

  #ozellikler,
  #kurulum-rehberi,
  #fiyat,
  #basvuru {
    scroll-margin-top: 188px;
  }

  .hero,
  .hero-grid,
  .grid.two,
  .grid.three,
  .grid.four,
  .form-grid,
  .layout,
  .auth-split,
  .band-grid,
  .split-section,
  .pricing-layout,
  .feature-matrix,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .landing-hero {
    min-height: auto;
    padding: 40px 0 36px;
  }

  .hero-product {
    min-height: auto;
  }

  .dashboard-preview {
    width: 100%;
    position: relative;
    right: auto;
    bottom: auto;
  }

  .dashboard-preview {
    margin-top: 16px;
    grid-template-columns: 54px 1fr;
  }

  .landing-floating-chat {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

.floating-chat-window {
    width: 100%;
    height: min(590px, calc(100vh - 92px));
    min-height: 0;
  }

  .band-steps {
    justify-content: flex-start;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    position: static;
  }

  .main {
    padding: 18px;
  }

  .page-head {
    flex-direction: column;
  }
}
