/**
 * WiseCode — עיצוב אתר תדמית
 * קובץ סגנונות מרכזי (בנוסף ל-Tailwind CDN בדפים)
 */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* —— Header / לוגו —— */
.glass-nav {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-solid {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.logo-glow {
  filter: drop-shadow(0 4px 16px rgba(57, 181, 74, 0.12));
  transition: filter 0.35s ease, transform 0.35s ease;
}

.logo-glow:hover {
  filter: drop-shadow(0 8px 24px rgba(57, 181, 74, 0.2));
  transform: scale(1.03);
}

/* גודל לוגו בכותרת — מוגדר כאן לשליטה מרכזית */
.site-logo-header {
  height: 72px;
  width: auto;
  max-height: min(20vw, 88px);
  object-fit: contain;
  object-position: right center;
}

@media (min-width: 640px) {
  .site-logo-header {
    height: 80px;
    max-height: 96px;
  }
}

.site-nav-inner {
  min-height: 4rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .site-nav-inner {
    min-height: 4.5rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }
}

/* —— Hero —— */
.hero-shell {
  position: relative;
  min-height: min(92vh, 900px);
  background: #fafbfc;
  overflow: hidden;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 100%);
  pointer-events: none;
}

.hero-shell::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 80%;
  top: -20%;
  right: -25%;
  background:
    radial-gradient(ellipse at center, rgba(57, 181, 74, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 70%, rgba(15, 23, 42, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  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");
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-up {
  animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
  opacity: 0;
}

.delay-2 {
  animation-delay: 0.22s;
  opacity: 0;
}

.delay-3 {
  animation-delay: 0.34s;
  opacity: 0;
}

.delay-4 {
  animation-delay: 0.46s;
  opacity: 0;
}

.hero-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #39b54a;
}

.hero-title {
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: #050508;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, #39b54a 0%, #2d9a3e 45%, #050508 45%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stack-pill {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #3d3d45;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-primary {
  background: linear-gradient(135deg, #050508 0%, #1a1a24 100%);
  color: #fff;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(57, 181, 74, 0.25) inset;
}

.btn-outline {
  border: 2px solid rgba(5, 5, 8, 0.14);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn-outline:hover {
  border-color: #050508;
  background: #fff;
  transform: translateY(-2px);
}

/* —— Browser mock —— */
.browser-wrap {
  animation: float-soft 7s ease-in-out infinite;
}

.browser-frame {
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fc 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 50px 100px -20px rgba(0, 0, 0, 0.15),
    0 30px 60px -30px rgba(57, 181, 74, 0.12);
  overflow: hidden;
}

.browser-chrome {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: linear-gradient(180deg, #f0f1f5 0%, #e8eaef 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-url {
  flex: 1;
  margin: 0 12px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: ui-monospace, monospace;
  direction: ltr;
  justify-content: flex-start;
}

.browser-body {
  padding: 1.25rem;
  min-height: 220px;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 40%);
}

.mock-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8eaef, #f0f1f5);
  margin-bottom: 12px;
}

.mock-bar.w-90 {
  width: 90%;
}

.mock-bar.w-70 {
  width: 70%;
}

.mock-bar.w-40 {
  width: 40%;
}

.mock-bar.w-55 {
  width: 55%;
}

.mock-bar.brand {
  background: linear-gradient(90deg, rgba(57, 181, 74, 0.35), rgba(57, 181, 74, 0.08));
}

.mock-code {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #0c0c10;
  color: #a8f0b0;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.65;
  text-align: left;
  direction: ltr;
  border: 1px solid rgba(57, 181, 74, 0.2);
  box-shadow: 0 0 40px rgba(57, 181, 74, 0.08) inset;
}

.mock-code .kw {
  color: #7dd3fc;
}

.mock-code .str {
  color: #86efac;
}

.stat-card {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  padding: 1rem 1.25rem;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.stat-card:hover {
  border-color: rgba(57, 181, 74, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.accent-glow {
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #39b54a, #2d9a3e);
  box-shadow: 0 4px 20px rgba(57, 181, 74, 0.4);
}

.card-pro {
  border-radius: 24px;
  background: linear-gradient(165deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 0 rgba(255, 255, 255, 1) inset;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    border-color 0.3s;
  position: relative;
}

.card-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(57, 181, 74, 0.2), transparent 40%, transparent);
  -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.35s;
}

.card-pro:hover::before {
  opacity: 1;
}

.card-pro:hover {
  transform: translateY(-8px);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(57, 181, 74, 0.08);
}

.card-pro-featured {
  background: linear-gradient(155deg, #0c0c10 0%, #16161f 50%, #0c0c10 100%);
  border-color: rgba(57, 181, 74, 0.25);
  color: #fff;
}

.card-pro-featured p {
  color: rgba(255, 255, 255, 0.72);
}

.card-pro-featured::before {
  background: linear-gradient(135deg, rgba(57, 181, 74, 0.5), transparent 50%);
  opacity: 0.4;
}

.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, #1a1a24 0%, #050508 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.icon-tile-light {
  background: linear-gradient(145deg, #ffffff 0%, #eef0f5 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.section-soft {
  background: linear-gradient(180deg, #ffffff 0%, #f4f5f8 55%, #eef0f5 100%);
}

.contact-panel {
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fc 100%);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
}

.cta-dark {
  background: linear-gradient(180deg, #0c0c10 0%, #050508 100%);
  position: relative;
  overflow: hidden;
}

.cta-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 80% 50%, rgba(57, 181, 74, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.footer-glass {
  background: #fafbfc;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* לוגו פוטר — מעט גדול מהגרסה הקודמת */
.site-logo-footer {
  height: 3.5rem; /* 56px */
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}

@media (min-width: 640px) {
  .site-logo-footer {
    height: 4rem; /* 64px */
  }
}

/* —— דף 404 —— */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fafbfc;
}

.page-404-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 4rem;
  position: relative;
  overflow: hidden;
}

.page-404-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.8;
  pointer-events: none;
}

.err-code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(135deg, #050508 0%, #39b54a 50%, #050508 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (prefers-reduced-motion: reduce) {
  .browser-wrap {
    animation: none;
  }

  .animate-fade-up,
  .delay-1,
  .delay-2,
  .delay-3,
  .delay-4 {
    animation: none !important;
    opacity: 1 !important;
  }
}
