/* ==========================================================================
   Qarma Software Services — holding page
   Same restrained palette, type system and ambient-motion hero treatment
   as qarmatechnology.com / qarmatechnology.us, scaled down to a single
   full-viewport splash section.
   ========================================================================== */

:root {
  --ink: #14171d;
  --ink-soft: #4a4f59;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --tint: #f2f0ea;
  --line: #e3e0d8;
  --accent: #0c5a76;
  --max-width: 1180px;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16.5px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.center { text-align: center; }

h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 34px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.h1-accent { color: var(--accent); }
.h1-sub {
  display: inline-block;
  font-size: 0.78em;
  color: var(--ink);
  margin: 4px 0;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.logo-mark {
  height: 68px;
  width: auto;
  display: block;
  margin: 0 auto 30px;
}

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

.hero {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding: 56px 0;
}

.hero--ambient { position: relative; overflow: hidden; }
.hero--ambient .container { position: relative; z-index: 1; }

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

.footer-bar {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 20px 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn::after {
  content: '\2192';
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover::after { transform: translateX(4px); }
.btn--accent { border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .btn::after { transition: none; }
}

/* ---------- Ambient animated background ---------- */
/* Same original CSS-only drifting-blob technique used on the hero of
   qarmatechnology.com / qarmatechnology.us — identical timings and
   light-section colour treatment, ported over unchanged. */

.ambient-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  will-change: transform;
}

.ambient-blob--1 {
  width: 60vw;
  height: 60vw;
  max-width: 640px;
  max-height: 640px;
  left: -10%;
  top: -20%;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%);
  opacity: 0.6;
  animation: ambientDrift1 7s ease-in-out infinite alternate;
}

.ambient-blob--2 {
  width: 50vw;
  height: 50vw;
  max-width: 520px;
  max-height: 520px;
  right: -12%;
  top: 10%;
  background: radial-gradient(circle at 60% 40%, #1c86ab, transparent 70%);
  opacity: 0.48;
  animation: ambientDrift2 9s ease-in-out infinite alternate;
}

.ambient-blob--3 {
  width: 45vw;
  height: 45vw;
  max-width: 460px;
  max-height: 460px;
  left: 15%;
  bottom: -25%;
  background: radial-gradient(circle at 50% 50%, var(--paper), transparent 70%);
  opacity: 0.14;
  animation: ambientDrift3 8s ease-in-out infinite alternate;
}

.ambient-blob--4 {
  width: 35vw;
  height: 35vw;
  max-width: 380px;
  max-height: 380px;
  right: 5%;
  bottom: -15%;
  background: radial-gradient(circle at 40% 60%, var(--accent), transparent 70%);
  opacity: 0.38;
  animation: ambientDrift4 6s ease-in-out infinite alternate;
}

@keyframes ambientDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(14%, 16%) scale(1.22); }
}
@keyframes ambientDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-16%, 12%) scale(0.82); }
}
@keyframes ambientDrift3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(12%, -14%) scale(1.18); }
}
@keyframes ambientDrift4 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-14%, -16%) scale(1.22); }
}

.hero--ambient .ambient-blob { filter: blur(90px); }
.hero--ambient .ambient-blob--1 {
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%);
  opacity: 0.4;
}
.hero--ambient .ambient-blob--2 {
  background: radial-gradient(circle at 60% 40%, #1c86ab, transparent 70%);
  opacity: 0.34;
}
.hero--ambient .ambient-blob--3 {
  background: radial-gradient(circle at 50% 50%, var(--line), transparent 70%);
  opacity: 0.75;
}
.hero--ambient .ambient-blob--4 {
  background: radial-gradient(circle at 40% 60%, var(--accent), transparent 70%);
  opacity: 0.34;
}

@media (prefers-reduced-motion: reduce) {
  .ambient-blob { animation: none; }
}

@media (max-width: 680px) {
  .ambient-blob { filter: blur(50px); }
  .hero--ambient .ambient-blob { filter: blur(60px); }
}
