/* ==========================================================================
   Blinknow website — shared styles
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink-900);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- container --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* --- ambient orb / gradient backgrounds ------------------------------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.55;
}
.orb.amber { background: radial-gradient(circle, #f58307 0%, transparent 70%); }
.orb.teal  { background: radial-gradient(circle, #14b87e 0%, transparent 70%); }
.orb.amber-soft { background: radial-gradient(circle, #ffbc4a 0%, transparent 70%); }

.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

/* --- nav --------------------------------------------------------------- */
.site-nav {
  position: sticky; top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(11, 14, 25, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-nav .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.site-nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
}
.site-nav .brand .bolt {
  width: 26px; height: 26px;
  background: var(--gradient-blink);
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(245,131,7,0.4);
}
.site-nav .brand .bolt svg { width: 14px; height: 14px; }
.site-nav .links {
  display: flex; align-items: center; gap: 36px;
}
.site-nav .links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 160ms;
}
.site-nav .links a:hover { color: #fff; }
.site-nav .links a.active { color: #fff; }
.site-nav .nav-cta {
  display: flex; align-items: center; gap: 12px;
}
/* Sign-in link sits beside the primary CTA — hidden on small screens where
   the mobile drawer carries it instead. */
.site-nav .nav-signin {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 160ms;
  white-space: nowrap;
}
.site-nav .nav-signin:hover { color: #fff; }
@media (max-width: 900px) {
  .site-nav .links { display: none; }
  .site-nav .nav-signin { display: none; }
  .site-nav .inner { padding: 0 20px; height: 64px; }
}

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 160ms, box-shadow 160ms, background 160ms;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-blink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(245,131,7,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(245,131,7,0.45);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
}
.btn-light {
  background: #fff;
  color: var(--ink-900);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }

.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 16px; }

/* --- typography -------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blink-400);
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--blink-400);
}
.eyebrow.no-line::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.h-display {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.h-section {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.h-card {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  max-width: 640px;
}
.body-text {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}
.mono { font-family: var(--font-mono); }
.blink-grad {
  background: var(--gradient-blink);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.duotone-grad {
  background: var(--gradient-duotone);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- sections ---------------------------------------------------------- */
.section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.section.tight { padding: 80px 0; }
.section.cream { background: #FAF6EE; color: var(--ink-900); }
.section.cream h1, .section.cream h2, .section.cream h3, .section.cream h4 { color: var(--ink-900); }
.section.cream .lead, .section.cream .body-text { color: var(--ink-600); }
.section.white { background: #fff; color: var(--ink-900); }
.section.white h1, .section.white h2, .section.white h3, .section.white h4 { color: var(--ink-900); }
.section.white .lead, .section.white .body-text { color: var(--ink-600); }

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section.tight { padding: 56px 0; }
}

/* --- card -------------------------------------------------------------- */
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 200ms, transform 200ms;
}
.card:hover {
  border-color: rgba(255,255,255,0.16);
}
.card.cream-card {
  background: #fff;
  border: 1px solid var(--ink-100);
  color: var(--ink-900);
}
.card.cream-card h3, .card.cream-card h4 { color: var(--ink-900); }
.card.cream-card p { color: var(--ink-500); }

/* --- pill -------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245,131,7,0.12);
  border: 1px solid rgba(245,131,7,0.3);
  color: var(--blink-300);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(245,131,7,0.18);
}
.pill.teal .dot { box-shadow: 0 0 0 3px rgba(20,184,126,0.18); }

/* --- section heading system (used on all subpages) --------------------- */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blink-400);
  margin-bottom: 24px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--blink-400);
}
.theme-light .section-eyebrow { color: var(--blink-600); }
.theme-light .section-eyebrow::before { background: var(--blink-600); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 20px;
  max-width: 18ch;
  text-wrap: balance;
}
.theme-light .section-title { color: var(--ink-900); }

.section-lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  max-width: 64ch;
  margin: 0 0 16px;
  text-wrap: pretty;
}
.theme-light .section-lead { color: var(--ink-600); }
.pill.teal {
  background: rgba(20,184,126,0.12);
  border-color: rgba(20,184,126,0.3);
  color: var(--teal-300);
}
.pill.dark {
  background: rgba(11,14,25,0.06);
  border-color: rgba(11,14,25,0.12);
  color: var(--ink-700);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- footer ------------------------------------------------------------ */
.site-footer {
  background: #050710;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0 40px;
  position: relative;
}
.site-footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.site-footer h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 20px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer li a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 160ms;
}
.site-footer li a:hover { color: var(--blink-400); }
.site-footer .meta {
  max-width: 1280px; margin: 60px auto 0; padding: 32px 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
@media (max-width: 768px) {
  .site-footer .inner { grid-template-columns: 1fr 1fr; gap: 40px; padding: 0 20px; }
  .site-footer .meta { flex-direction: column; gap: 16px; padding: 24px 20px 0; }
}

/* --- whatsapp float ---------------------------------------------------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 50;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(37,211,102,0.4);
  cursor: pointer;
  transition: transform 200ms;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* --- utility ----------------------------------------------------------- */
.text-center { text-align: center; }
.muted { color: rgba(255,255,255,0.55); }
.divider { height: 1px; background: rgba(255,255,255,0.08); margin: 40px 0; }

/* --- animations -------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 800ms var(--ease-out) backwards; }
.fade-up-1 { animation-delay: 100ms; }
.fade-up-2 { animation-delay: 200ms; }
.fade-up-3 { animation-delay: 300ms; }
.fade-up-4 { animation-delay: 400ms; }

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

/* --- modal ------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,7,16,0.8);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--ink-800);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 40px;
  max-width: 480px; width: 100%;
  transform: scale(0.96);
  transition: transform 240ms;
}
.modal-backdrop.show .modal-card { transform: scale(1); }
.modal-card h3 { margin-bottom: 12px; font-size: 28px; }
.modal-card p { color: rgba(255,255,255,0.7); }
.modal-close {
  position: absolute; top: 24px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  color: #fff;
}
.field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.field input, .field select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 160ms;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--blink-400);
}
.field input::placeholder { color: rgba(255,255,255,0.3); }
/* Native select options inherit the OS palette, not the dark card — force it
   so the dropdown list is readable on Windows/Linux Chrome. */
.field select option { background: var(--ink-800); color: #fff; }
.field .form-error {
  font-size: 13px;
  color: #ff9a9d;
  margin: 4px 0 0;
  min-height: 0;
}

/* --- mobile nav menu --------------------------------------------------- */
.mobile-menu-btn {
  display: none;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
@media (max-width: 900px) {
  .mobile-menu-btn { display: inline-flex; }
}
.mobile-drawer {
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(11,14,25,0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 32px 20px;
  display: none;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-drawer.show { display: flex; }
.mobile-drawer a {
  padding: 16px 12px;
  font-size: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-drawer .btn { margin-top: 16px; justify-content: center; }

/* --- accessibility ----------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--blink-400);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 300;
  background: var(--ink-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
