/* ============================================================
   MoonRock — one-page company site
   Dark space theme
   ============================================================ */

:root {
  --bg: #070b16;
  --bg-soft: #0b1124;
  --surface: #101735;
  --surface-2: #16203f;
  --text: #eef2ff;
  --muted: #a3adc7;
  --faint: #6b7594;
  --line: #232e4d;
  --accent: #f7b733;
  --accent-strong: #ffc95c;
  --accent-soft: rgba(247, 183, 51, 0.12);
  --violet: #8b7cf6;
  --ring: rgba(247, 183, 51, 0.35);
  --radius: 16px;
  --shadow-md: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 50% -160px, rgba(139, 124, 246, 0.16), transparent 70%),
    radial-gradient(700px 420px at 85% -60px, rgba(247, 183, 51, 0.1), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--accent); color: #1a1406; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 22, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(35, 46, 77, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.brand:hover { text-decoration: none; }

.brand-mark { width: 30px; height: 30px; display: block; }

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}

.nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 11px 22px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn:active { transform: translateY(1px); }

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.btn-primary {
  background: var(--accent);
  color: #1a1406;
  box-shadow: 0 8px 22px -8px rgba(247, 183, 51, 0.55);
}

.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: #33406b; }

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn .arr { transition: transform 0.15s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn[disabled] { opacity: 0.65; cursor: not-allowed; }

/* ---------- Shared ---------- */

.kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hl { color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(84px, 13vh, 150px) 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(247, 183, 51, 0.13), rgba(247, 183, 51, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(247, 183, 51, 0.28);
  padding: 8px 16px;
  border-radius: 999px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247, 183, 51, 0.45); }
  55% { box-shadow: 0 0 0 6px rgba(247, 183, 51, 0); }
}

.hero-title {
  margin: 30px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-sub {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 17.5px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* ---------- Trust row ---------- */

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 46px 0 0;
  padding: 0;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.trust svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex: none;
}

/* ---------- Services ---------- */

.services { padding: 84px 0; scroll-margin-top: 64px; }

.sec-head { max-width: 620px; }

.sec-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(247, 183, 51, 0.45);
  transform: translateY(-3px);
}

.card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 20px;
  background: var(--accent-soft);
  border-radius: 12px;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17.5px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Approach ---------- */

.approach {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(139, 124, 246, 0.06), transparent 55%);
}

.approach-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.approach-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.approach-copy p {
  margin: 16px 0 0;
  font-size: 16.5px;
  color: var(--muted);
}

.approach-copy p strong { color: var(--text); }
.approach-copy p em { font-style: normal; color: var(--accent-strong); font-weight: 600; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.step-num {
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1406;
  font-size: 14px;
  font-weight: 700;
}

.steps h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
}

.steps p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Team ---------- */

.team { padding: 84px 0; }

.team-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.team-mark {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.team-mark span {
  font-size: 34px;
  color: var(--accent);
  animation: twinkle 3.5s ease-in-out infinite;
}

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

.team-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  letter-spacing: -0.02em;
}

.team-copy p {
  margin: 14px 0 0;
  font-size: 16.5px;
  color: var(--muted);
  max-width: 560px;
}

/* ---------- Locations ---------- */

.locations {
  padding: 30px 0 84px;
}

.locations-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4.5vw, 44px);
}

.locations-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.locations-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

.cities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cities li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
}

.city-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Contact ---------- */

.contact { padding: 0 0 84px; scroll-margin-top: 64px; }

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 5vw, 56px);
}

.contact-info h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.contact-info > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.alt-contact {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}

.alt-contact a { font-weight: 600; }

/* ---------- Form ---------- */

.contact-form { display: grid; gap: 16px; }

.field { display: grid; gap: 7px; }

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.lbl-muted { color: var(--faint); font-weight: 500; }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field input:hover,
.field textarea:hover { border-color: #33406b; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #0d142c;
  box-shadow: 0 0 0 3px var(--ring);
}

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

.honey {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-note {
  margin: -4px 0 0;
  font-size: 13px;
  color: var(--faint);
  text-align: center;
}

.form-status { margin: 0; font-size: 14.5px; font-weight: 500; }

.form-status.ok { color: var(--accent-strong); }
.form-status.err { color: #ff8f80; }
.form-status.err a { color: inherit; font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--muted);
}

.footer-brand { margin: 0; font-weight: 600; color: var(--text); }
.footer-meta { margin: 0; }

.footer-inner a { font-weight: 500; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- Entrance animation ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero-inner > * {
  animation: fadeUp 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.12s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.19s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.26s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.33s; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .approach-inner { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .team-inner { grid-template-columns: 1fr; }
  .team-mark { display: none; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner > *,
  .reveal,
  .badge .dot,
  .team-mark span {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
