/* ============================================================
   JustQr Marketing V2 — Custom Styles
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  --glow-x: 50%;
  --glow-y: 50%;
  --accent: #0652DD;
  --accent-hover: #0541B0;
  --ink: #0A0A0F;
  --ink-secondary: #52525B;
  --ink-tertiary: #A1A1AA;
  --bg-elevated: #FAFAFA;
  --bg-subtle: #F4F4F5;
  --line: #E4E4E7;
  --line-subtle: #F4F4F5;
  --success: #10B981;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-accent: 0 8px 32px rgba(6,82,221,0.28);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
  --ink: #F7F7F8;
  --ink-secondary: #A1A1AA;
  --ink-tertiary: #71717A;
  --bg-elevated: #16161C;
  --bg-subtle: #1F1F28;
  --line: #2A2A35;
  --line-subtle: #1F1F28;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.2);
}

/* ── Base Reset & Smooth Scroll ────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Hero Cursor Glow ──────────────────────────────────── */
.hero-glow {
  background: radial-gradient(
    700px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(6, 82, 221, 0.08),
    transparent 50%
  );
  transition: background 0.15s ease;
}

.dark .hero-glow {
  background: radial-gradient(
    700px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(6, 82, 221, 0.20),
    transparent 50%
  );
}

/* Gradient radial utility (Tailwind CDN extension) */
.bg-gradient-radial {
  background-image: radial-gradient(circle, var(--tw-gradient-stops));
}

/* ── Atmospheric Background Glow ──────────────────────── */
.atmospheric-bg {
  position: relative;
  overflow: hidden;
}

.atmospheric-bg::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(6, 82, 221, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
}

.dark .atmospheric-bg::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(6, 82, 221, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
}

/* ── Grain / Noise Texture ─────────────────────────────── */
.grain-overlay {
  position: relative;
}

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

/* ── Browser / macOS Window Frame ──────────────────────── */
.browser-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow:
    0 0 0 1px var(--line),
    var(--shadow-lg),
    inset 0 1px 0 rgba(255,255,255,0.08);
  will-change: transform;
}

.dark .browser-frame {
  background: #16161C;
  box-shadow:
    0 0 0 1px #2A2A35,
    0 24px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.browser-frame-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
}

.dark .browser-frame-header {
  background: #1F1F28;
  border-bottom-color: #2A2A35;
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.browser-dot:nth-child(1) { background: #FF5F57; }
.browser-dot:nth-child(2) { background: #FEBC2E; }
.browser-dot:nth-child(3) { background: #28C840; }

/* ── Float Animation ────────────────────────────────────── */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(0.5deg);
  }
  66% {
    transform: translateY(-6px) rotate(-0.5deg);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.float-animation-slow {
  animation: float 8s ease-in-out infinite;
  animation-delay: -2s;
}

.float-animation-delayed {
  animation: float 7s ease-in-out infinite;
  animation-delay: -3.5s;
}

/* ── Primary Button Glow ────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--ink-tertiary);
  transform: translateY(-1px);
}

/* ── Sticky Header ──────────────────────────────────────── */
.header-scrolled {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(228, 228, 231, 0.6);
}

.dark .header-scrolled {
  background-color: rgba(10, 10, 15, 0.85) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(42, 42, 53, 0.6);
}



/* ── Marquee / Trust Strip ──────────────────────────────── */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-container {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* ── Nav Link Hover Underline ───────────────────────────── */
.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--ink-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--ink);
}

.dark .nav-link {
  color: var(--ink-secondary);
}

.dark .nav-link:hover {
  color: var(--ink);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Stagger Reveal ─────────────────────────────────────── */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.visible > *:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.reveal-stagger.visible > *:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.reveal-stagger.visible > *:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.reveal-stagger.visible > *:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.reveal-stagger.visible > *:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.reveal-stagger.visible > *:nth-child(n+6) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

/* ── Card Hover Lift ────────────────────────────────────── */
.card-hover-lift {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -15px rgba(6, 82, 221, 0.15);
}

/* ── Feature Cards ──────────────────────────────────────── */
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 82, 221, 0.25);
  transform: translateY(-4px);
}

.dark .feature-card {
  background: #16161C;
  border-color: #2A2A35;
}

.dark .feature-card:hover {
  border-color: rgba(6, 82, 221, 0.35);
}

/* ── Pricing Cards ──────────────────────────────────────── */
.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.pricing-card.featured {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.pricing-card.featured * {
  color: white;
}

.dark .pricing-card {
  background: #16161C;
  border-color: #2A2A35;
}

/* ── Badge / Pill Components ────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-accent {
  background: rgba(6, 82, 221, 0.10);
  color: var(--accent);
  border: 1px solid rgba(6, 82, 221, 0.20);
}

.dark .badge-accent {
  background: rgba(6, 82, 221, 0.15);
  border-color: rgba(6, 82, 221, 0.30);
}

.badge-success {
  background: rgba(16, 185, 129, 0.10);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.20);
}

/* ── Section Divider ────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
  border: none;
  margin: 0;
}

/* ── Eyebrow Text ───────────────────────────────────────── */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Stat / Proof Numbers ───────────────────────────────── */
.stat-number {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-top: 4px;
}

/* ── Icon Container ─────────────────────────────────────── */
.icon-container {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 82, 221, 0.10);
  color: var(--accent);
  flex-shrink: 0;
}

.dark .icon-container {
  background: rgba(6, 82, 221, 0.15);
}

/* ── Check List ─────────────────────────────────────────── */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.check-list li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  background-color: var(--success);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 9l3.5 3.5 6.5-7' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

/* ── Theme Toggle ───────────────────────────────────────── */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-secondary);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

/* ── Language Toggle ────────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
}

.lang-btn {
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--accent);
  color: white;
}

/* ── Mobile Menu ────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 15, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base);
}

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

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 100vw);
  height: 100%;
  background: white;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}

.dark .mobile-menu-panel {
  background: #0A0A0F;
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

/* ── Utility: Gradient Text ─────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #818cf8 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Utility: Focus Visible ─────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .float-animation,
  .float-animation-slow,
  .float-animation-delayed,
  .marquee-track {
    animation: none;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Responsive Helpers ─────────────────────────────────── */
@media (max-width: 768px) {
  .browser-frame {
    border-radius: var(--radius-lg);
  }

  .feature-card,
  .pricing-card {
    padding: 24px;
  }
}

/* Float card hover interaction */
.float-card-interactive {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.float-card-interactive:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 30px 60px -15px rgba(6, 82, 221, 0.25) !important;
}

/* CTA pulse */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 82, 221, 0.35), 0 10px 30px -10px rgba(6, 82, 221, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(6, 82, 221, 0), 0 10px 30px -10px rgba(6, 82, 221, 0.5); }
}
.btn-primary-pulse {
  animation: ctaPulse 2.5s ease-in-out infinite;
}

/* Section gradient divider */
section + section::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 480px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 82, 221, 0.15), transparent);
  pointer-events: none;
}
.dark section + section::before {
  background: linear-gradient(90deg, transparent, rgba(6, 82, 221, 0.25), transparent);
}

/* Hero glass card — mobilde küçüt */

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(6, 82, 221, 0.3), 0 0 16px rgba(6, 82, 221, 0.15); }
  50%       { text-shadow: 0 0 20px rgba(6, 82, 221, 0.9), 0 0 40px rgba(6, 82, 221, 0.5), 0 0 70px rgba(6, 82, 221, 0.25); }
}
.text-glow-pulse {
  animation: textGlow 2.2s ease-in-out infinite;
}

/* Carousel scrollbar gizle */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ── QR Phone Frame — mobilde büyük, desktopda küçük ── */
.qr-phone-wrap { width: 72%; }
@media (min-width: 640px) { .qr-phone-wrap { width: 52%; } }

/* ── Mobile Responsive Overrides ───────────────── */
@media (max-width: 479px) {
  /* Floating notif cards: küçük ekranda daha compact */
  .hero-glow {
    display: none; /* 480px altında cursor glow performans için kapat */
  }

  /* Browser-frame içi POS content: çok küçük ekranda font küçük */
  .browser-frame .font-mono {
    font-size: clamp(6px, 1.8vw, 8px);
  }

  /* Reveal animation delay azalt (mobile hız) */
  .reveal-stagger > *:nth-child(2) { transition-delay: 0.05s; }
  .reveal-stagger > *:nth-child(3) { transition-delay: 0.10s; }
  .reveal-stagger > *:nth-child(4) { transition-delay: 0.15s; }
}

@media (max-width: 639px) {
  /* Trust section stat sayıları tam görünsün */
  .trust-stat {
    text-align: center;
  }

  /* Hero section: overflow-x'i bastır */
  #hero-section-canvas {
    overflow: hidden;
  }

  /* Floating card buttons: tap hedefi büyüt */
  .float-animation {
    cursor: pointer;
  }

  /* Pricing kartlar: mobilde daha az padding (sm: ile handle edildi) */
  /* Persona kartlar: iç mockup'ları daha compact yap */
  .persona-mockup-inner {
    padding: 12px;
  }
}
