/* LeoCloud home page. Dark, system fonts, no framework. */

:root {
  --bg: #0b1220;
  --bg-raised: #111a2e;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e6edf6;
  --muted: #94a3b8;
  --blue: #0056b3;
  --blue-light: #5aa2f0;
  --green: #10b981;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(0, 86, 179, 0.28), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--blue-light); }

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

.mono { font-family: var(--mono); font-size: 0.92em; white-space: nowrap; }

/* ---- hero ---------------------------------------------------------- */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-text { grid-column: 1; grid-row: 1; }
.hero-visual { grid-column: 2; grid-row: 1; }

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 { margin: 0 0 1.25rem; font-weight: 700; line-height: 1.05; }

h1 .brand {
  display: block;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h1 .tagline {
  display: block;
  margin-top: 0.6rem;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--blue-light);
}

.lead { margin: 0 0 2rem; max-width: 36rem; color: #c3cedb; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

.button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}

.button.primary { background: var(--blue); color: #fff; }
.button.primary:hover { background: #0a68d4; }

.button.secondary { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.button.secondary:hover { border-color: var(--muted); }

.button:focus-visible, .copy:focus-visible, a:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

/* lion in front of the cloud, in a glass panel */

.hero-visual { position: relative; }

main { overflow-x: clip; }

.hero-backdrop {
  position: absolute;
  inset: -8% -8%;
  width: 116%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  filter: blur(40px) saturate(1.2);
  opacity: 0.55;
  z-index: 0;
}

.glass {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 26, 46, 0.72);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    background: rgba(17, 26, 46, 0.45);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
}

.glass .cloud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 72%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}

.glass .lion {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 56%;
  transform: translateX(-50%);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(11, 18, 32, 0.9),
    0 0 0 6px rgba(90, 162, 240, 0.55),
    0 20px 50px rgba(0, 0, 0, 0.6);
}

@media (prefers-reduced-motion: no-preference) {
  .glass { animation: float 7s ease-in-out infinite; }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
}

/* ---- agent section ------------------------------------------------- */

.agent { max-width: 860px; margin: 0 auto; padding: 0 1.5rem 3rem; }

.terminal {
  padding: 0.9rem 1rem 1rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 0.6rem;
  background: #070d18;
}

.terminal > p { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.9rem; }

.prompt { display: flex; align-items: flex-start; gap: 0.75rem; }

.prompt pre {
  flex: 1;
  margin: 0;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy {
  flex: none;
  padding: 0.35rem;
  line-height: 0;
  border-radius: 0.375rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.copy:hover { color: var(--green); border-color: rgba(16, 185, 129, 0.5); }

/* ---- footer -------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

footer p { margin: 0; }

footer a { color: var(--muted); }

/* ---- narrow screens ------------------------------------------------ */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
  .hero-visual { grid-column: 1; grid-row: 1; max-width: 26rem; width: 100%; margin: 0 auto; }
  .hero-text { grid-column: 1; grid-row: 2; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
}

@media (max-width: 600px) {
  .glass .lion { width: 60%; }
}
