/* SatışRehberi — v4 Luxury commerce UI (charcoal + burgundy) */

:root {
  --accent: var(--accent-crimson, #b4233c);
}

html {
  background: var(--bg-deep);
}

/* Ambient cockpit — dual burgundy radial, charcoal falloff */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -18%, var(--glow-ambient-a), transparent 62%),
    radial-gradient(ellipse 50% 40% at 88% 35%, var(--glow-ambient-b), transparent 55%),
    radial-gradient(ellipse 45% 35% at 8% 70%, rgba(23, 23, 28, 0.5), transparent 50%),
    linear-gradient(180deg, var(--layer-bg) 0%, #0d0d11 45%, var(--layer-bg) 100%);
  animation: ambient-depth 24s ease-in-out infinite;
}

@keyframes ambient-depth {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

.mesh-orbs {
  display: none;
}

.mesh-orb {
  display: none;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -16px) scale(1.05); }
  66% { transform: translate(-16px, 20px) scale(0.95); }
}

@keyframes aurora {
  0%, 100% { opacity: 1; filter: hue-rotate(0deg); }
  50% { opacity: 0.92; filter: hue-rotate(8deg); }
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
  position: relative;
  z-index: 2;
}

/* Glass navbar */
.glass-nav {
  background: rgba(16, 16, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 var(--edge-highlight),
    0 8px 32px -20px rgba(0, 0, 0, 0.55);
}

.nav-link {
  border-radius: var(--radius-md, 0.75rem);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link--active {
  color: var(--text-primary) !important;
  background: rgba(122, 32, 48, 0.1);
  box-shadow: inset 0 0 0 1px var(--border-hairline);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #f5f5f7 0%, var(--primary-light, #b4233c) 55%, var(--primary-glow, #d13f5b) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary, #7a2030), var(--primary-light, #b4233c));
  border-radius: 0.75rem;
  box-shadow: 0 0 24px var(--glow-brand, rgba(209, 63, 91, 0.25));
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover, #92273a), var(--accent-crimson, #b4233c));
  transform: translateY(-1px);
  box-shadow: 0 0 28px var(--glow-brand-strong, rgba(209, 63, 91, 0.28));
  filter: brightness(1.04);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--glow-brand), 0 0 24px var(--glow-brand-strong);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: none;
  box-shadow: inset 0 0 0 1px var(--border-hairline);
  border-radius: 0.75rem;
  background: transparent;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--surface-2, #18181c);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.btn-ghost:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--border-accent);
}

/* Premium cards — cockpit panels */
.premium-card {
  position: relative;
  background: var(--layer-surface, #17171c);
  border: none;
  border-radius: var(--radius-lg, 1rem);
  box-shadow:
    inset 0 1px 0 0 var(--edge-highlight),
    0 0 0 1px var(--border-hairline),
    var(--shadow-card);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s,
    box-shadow 0.28s;
}

.premium-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.28s ease;
}

.premium-card:hover {
  background: #1a1a20;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.premium-card:hover::after {
  box-shadow: inset 0 1px 0 0 rgba(209, 63, 91, 0.15);
}

.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(180, 35, 60, 0.35), transparent 45%, rgba(209, 63, 91, 0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.glow-border:hover::before {
  opacity: 1;
}

/* Bento grid */
.bento-card {
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s,
    border-color 0.3s;
}

.bento-card:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
}

/* Form inputs */
.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--layer-input, #1e1e24);
  border: none;
  border-radius: var(--radius-md, 0.75rem);
  color: var(--text-primary);
  font-size: 0.9375rem;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px var(--border-strong);
  transition: box-shadow 0.2s, background 0.2s;
}

.input-field:hover {
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.input-field:focus {
  outline: none;
  background: var(--surface-3);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px var(--border-accent),
    0 0 0 3px var(--glow-brand);
}

.input-field::placeholder {
  color: var(--text-muted);
}

label.input-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Result highlight */
.result-value {
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--profit-soft, #4ade80), var(--profit, #22c55e));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px var(--glow-profit));
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.result-row:last-child {
  border-bottom: none;
}

/* Hero search */
.hero-search {
  background: var(--surface-1);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.hero-search:focus-within {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--glow-brand);
}

/* Dashboard mockup */
.dashboard-mockup {
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface-1) 100%);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: none;
}

.mockup-bar {
  height: 36px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3, #202026);
}

.mockup-dot:nth-child(1) { background: #EF4444; }
.mockup-dot:nth-child(2) { background: #F59E0B; }
.mockup-dot:nth-child(3) { background: #22C55E; }

/* AI streaming */
.ai-output {
  min-height: 120px;
  white-space: pre-wrap;
  line-height: 1.7;
  color: #d4d4d8;
}

.ai-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

.skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-3) 50%, var(--surface-1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Logo marquee */
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Cursor glow */
#cursor-glow.active {
  opacity: 1;
  background: radial-gradient(
    600px circle at var(--x, 50%) var(--y, 50%),
    rgba(209, 63, 91, 0.04),
    transparent 40%
  );
}

/* Spotlight on cards */
.spotlight-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mouse-x) var(--mouse-y),
    rgba(122, 32, 48, 0.07),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.spotlight-card:hover::after {
  opacity: 1;
}

/* Page enter */
.page-enter {
  animation: page-enter 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Magnetic buttons */
.btn-magnetic {
  position: relative;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Range sliders for calculators */
input[type='range'].input-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

input[type='range'].input-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-crimson));
  box-shadow: 0 0 10px var(--glow-brand-strong);
  cursor: pointer;
}

/* Live result pulse */
.result-value {
  animation: result-pulse 0.35s ease;
}

@keyframes result-pulse {
  0% { transform: scale(0.98); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* CTA band */
.cta-band {
  background: var(--layer-surface);
  border: none;
  box-shadow:
    inset 0 1px 0 var(--edge-highlight),
    inset 0 0 0 1px var(--border-hairline),
    var(--shadow-card);
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(209, 63, 91, 0.12), transparent 55%);
  pointer-events: none;
}

/* Icon box in bento */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, rgba(122, 32, 48, 0.2), rgba(122, 32, 48, 0.06));
  border: 1px solid rgba(180, 35, 60, 0.25);
  color: var(--primary-glow, #d13f5b);
}

/* Chart bars CSS fallback */
.chart-bar {
  transform-origin: bottom;
  animation: bar-pulse 3s ease-in-out infinite;
}

.chart-bar:nth-child(odd) { animation-delay: 0.2s; }
.chart-bar:nth-child(3n) { animation-delay: 0.5s; }

@keyframes bar-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.85; }
  50% { transform: scaleY(0.75); opacity: 1; }
}

/* Mobile hero mockup */
.hero-mockup-mobile {
  max-width: 320px;
  margin: 0 auto;
}

/* Lazy images */
.lazy-img {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lazy-img.lazy-visible {
  opacity: 1;
}

/* Footer */
.footer-link {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--accent-glow);
}

.site-footer {
  background: var(--bg-secondary);
  box-shadow: inset 0 1px 0 var(--edge-highlight);
}

.search-dropdown {
  box-shadow: inset 0 0 0 1px var(--border-hairline);
}

.search-dropdown a {
  border-bottom: none;
  box-shadow: inset 0 -1px 0 var(--border-hairline);
}

.search-dropdown a:last-child {
  box-shadow: none;
}

/* FAQ */
.faq-trigger:hover {
  background: var(--surface-2);
}
.faq-trigger:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--border-accent);
}

.faq-item {
  background: var(--surface-2);
  border: none;
  box-shadow:
    inset 0 1px 0 0 var(--edge-highlight),
    0 0 0 1px var(--edge-highlight-soft);
}

.faq-answer {
  border-top: none !important;
}

/* Tool / calculator shells */
.tool-shell,
.results-panel {
  background: var(--surface-2);
  box-shadow:
    inset 0 1px 0 0 var(--edge-highlight),
    0 0 0 1px var(--edge-highlight-soft),
    var(--shadow-ambient);
}

.ai-tool-shell .ai-output {
  background: var(--surface-3);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.demo-banner {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border-hairline);
}

/* Homepage trust + outcome panels */
.outcome-card {
  background: rgba(23, 23, 28, 0.65);
  box-shadow: inset 0 0 0 1px var(--border-hairline);
}

.outcome-card:hover {
  background: var(--layer-surface);
}

.trust-panel {
  background: var(--layer-surface);
  box-shadow:
    inset 0 1px 0 var(--edge-highlight),
    0 0 0 1px var(--border-hairline),
    var(--shadow-card);
}

.formula-strip {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.formula-strip strong {
  color: var(--text-secondary);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .aurora-bg,
  .marquee-track,
  .animate-float,
  .mesh-orb,
  .chart-bar,
  .page-enter {
    animation: none !important;
  }
  .bento-card:hover {
    transform: none;
  }
}
