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

:root {
  --yellow:   #F5A623;
  --yellow-d: #D4851A;
  --dark:     #0D0D0D;
  --dark-2:   #141414;
  --dark-3:   #1C1C1C;
  --border:   rgba(255,255,255,0.08);
  --text:     #ECECEC;
  --muted:    #888;
  --radius:   12px;
  --font:     'Inter', system-ui, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== Accessibility ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== Background layers ===== */
.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245,166,35,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245,166,35,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Dot-grid pattern */
.bg-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

#sparks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ===== Page wrap ===== */
.page-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 0 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-k {
  color: var(--yellow);
}

.logo-tools {
  color: #fff;
}

.logo-uk {
  color: var(--muted);
  font-size: 0.55em;
  vertical-align: super;
  letter-spacing: 0.05em;
}

.tagline-pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.25);
  padding: 0.4rem 1rem;
  border-radius: 999px;
}

/* ===== Hero ===== */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 0 4rem;
  max-width: 760px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 2.5rem;
}

.badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.hero-heading {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 1.75rem;
}

.highlight {
  color: var(--yellow);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  opacity: 0.4;
  transform: scaleX(0.85);
  transform-origin: left;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ===== Signup form ===== */
.signup-form {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 520px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.input-wrap {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input::placeholder {
  color: var(--muted);
}

.input-wrap input:focus {
  border-color: rgba(245,166,35,0.5);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}

.input-wrap input.error {
  border-color: #E54545;
  box-shadow: 0 0 0 3px rgba(229,69,69,0.12);
}

.btn-notify {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow);
  color: var(--dark);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius);
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-notify:hover {
  background: var(--yellow-d);
  box-shadow: 0 4px 24px rgba(245,166,35,0.35);
  transform: translateY(-1px);
}

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

.btn-notify.success {
  background: #22C55E;
  box-shadow: 0 4px 24px rgba(34,197,94,0.3);
  pointer-events: none;
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.btn-notify:hover .btn-arrow {
  transform: translateX(3px);
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 1.2em;
  transition: color 0.2s;
}

.form-note.success { color: #22C55E; }
.form-note.error   { color: #E54545; }

/* ===== Feature pills ===== */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 3.5rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  transition: color 0.2s, border-color 0.2s;
}

.feature-pill:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
}

.feature-pill svg {
  width: 15px;
  height: 15px;
  color: var(--yellow);
  flex-shrink: 0;
}

/* ===== Footer ===== */
.site-footer {
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer-contact {
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.footer-contact a:hover {
  opacity: 0.75;
}

.footer-sub {
  opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .count-unit {
    min-width: 70px;
    padding: 1rem 1rem;
  }

  .count-sep {
    font-size: 1.8rem;
  }

  .signup-form {
    flex-direction: column;
  }

  .btn-notify {
    justify-content: center;
  }
}
