/* madnek.com: Michael Nektalov's landing page. Colours follow the app's "Golden Hour" theme. */
:root {
  --navy: #0a1a2f;
  --navy-2: #0d2340;
  --plum: #2b2a4c;
  --rust: #7a3e3e;
  --fg: #f1f6fa;
  --muted: #a9bdcf;
  --lemon: #f6d44a;
  --peach: #ffb45b;
  --coral: #ff8a6e;
  --sea: #2ed3c1;
  --card: rgba(14, 32, 56, 0.6);
  --line: rgba(255, 255, 255, 0.12);
  --sunset: linear-gradient(100deg, var(--lemon) 0%, var(--peach) 55%, var(--coral) 100%);
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--navy);
  color: var(--fg);
  font-family: "Heebo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: "Rubik", "Heebo", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--lemon);
}
img {
  max-width: 100%;
  display: block;
}
:focus-visible {
  outline: 3px solid var(--lemon);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--lemon);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
/* Hyphenated words (מד-נק, צ׳ק-אין) stay on one line. */
.nb {
  white-space: nowrap;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 22, 40, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.brand img {
  width: 34px;
  height: 34px;
}
.brand .mad {
  color: var(--lemon);
}
.site-nav {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.98rem;
}
.site-nav a:hover {
  color: var(--fg);
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}
.lang:hover {
  border-color: var(--lemon);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-main {
  background: var(--sunset);
  color: var(--navy);
}
.btn-main:hover {
  filter: brightness(1.06);
}
.btn-ghost {
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(10, 26, 47, 0.35);
}
.btn-ghost:hover {
  border-color: var(--lemon);
}
.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.btn-sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.95rem;
  border-radius: 12px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(110% 55% at 50% 108%, rgba(255, 170, 90, 0.5), rgba(255, 170, 90, 0) 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 40%, var(--plum) 72%, #5a3448 92%, var(--rust) 100%);
  padding: 56px 0 0;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}
.hero-text {
  padding-bottom: 72px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero h1 .soft {
  display: block;
  color: var(--lemon);
}
.hero .lead {
  margin-top: 22px;
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  color: #d7e2ec;
  max-width: 36em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.97rem;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sea);
}
/* The photo stands on the bottom edge of the sunset. */
.hero-photo {
  margin: 0;
  align-self: end;
  justify-self: center;
  width: min(440px, 100%);
}
.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: 28px 28px 0 0;
  border: 1px solid rgba(246, 212, 74, 0.35);
  border-bottom: 0;
  box-shadow: 0 -10px 60px rgba(255, 170, 90, 0.18);
}

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
}
.sec-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 26px;
}
.sec-kicker {
  color: var(--sea);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: block;
}
.about .wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
}
.about-text p {
  font-size: 1.1rem;
  color: #dbe5ee;
}
.about-side {
  display: grid;
  gap: 18px;
  align-content: start;
}
.stage {
  margin: 0;
}
.stage img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.stage figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}
.about-card {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px;
}
.about-card dl {
  margin: 0;
  display: grid;
  gap: 16px;
}
.about-card dt {
  color: var(--muted);
  font-size: 0.9rem;
}
.about-card dd {
  margin: 2px 0 0;
  font-weight: 700;
  font-size: 1.08rem;
}

.method {
  background: linear-gradient(180deg, var(--navy) 0%, #0c2038 100%);
  border-block: 1px solid var(--line);
}
.method .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.big-line {
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.where {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.where div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
}
.where b {
  display: block;
  font-size: 1.02rem;
}
.where span {
  color: var(--muted);
  font-size: 0.92rem;
}

.services ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.services li {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.services h3 {
  font-size: 1.45rem;
  font-weight: 700;
}
.services li p {
  margin: 0;
  color: #d3dee8;
}
.soon {
  display: inline-block;
  margin-inline-start: 8px;
  vertical-align: middle;
  font-family: "Heebo", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--sea);
  border-radius: 999px;
  padding: 1px 10px;
}

.app {
  background:
    radial-gradient(80% 60% at 15% 100%, rgba(255, 138, 110, 0.22), rgba(255, 138, 110, 0) 70%),
    linear-gradient(180deg, #0c2038 0%, var(--plum) 100%);
}
.app .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.app-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}
.app-list li {
  padding-inline-start: 22px;
  position: relative;
  color: #dbe5ee;
}
.app-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: var(--coral);
}
.app-shot {
  justify-self: center;
  width: min(330px, 100%);
  border-radius: 36px;
  padding: 11px;
  background: #05080d;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.app-shot img {
  border-radius: 27px;
}
.app-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 14px;
}

/* ---------- Contact ---------- */
.contact .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-ways {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
.contact-ways .btn {
  justify-content: flex-start;
}
.contact-meta {
  color: var(--muted);
  margin-top: 22px;
  font-size: 0.97rem;
}
.form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 28px;
}
.form h3 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-weight: 600;
  font-size: 0.97rem;
}
.field .opt {
  color: var(--muted);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: #0e2440;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 50px;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--lemon);
  outline: none;
}
.form .btn {
  width: 100%;
}
.form-note {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.hp {
  display: none;
}

/* ---------- Footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 0.93rem;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-inline-start: auto;
}
.site-foot a {
  color: var(--muted);
}

/* ---------- Simple pages (privacy, accessibility, thanks) ---------- */
.page {
  padding: 56px 0 80px;
}
.page .wrap {
  max-width: 760px;
}
.page h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}
.page h2 {
  font-size: 1.25rem;
  margin: 30px 0 10px;
}
.page .updated {
  color: var(--muted);
  margin-bottom: 28px;
}
.page li {
  margin-bottom: 6px;
}

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
  .head-actions {
    margin-inline-start: auto;
  }
  .hero {
    padding-top: 36px;
  }
  .hero .wrap,
  .about .wrap,
  .method .wrap,
  .app .wrap,
  .contact .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-text {
    padding-bottom: 0;
  }
  .hero-photo {
    width: min(400px, 100%);
  }
  section {
    padding: 64px 0;
  }
  .services li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .where {
    grid-template-columns: 1fr;
  }
  .hero-cta .btn {
    flex: 1 1 100%;
  }
}
@media (max-width: 480px) {
  .head-actions .btn-sm span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
