/* ============================================================
   Creatiq — landing
   Palette: fundal #08080c, accente violet #7c5cff → cyan #22d3ee
   ============================================================ */

:root {
  --bg: #08080c;
  --panel: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ececf3;
  --muted: #9a9ab0;
  --dim: #6b6b80;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --ok: #4ade80;
  --grad: linear-gradient(100deg, var(--violet), var(--cyan));
  --radius: 14px;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", var(--font-ui);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(124, 92, 255, 0.35); }

/* --- glow ambiant ------------------------------------------ */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 380px at 18% -5%, rgba(124, 92, 255, 0.16), transparent 65%),
    radial-gradient(720px 420px at 85% 8%, rgba(34, 211, 238, 0.10), transparent 65%),
    radial-gradient(900px 600px at 50% 110%, rgba(124, 92, 255, 0.07), transparent 70%);
}

main, .site-header, footer { position: relative; z-index: 1; }

/* --- header ------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

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

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
}

/* --- hero ---------------------------------------------------- */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 84px 24px 40px;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
}

.status-pill .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.55);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(124, 92, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0); }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  max-width: 560px;
  margin: 22px auto 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px -10px rgba(124, 92, 255, 0.65);
}

.btn-primary:hover { box-shadow: 0 10px 38px -8px rgba(124, 92, 255, 0.8); }

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

.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* --- app preview --------------------------------------------- */
.app-preview {
  max-width: 940px;
  margin: 56px auto 40px;
  padding: 0 24px;
}

.window {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.window-title {
  margin-left: 12px;
  font-size: 0.78rem;
  color: var(--dim);
  letter-spacing: 0.01em;
}

.window-body {
  display: grid;
  grid-template-columns: 52px 1fr 190px;
  min-height: 330px;
}

.toolstrip {
  border-right: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tool {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.tool.active {
  background: rgba(124, 92, 255, 0.25);
  border-color: rgba(124, 92, 255, 0.55);
}

.canvas {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 26px 26px;
}

.art {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #17113d 0%, #3b2a7a 45%, #6f5bd0 75%, #22d3ee 130%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}

.sun {
  position: absolute;
  top: 16%;
  right: 16%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff8e7, #ffd98a);
  box-shadow: 0 0 44px 12px rgba(255, 217, 138, 0.45);
}

.hills {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: #0d0b1e;
  clip-path: polygon(0 62%, 18% 40%, 34% 58%, 52% 26%, 72% 52%, 88% 38%, 100% 56%, 100% 100%, 0 100%);
}

.art-text {
  position: absolute;
  left: 9%;
  bottom: 12%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.selection {
  position: absolute;
  width: 84px;
  height: 84px;
  right: 19%;
  top: 18%;
  border: 1.5px dashed rgba(34, 211, 238, 0.9);
  border-radius: 6px;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.handle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  border: 1.5px solid var(--cyan);
  border-radius: 2px;
}

.handle.tl { top: -4px; left: -4px; }
.handle.tr { top: -4px; right: -4px; }
.handle.bl { bottom: -4px; left: -4px; }
.handle.br { bottom: -4px; right: -4px; }

.layers {
  border-left: 1px solid var(--line);
  padding: 14px;
}

.layers-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin-bottom: 10px;
}

.layer {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
  border: 1px solid transparent;
}

.layer.active {
  color: var(--text);
  background: rgba(124, 92, 255, 0.14);
  border-color: rgba(124, 92, 255, 0.4);
}

.layer em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  margin-left: auto;
}

.eye {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.4px solid var(--dim);
  position: relative;
  flex: none;
}

.eye::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--dim);
}

/* --- prompt bar ---------------------------------------------- */
.prompt-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px;
  padding: 13px 16px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.07);
  box-shadow: 0 0 40px -14px rgba(124, 92, 255, 0.55);
}

.spark {
  color: var(--cyan);
  font-size: 1rem;
}

.prompt-text {
  flex: 1;
  font-size: 0.92rem;
  color: var(--text);
  min-height: 1.5em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--cyan);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

kbd {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
}

.prompt-status {
  padding: 10px 16px 16px;
  font-size: 0.78rem;
  color: var(--dim);
  text-align: center;
  transition: color 0.2s ease;
}

.prompt-status.ok { color: var(--ok); }

/* --- features ------------------------------------------------- */
.features, .roadmap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 76px 24px 20px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(124, 92, 255, 0.45);
  transform: translateY(-3px);
}

.icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--cyan);
  margin-bottom: 16px;
}

.icon svg { width: 20px; height: 20px; }

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* --- roadmap --------------------------------------------------- */
.timeline {
  list-style: none;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 0 0 26px;
}

.timeline .marker {
  position: absolute;
  left: -30px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
}

.timeline li.done .marker {
  border-color: var(--ok);
  background: radial-gradient(circle at center, var(--ok) 0 42%, var(--bg) 46%);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.5);
}

.timeline strong { font-size: 0.95rem; }

.timeline span:last-child {
  font-size: 0.86rem;
  color: var(--muted);
}

/* --- footer ----------------------------------------------------- */
footer {
  max-width: 1120px;
  margin: 30px auto 0;
  padding: 26px 24px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--dim);
}

/* --- reveal ------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- responsive --------------------------------------------------- */
@media (max-width: 760px) {
  .window-body { grid-template-columns: 44px 1fr; }
  .layers { display: none; }
  .hero { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .selection, .status-pill .pulse, .caret { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
