/* ===== Yur&Co — Coming Soon ===== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
  --navy: #163a5f;
  --navy-deep: #0f2a47;
  --navy-soft: #1f4a76;
  --orange: #f7941d;
  --orange-soft: #ffb454;
  --paper: #f6f8fb;
  --paper-2: #eef2f7;
  --ink: #15314e;
  --muted: #5d7793;
  --white: #ffffff;
  --line: rgba(22, 58, 95, 0.12);
  --shadow: 0 24px 60px -24px rgba(15, 42, 71, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Background atmosphere ---- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(247, 148, 29, 0.10), transparent 60%),
    radial-gradient(1000px 700px at 8% 110%, rgba(22, 58, 95, 0.10), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

/* subtle blueprint grid */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(22, 58, 95, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 58, 95, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 40%, transparent 100%);
}

/* ---- Layout ---- */
.shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4vw, 44px);
}

/* ---- Top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: clamp(40px, 6vw, 56px);
  width: auto;
  display: block;
}

.lang {
  display: flex;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 8px 20px -14px rgba(15, 42, 71, 0.4);
}

.lang button {
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang button:hover { color: var(--navy); }

.lang button.active {
  background: var(--navy);
  color: var(--white);
}

/* ---- Hero ---- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(28px, 6vw, 60px) 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(247, 148, 29, 0.12);
  color: #b9650a;
  border: 1px solid rgba(247, 148, 29, 0.3);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  margin-bottom: clamp(22px, 4vw, 32px);
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(247, 148, 29, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(247, 148, 29, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(247, 148, 29, 0); }
  100% { box-shadow: 0 0 0 0 rgba(247, 148, 29, 0); }
}

h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 6.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  max-width: 16ch;
}

h1 .accent { color: var(--orange); }

.lede {
  margin-top: clamp(18px, 3vw, 26px);
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}

.location {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy-soft);
}

.location svg { width: 17px; height: 17px; }

.cta-row {
  margin-top: clamp(30px, 5vw, 42px);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  border-radius: 14px;
  padding: 16px 30px;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: #2a1500;
  box-shadow: 0 16px 30px -12px rgba(247, 148, 29, 0.65);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--orange-soft);
  box-shadow: 0 22px 38px -14px rgba(247, 148, 29, 0.7);
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 58, 95, 0.28);
  box-shadow: var(--shadow);
}

/* ---- Footer ---- */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.foot a { color: var(--navy); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--orange); }

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.27s; }
.d4 { animation-delay: 0.38s; }
.d5 { animation-delay: 0.49s; }
.d6 { animation-delay: 0.60s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .badge .dot { animation: none; }
}

/* ===== Modal / Form ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 42, 71, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: 22px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 40px 90px -30px rgba(15, 42, 71, 0.6);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow: hidden;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 26px 28px 24px;
  position: relative;
}

.modal-head h2 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-head p {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.26); }

.modal-body { padding: 24px 28px 28px; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.16);
}

.field textarea { min-height: 96px; }

.field .err {
  display: none;
  color: #c8401d;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 6px;
}
.field.invalid input,
.field.invalid textarea { border-color: #e0664a; }
.field.invalid .err { display: block; }

.modal-body .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

/* honeypot — приховане для людей */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* spinner у кнопці */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(0, 0, 0, 0.18);
  border-top-color: #2a1500;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

#btn-send.loading .spinner { display: inline-block; }
#btn-send.loading { opacity: 0.85; cursor: wait; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* помилка під формою */
.form-error {
  background: #fef0ec;
  border: 1px solid #f3c2b5;
  color: #a13418;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.form-error a { color: #a13418; font-weight: 700; text-decoration: underline; }

.form-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.form-note a { color: var(--navy); font-weight: 600; text-decoration: none; }
.form-note a:hover { color: var(--orange); }

/* success state */
.success {
  text-align: center;
  padding: 12px 4px 8px;
}
.success .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(247, 148, 29, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success .check svg { width: 32px; height: 32px; color: var(--orange); }
.success h3 {
  font-family: 'Sora', sans-serif;
  font-size: 21px;
  color: var(--navy-deep);
  margin-bottom: 8px;
}
.success p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

@media (max-width: 560px) {
  .foot { justify-content: center; text-align: center; }
  .cta-row { width: 100%; }
  .btn { flex: 1; justify-content: center; }
}
