/* ==========================================================================
   HACKERA REWARDS - style.css
   Core site styles. Mobile-first, shared by the EN and BG pages.
   Load order: style.css, then rewards.css (app pages only).
   Brand orange: #ff5a1f
   Breakpoints: 480 (large phone) / 640 (tablet) / 900 (desktop) / 1080 (nav)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */

:root {
  color-scheme: light;

  --ink: #0b0b0c;
  --pearl: #f5f5f7;
  --paper: #fff;
  --muted: #6e6e73;
  --line-soft: #e5e5ea;

  --orange: #ff5a1f;
  --orange-deep: #d9430c;
  --orange-soft: rgba(255, 90, 31, 0.1);
  --gradient: linear-gradient(135deg, #ff5a1f 0%, #e03e00 100%);

  --on-dark: rgba(255, 255, 255, 0.65);
  --on-dark-line: rgba(255, 255, 255, 0.14);
  --on-dark-fill: rgba(255, 255, 255, 0.04);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(11, 11, 12, 0.05);
  --shadow-md: 0 12px 28px rgba(11, 11, 12, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 11, 12, 0.14);

  --ease-fast: 160ms ease;
  --ease: 220ms ease;

  --container: 72rem;
  --gutter: clamp(16px, 4vw, 24px);
  --header-h: 60px;
  --section-y: clamp(56px, 8vw, 80px);
  --focus-ring: 0 0 0 3px rgba(255, 90, 31, 0.28);

  --font-sans: "Poppins", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* ---------- 2. Reset and base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  hyphens: auto;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
  accent-color: var(--orange);
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

a {
  color: inherit;
}

::selection {
  background: rgba(255, 90, 31, 0.2);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

/* Hyphenate body copy only; keep headings and buttons intact. */
h1, h2, h3, h4, .hk-btn, .hk-tag, .hk-lang {
  hyphens: manual;
}

/* Wrap long words instead of overflowing, without collapsing min-content. */
h1, h2, h3, h4, p, li, td, th, label, span {
  overflow-wrap: break-word;
}

body.hk-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. Layout ---------- */

.hk-wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hk-section {
  padding: var(--section-y) 0;
}

.hk-dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

/* Keep content above the decorative grid overlay. */
.hk-dark > .hk-wrap,
.hk-footer > .hk-wrap {
  position: relative;
  z-index: 2;
}

.hk-light { background: var(--pearl); }
.hk-white { background: var(--paper); }

.hk-title {
  max-width: 36rem;
  margin: 0;
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hk-lead {
  max-width: 38rem;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.hk-dark .hk-lead { color: var(--on-dark); }

.hk-note {
  margin-top: 16px;
  font-size: 12px;
}

/* Decorative background grid and pulsing dot. */
.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  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: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

.eyebrow-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.6);
  animation: hkPulse 2s infinite;
}

@keyframes hkPulse {
  70%  { box-shadow: 0 0 0 8px rgba(255, 90, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}

/* Responsive grids: 1 column, 2 on tablet, full on desktop. */
.hk-grid,
.hk-security,
.hk-road {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.hk-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hk-split > * { min-width: 0; }

.hk-split img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(11, 11, 12, 0.2));
}

.hk-split .hk-grid { margin-top: 28px; }

/* ---------- 4. Header ---------- */

.hk-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 11, 12, 0.97);
  color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hk-header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: var(--container);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 10px var(--gutter);
}

.hk-logo {
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.hk-logo i,
.hk-brand i,
.hk-footer-brand i {
  color: var(--orange);
  font-style: normal;
}

/* Muted "Rewards" suffix, used in the logo, footer and drawer title. */
.hk-logo span,
.hk-footer-brand span,
.hk-brand small {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.hk-logo span { font-size: 0.8em; }
.hk-footer-brand span { font-size: 0.6em; }
.hk-brand small { font-size: 0.7em; letter-spacing: 0; }

.hk-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Desktop navigation only. Phones and tablets use the page sections directly. */
.hk-nav {
  display: none;
  align-items: center;
  gap: 22px;
}

.hk-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease-fast);
}

.hk-nav a:hover,
.hk-nav a:focus-visible { color: var(--orange); }
.hk-nav a.hk-nav-active { color: #fff; }

.hk-header-right {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hk-header .hk-btn {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
}

/* Hide the secondary "Sign in" button on small phones to keep one clean row. */
.hk-header .hk-btn-ghost { display: none; }

/* Language switcher (pill). */
.hk-lang {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  height: 32px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: #fff;
}

.hk-lang a,
.hk-lang span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 100%;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--ease-fast);
}

.hk-lang a:hover { opacity: 1; }

.hk-lang [aria-current] {
  background: var(--orange);
  color: #fff;
  opacity: 1;
}

/* ---------- 5. Buttons ---------- */

.hk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-height: 46px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition:
    transform var(--ease-fast),
    box-shadow var(--ease-fast),
    background-color var(--ease-fast),
    border-color var(--ease-fast);
}

.hk-btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.14);
}

.hk-btn-primary:hover,
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 90, 31, 0.34);
}

.hk-btn-primary:active { transform: translateY(0); }

.hk-btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}

.hk-btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
}

.hk-btn:disabled,
.hk-btn[aria-disabled="true"] {
  transform: none;
  box-shadow: none;
}

.hk-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.hk-cta-row .hk-btn { flex: 1 1 100%; }

/* ---------- 6. Hero ---------- */

.hk-hero { padding: clamp(56px, 9vw, 88px) 0 clamp(48px, 7vw, 72px); }

.hk-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hk-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  font: 11px/1.5 var(--font-mono);
  color: rgba(255, 255, 255, 0.8);
}

.hk-h1 {
  max-width: 850px;
  margin: 18px 0 0;
  font-size: clamp(2rem, 7.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hk-sub {
  max-width: 34rem;
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.hk-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 30px;
  font-family: var(--font-mono);
}

.hk-stats > div { min-width: 0; }

.hk-stats b {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  line-height: 1.35;
}

.hk-stats span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.hk-visual {
  position: relative;
  min-width: 0;
}

.hk-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.35), transparent);
  filter: blur(30px);
  pointer-events: none;
}

.hk-visual img {
  position: relative;
  display: block;
  width: 100%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}

.hk-float { animation: hkFloat 7s ease-in-out infinite; }

@keyframes hkFloat {
  50% { transform: translateY(-10px); }
}

/* ---------- 7. Cards, steps, icons ---------- */

.hk-card,
.hk-step,
.hk-sec-item,
.hk-road-item {
  min-width: 0;
  border-radius: var(--radius-lg);
  transition:
    transform var(--ease),
    border-color var(--ease),
    background-color var(--ease),
    box-shadow var(--ease);
}

.hk-card,
.hk-road-item {
  border: 1px solid var(--line-soft);
  background: var(--paper);
}

.hk-card {
  padding: 22px;
  box-shadow: 0 1px 2px rgba(11, 11, 12, 0.02);
}

.hk-card h3 {
  margin: 14px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.hk-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

.hk-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font: 600 13px var(--font-mono);
}

.hk-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--orange-soft);
  color: var(--orange-deep);
  font: 600 11px/1.5 var(--font-mono);
}

.hk-steps { counter-reset: step; }

.hk-step,
.hk-sec-item {
  border: 1px solid var(--on-dark-line);
  background: var(--on-dark-fill);
}

.hk-step { padding: 22px; }

.hk-step::before {
  content: counter(step);
  counter-increment: step;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--gradient);
  font-size: 14px;
  font-weight: 700;
}

.hk-step h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.45;
}

.hk-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--on-dark);
}

/* ---------- 8. Comparison table ---------- */

.hk-table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.hk-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.hk-table th,
.hk-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.hk-table tr:last-child td { border-bottom: 0; }

.hk-table thead th {
  background: var(--pearl);
  font-weight: 600;
}

.hk-table tbody th { font-weight: 600; }
.hk-table td.hk-them { color: var(--muted); }

.hk-table .hk-us {
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-weight: 600;
}

/* ---------- 9. Security and roadmap ---------- */

.hk-sec-item {
  padding: 19px;
  border-radius: 16px;
}

.hk-sec-item b {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.hk-sec-item span {
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

.hk-road-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
}

.hk-road-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.45;
}

.hk-road-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 10. Footer ---------- */

.hk-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px 0 24px;
  background: var(--ink);
  color: #fff;
}

.hk-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 18px;
}

.hk-footer-grid > * { min-width: 0; }
.hk-footer-grid > :first-child { grid-column: 1 / -1; }

.hk-footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hk-footer-tag,
.hk-footer-note {
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.hk-footer-tag {
  max-width: 24rem;
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.hk-footer-note {
  max-width: 46rem;
  margin: 18px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.hk-footer h4 {
  margin: 0 0 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.hk-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Scoped to list links so footer buttons keep their own colours. */
.hk-footer li a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--ease-fast);
}

.hk-footer li a:hover { color: var(--orange); }

.hk-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font: 12px/1.7 var(--font-mono);
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 11. Apply drawer and form ---------- */

.hk-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 11, 12, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.hk-overlay.open {
  opacity: 1;
  visibility: visible;
}

.hk-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.3);
  transform: translateX(-105%);
  visibility: hidden;
  transition:
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 300ms ease;
}

.hk-drawer.open {
  transform: none;
  visibility: visible;
}

.hk-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  background: var(--ink);
  color: #fff;
}

.hk-drawer-head > div { min-width: 0; }

.hk-drawer-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.hk-drawer-head p {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.hk-close {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  transition: background-color var(--ease-fast), border-color var(--ease-fast);
}

.hk-close:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.hk-form {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 16px;
  min-height: 0;
  padding: 24px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.hk-field { min-width: 0; }

.hk-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

.hk-field input,
.hk-field select,
.hk-field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #d8d8df;
  border-radius: 12px;
  background: var(--pearl);
  color: var(--ink);
  font-size: 16px; /* 16px stops iOS from zooming on focus */
  line-height: 1.5;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast), background-color var(--ease-fast);
}

.hk-field textarea {
  min-height: 110px;
  resize: vertical;
}

.hk-field ::placeholder {
  color: #85858d;
  opacity: 1;
}

.hk-field input:focus,
.hk-field select:focus,
.hk-field textarea:focus {
  border-color: var(--orange);
  outline: 0;
  background: #fff;
  box-shadow: var(--focus-ring);
}

/* Honeypot: off-screen, not display:none, so simple bots still fill it. */
.hk-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.hk-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.hk-check input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
}

.hk-check a {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hk-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: transform var(--ease-fast), box-shadow var(--ease-fast), opacity var(--ease-fast);
}

.hk-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 90, 31, 0.3);
}

.hk-form-msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.hk-form-msg.err { color: #c2260c; }
.hk-form-msg.success { color: #18794e; }
.hk-form-msg:empty { display: none; }

.hk-field [aria-invalid="true"] {
  border-color: #c2260c;
  box-shadow: 0 0 0 3px rgba(194, 38, 12, 0.1);
}

.hk-check input[aria-invalid="true"] { outline: 2px solid #c2260c; }

.hk-submit:disabled { cursor: wait; opacity: 0.65; }

/* Small legal text under the hero and under the form. */
.hk-fineprint {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.hk-dark .hk-fineprint { color: rgba(255, 255, 255, 0.48); }
.hk-hero .hk-fineprint { margin-top: 18px; }
.hk-done .hk-submit { margin-top: 20px; }

.hk-done {
  padding: 40px var(--gutter);
  text-align: center;
}

.hk-done h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.hk-done p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- 12. Tablet (640px+) ---------- */

@media (min-width: 640px) {
  .hk-cta-row .hk-btn { flex: 0 0 auto; }

  .hk-grid,
  .hk-road {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
  }

  .hk-security {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
  }

  .hk-card { padding: 26px; }
  .hk-step { padding: 26px; }
  .hk-road-item { padding: 22px; gap: 16px; }
  .hk-sec-item { padding: 22px; }

  .hk-table-wrap {
    margin-top: 40px;
    border-radius: var(--radius-lg);
  }

  .hk-table th,
  .hk-table td { padding: 18px 22px; }

  .hk-header-in { gap: 16px; }
  .hk-header-right { gap: 12px; }
  .hk-logo { font-size: 1.25rem; }

  .hk-header .hk-btn {
    min-height: 40px;
    padding: 10px 20px;
    font-size: 13px;
  }

  .hk-header .hk-btn-ghost { display: inline-flex; }

  .hk-lang { height: 36px; }
  .hk-lang a, .hk-lang span { min-width: 34px; padding: 0 10px; }

  .hk-footer { padding: 64px 0 28px; }

  .hk-footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 48px;
    padding-top: 22px;
  }

  .hk-drawer { width: min(440px, 100%); }
}

/* ---------- 13. Desktop (900px+) ---------- */

@media (min-width: 900px) {
  .hk-hero-grid,
  .hk-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
  }

  .hk-grid.hk-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hk-grid.hk-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .hk-footer-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
  .hk-footer-grid > :first-child { grid-column: auto; }
}

/* Navigation needs room for longer Bulgarian labels. */
@media (min-width: 1080px) {
  .hk-nav { display: flex; }
}

/* ---------- 14. Small phones ---------- */

@media (max-width: 380px) {
  .hk-logo span { display: none; }
  .hk-header .hk-btn { padding-inline: 11px; }
  .hk-chip { font-size: 10.5px; }
  .hk-card { padding: 18px; }
}

/* ---------- 15. Hover (mouse devices only) ---------- */

@media (hover: hover) and (pointer: fine) {
  .hk-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
    box-shadow: 0 16px 36px rgba(11, 11, 12, 0.1);
  }

  .hk-step:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 90, 31, 0.45);
    background: rgba(255, 255, 255, 0.06);
  }

  .hk-sec-item:hover {
    border-color: rgba(255, 90, 31, 0.4);
    background: rgba(255, 255, 255, 0.055);
  }

  .hk-road-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 90, 31, 0.5);
    box-shadow: var(--shadow-md);
  }
}

@media (hover: none) {
  .btn-glow:hover,
  .hk-btn-primary:hover { transform: none; box-shadow: 0 4px 14px rgba(255, 90, 31, 0.14); }
}

/* ---------- 16. Reduced motion ---------- */

@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;
  }

  .hk-float,
  .eyebrow-dot { animation: none !important; }
}
