/* --- HEADER & NAVBAR --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 16px rgba(15,23,42,0.07);
  border-bottom-color: rgba(226, 232, 240, 0.9);
}

.header-container,
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.brand-logo:hover .logo-mark {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
  transform: scale(1.06);
}

.logo-text {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-navy-dark);
}

.logo-plus {
  color: #2563eb;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-list,
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #475569;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: color 0.2s ease, background-color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: #2563eb;
  background-color: rgba(37, 99, 235, 0.07);
}

.nav-link.active {
  color: #2563eb;
  background-color: rgba(37, 99, 235, 0.08);
}

/* Header Actions */
.header-actions,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

/* Login button */
.header-login-btn {
  color: #475569 !important;
  font-size: 0.875rem;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
}

.header-login-btn:hover {
  background-color: rgba(71, 85, 105, 0.08) !important;
  color: var(--color-navy-dark) !important;
}

/* Demo CTA Button — premium gradient + glow */
.btn-demo-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5625rem 1.125rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4), 0 1px 2px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-demo-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s ease;
}

.btn-demo-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5), 0 2px 4px rgba(37, 99, 235, 0.3);
  color: #ffffff !important;
}

.btn-demo-cta:hover::after {
  left: 150%;
}

.btn-demo-cta:active {
  transform: translateY(0);
}

/* Mobil Menü Butonu */
.mobile-toggle,
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  color: var(--color-navy-dark);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

.mobile-toggle:hover {
  background: rgba(241, 245, 249, 0.9);
  border-color: #cbd5e1;
}

@media (min-width: 1024px) {
  .mobile-toggle,
  .mobile-menu-toggle {
    display: none;
  }
}


/* Mobil Menü Overlay & Draver */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--color-surface);
  z-index: 100;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease-in-out, visibility 0.3s ease-in-out;
  padding: 1.5rem;
  overflow-y: auto;
  visibility: hidden;
}

.mobile-menu-drawer.open {
  right: 0;
  visibility: visible;
}

.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-header,
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.mobile-close {
  background: transparent;
  border: none;
  color: var(--color-navy-dark);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-list,
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0;
}

.mobile-nav-link,
.mobile-nav a {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-main);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
}

.mobile-nav-link:hover,
.mobile-nav a:hover {
  color: var(--color-secondary);
}

/* --- BUTONLAR --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: #ffffff;
  border-color: var(--color-secondary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-surface-muted);
  color: var(--color-navy-dark);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  color: var(--color-navy-dark);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-navy-dark);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--color-surface-muted);
  color: var(--color-secondary);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-outline:hover {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: var(--font-size-base);
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* --- KARTLAR & GRID --- */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-navy-dark);
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* --- BADGE / ROZET --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-blue {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--color-secondary);
}

.badge-teal {
  background-color: rgba(13, 148, 136, 0.1);
  color: var(--color-accent-teal);
}

/* --- URUN EKRANI MOCKUP ÇERÇEVESİ --- */
.browser-mockup {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border-dark);
  background-color: var(--color-navy-dark);
}

.browser-header {
  background-color: #1e293b;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.browser-body {
  background-color: #0f172a;
  color: #ffffff;
  padding: 1.5rem;
}

/* --- FOOTER --- */
.site-footer {
  background-color: var(--color-navy-dark);
  color: #94a3b8;
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--color-navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(4, 1fr);
  }
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.footer-col h4 {
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul,
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}

.footer-col ul a,
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color 0.2s ease;
}

.footer-col ul a:hover,
.footer-links a:hover {
  color: #ffffff;
}

.footer-legal {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.footer-legal a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: var(--font-size-xs);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Form Elemanları */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-navy-dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: var(--font-size-base);
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  color: var(--color-text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Accessibility Visible Focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}
