/* =========================================================
   HaloHadir — Custom Styles
   Design tokens, typography, and bespoke components that sit
   on top of Tailwind's utility classes.
   ========================================================= */

:root {
  --color-primary: #0D5BFF;
  --color-primary-dark: #0949D0;
  --color-dark: #070F2B;
  --color-gray: #64748B;
  --color-bg: #FFFFFF;
  --color-border: #E2E8F0;
  --color-light: #EEF5FF;
  --color-success: #22C55E;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -8px rgba(15, 23, 42, 0.08);
  --shadow-card-hover: 0 4px 12px rgba(15, 23, 42, 0.06), 0 16px 40px -12px rgba(15, 23, 42, 0.14);
  --shadow-float: 0 12px 32px -8px rgba(15, 23, 42, 0.18);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html, body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-dark);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--color-primary);
  color: white;
}

/* Focus states — visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Container width rhythm */
.container-hh {
  width: 100%;
  max-width: 1216px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .container-hh { padding-inline: 32px; }
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  padding: 6px 14px;
  border-radius: 999px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

/* Section heading rhythm */
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-dark);
}

.section-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-gray);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out), border-color .2s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1), 0 8px 20px -6px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.12), 0 14px 28px -6px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--color-dark);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: #CBD5E1;
  background: var(--color-light);
  transform: translateY(-1px);
}

.btn-dark {
  background: white;
  color: var(--color-dark);
}

.btn-dark:hover {
  background: #F1F5F9;
  transform: translateY(-1px);
}

/* Card */
.card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out), border-color .25s var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: #CBD5E1;
}

/* Navbar */
#navbar {
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.nav-link {
  position: relative;
  color: var(--color-gray);
  font-weight: 500;
  font-size: 14.5px;
  transition: color 0.2s var(--ease-out);
}

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

/* Hero background grid */
.hero-grid {
  background-image:
    linear-gradient(to right, #EEF2F7 1px, transparent 1px),
    linear-gradient(to bottom, #EEF2F7 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* Floating dashboard cards */
.float-card {
  animation: floatY 6s ease-in-out infinite;
  box-shadow: var(--shadow-float);
}

.float-card.delay-1 { animation-delay: -1.6s; }
.float-card.delay-2 { animation-delay: -3.2s; }

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

/* Dashboard mockup chart bars */
.bar {
  transform-origin: bottom;
  animation: growBar 1.2s var(--ease-out) both;
}

@keyframes growBar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Pulse dot for live indicators */
.pulse-dot {
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: var(--color-success);
  opacity: 0.35;
  animation: pulseRing 1.8s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Marquee for trust/stats strip divider ticks */
.stat-value {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}

/* Pricing highlighted card */
.pricing-highlight {
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 2px 4px rgba(37,99,235,0.08), 0 24px 48px -16px rgba(37, 99, 235, 0.28);
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 22px 4px;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-dark);
  gap: 24px;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
  color: var(--color-gray);
}

.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--color-primary); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out), padding 0.35s var(--ease-out);
}

.faq-item.open .faq-answer {
  padding-bottom: 22px;
}

/* Timeline (How it works) */
.timeline-line {
  background: linear-gradient(to bottom, var(--color-border) 0%, var(--color-border) 100%);
}

/* Industry chip */
.industry-card {
  transition: border-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.industry-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: var(--shadow-card-hover);
}

/* Mobile menu */
#mobile-menu {
  transition: max-height 0.35s var(--ease-out), opacity 0.25s var(--ease-out);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.open {
  max-height: 600px;
  opacity: 1;
}

/* Back-to-top */
#back-to-top {
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Utility: gradient text kept subtle, brand-only (no colorful gradients) */
.text-balance { text-wrap: balance; }

/* Testimonial card quote mark */
.quote-mark {
  font-family: Georgia, serif;
  line-height: 1;
  color: #DBEAFE;
}

/* Lazy image fade-in */
img.lazy-fade {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
img.lazy-fade.loaded {
  opacity: 1;
}
