/* ═══════════════════════════════════════════
   KOLAYHESAP — Premium Design System v2
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;450;500;600;700;800;900&display=swap');

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #0f172a;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img, video { display: block; max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
::selection { background: #0f172a; color: #fff; }


/* ═══════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════ */

@keyframes gentle-shake {
  0%, 50%, 100% { transform: translateX(0) rotate(0deg); }
  10%  { transform: translateX(-1.5px) rotate(-0.8deg); }
  20%  { transform: translateX(1.5px) rotate(0.8deg); }
  30%  { transform: translateX(-1px) rotate(-0.4deg); }
  40%  { transform: translateX(1px) rotate(0.4deg); }
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(10px); opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }


/* ═══════════════════════════════════════════
   NOISE OVERLAY (subtle texture)
   ═══════════════════════════════════════════ */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.018;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}


/* ═══════════════════════════════════════════
   STICKY BUTTONS
   ═══════════════════════════════════════════ */

.sticky-whatsapp {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3),
              0 0 0 0 rgba(37, 211, 102, 0.2);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  animation: fade-up 0.7s ease-out 1.2s both;
}
.sticky-whatsapp svg { width: 26px; height: 26px; fill: #fff; }
.sticky-whatsapp:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
}

.sticky-demo-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  animation: fade-up 0.7s ease-out 1.4s both;
}

.sticky-demo-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.15);
  animation: pulse-ring 2.8s ease-out infinite;
  pointer-events: none;
}

.sticky-demo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 9999px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.25);
  animation: gentle-shake 4s ease-in-out 2s infinite;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sticky-demo:hover {
  background: #1e293b;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35);
}
.sticky-demo svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.8; }


/* ═══════════════════════════════════════════
   COMMON — Section Styling
   ═══════════════════════════════════════════ */

.container       { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-tight { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.container-wide  { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 20px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: #cbd5e1;
}

.section-heading {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 480px;
}

.section-header-center {
  text-align: center;
  margin-bottom: 72px;
}

.section-header-center .section-eyebrow {
  justify-content: center;
}

.section-header-center .section-eyebrow::before {
  display: none;
}

.section-header-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ── Divider line ── */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0 30%, #e2e8f0 70%, transparent);
  margin: 0;
}


/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 100px 24px 80px;
  overflow: hidden;
}

/* subtle radial gradient behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(241,245,249,0.6) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 36px;
  animation: fade-up 0.8s ease-out 0.15s both;
  background: rgba(248, 250, 252, 0.6);
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  animation: float 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #0f172a;
  max-width: 860px;
  margin: 0 auto 28px;
  animation: fade-up 0.8s ease-out 0.3s both;
}

.hero h1 .strikethrough {
  position: relative;
  text-decoration: none;
}

.hero h1 .strikethrough::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 52%;
  height: 3px;
  background: linear-gradient(90deg, #cbd5e1, #94a3b8);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.75;
  font-weight: 370;
  animation: fade-up 0.8s ease-out 0.45s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-up 0.8s ease-out 0.6s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-size: 15px;
  font-weight: 550;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  letter-spacing: -0.005em;
}
.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
}
.btn-primary svg { width: 16px; height: 16px; opacity: 0.7; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-ghost:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-2px);
}
.btn-ghost svg { width: 16px; height: 16px; opacity: 0.5; }

.hero-trust {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
  animation: fade-up 0.8s ease-out 0.75s both;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 450;
}

.hero-trust svg { width: 14px; height: 14px; color: #cbd5e1; }

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #cbd5e1;
  animation: bounce-down 2.4s ease-in-out infinite, fade-in 1s ease-out 1.5s both;
}
.scroll-indicator svg { width: 20px; height: 20px; }


/* ═══════════════════════════════════════════
   VIDEO SHOWCASE
   ═══════════════════════════════════════════ */

.video-section {
  padding: 100px 0 120px;
  background: #fafbfc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.video-section .container-wide {
  padding: 0 24px;
}

.feature-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 100px;
}
.feature-block:last-child { margin-bottom: 0; }

/* alternating layout */
.feature-block.reverse { }

.feature-video { width: 100%; }

.video-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04),
              0 8px 32px rgba(0,0,0,0.05);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.video-wrap:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.04),
              0 16px 48px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.video-wrap video { width: 100%; display: block; }

/* browser-style top bar */
.video-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(to bottom, rgba(248,250,252,0.95), rgba(248,250,252,0.8));
  backdrop-filter: blur(6px);
  z-index: 2;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.video-wrap::after {
  content: '● ● ●';
  position: absolute;
  top: 8px;
  left: 14px;
  font-size: 8px;
  letter-spacing: 4px;
  color: #cbd5e1;
  z-index: 3;
}

.video-wrap video { padding-top: 32px; }

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-step {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  user-select: none;
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-text h3 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.feature-text p {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: #64748b;
  line-height: 1.8;
}

.feature-text .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 6px 14px;
  border-radius: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 12px;
  font-weight: 550;
  color: #16a34a;
}

.feature-text .tag svg {
  width: 12px;
  height: 12px;
}


/* ═══════════════════════════════════════════
   BENTO GRID
   ═══════════════════════════════════════════ */

.bento-section {
  padding: 120px 0;
  background: #fff;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.bento-card {
  position: relative;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 36px;
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(241,245,249,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: #e2e8f0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02),
              0 8px 32px rgba(0,0,0,0.06);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card-inner {
  position: relative;
  z-index: 1;
}

.bento-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  margin-bottom: 24px;
}

.bento-icon svg {
  width: 22px;
  height: 22px;
  stroke: #334155;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-card h3 {
  font-size: 1.1rem;
  font-weight: 650;
  color: #0f172a;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.bento-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
}


/* ═══════════════════════════════════════════
   METRICS / SOCIAL PROOF
   ═══════════════════════════════════════════ */

.metrics-section {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}

.metric {
  padding: 8px;
}

.metric-value {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 450;
}


/* ═══════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════ */

.cta-section {
  position: relative;
  padding: 120px 24px 140px;
  background: #0f172a;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.06) 70%, transparent);
}

/* grid pattern */
.cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container-tight {
  position: relative;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cta-section .cta-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.45);
  margin-bottom: 44px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.btn-cta-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-cta-light:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,255,255,0.1);
}
.btn-cta-light svg { width: 16px; height: 16px; opacity: 0.5; }

.cta-hint {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.site-footer {
  padding: 32px 24px;
  text-align: center;
  background: #0f172a;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.site-footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.footer-links {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.15);
}
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.4); }
.footer-links .dot { margin: 0 8px; }


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

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

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-card { padding: 40px; }

  .feature-block {
    flex-direction: row;
    gap: 0;
    align-items: center;
  }

  .feature-block.reverse {
    flex-direction: row-reverse;
  }

  .feature-video { width: 58%; }

  .feature-text {
    width: 42%;
    padding-left: 52px;
  }

  .feature-block.reverse .feature-text {
    padding-left: 0;
    padding-right: 52px;
  }
}

@media (max-width: 767px) {
  .sticky-whatsapp {
    width: 48px;
    height: 48px;
    bottom: 16px;
    left: 16px;
  }
  .sticky-whatsapp svg { width: 22px; height: 22px; }

  .sticky-demo-wrap {
    bottom: 16px;
    right: 16px;
  }

  .sticky-demo {
    padding: 12px 18px;
    font-size: 12px;
  }

  .hero { padding: 80px 20px 64px; }

  .video-section,
  .bento-section { padding: 80px 0; }

  .feature-block { margin-bottom: 72px; gap: 28px; }

  .cta-section { padding: 80px 20px 100px; }

  .hero-actions { gap: 12px; }
  .btn-primary, .btn-ghost { padding: 13px 24px; font-size: 14px; }

  .metrics-grid { gap: 20px; }
}

@media (max-width: 374px) {
  .sticky-demo { padding: 10px 14px; font-size: 11px; }
  .sticky-demo .btn-label { display: none; }
  .sticky-demo .btn-label-short { display: inline; }
}

@media (min-width: 375px) {
  .sticky-demo .btn-label-short { display: none; }
}
