/* WallApp — wallapp.tech
   Aesthetic mirrors the app icon: indigo→violet→magenta gradients,
   sunset / ocean / night wallpaper cards, glassy dark surfaces. */

:root {
  --bg: #0b0a1a;
  --bg-2: #120f2e;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f2ff;
  --muted: #b6b2d6;
  --faint: #837fa8;
  --indigo: #3f49d1;
  --violet: #8b5cf6;
  --magenta: #ec4899;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, #3f49d1 0%, #8b5cf6 45%, #ec4899 100%);
  --grad-soft: linear-gradient(120deg, #6366f1, #a855f7, #ec4899);
  --radius: 20px;
  --maxw: 1120px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* Ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(50% 45% at 90% 10%, rgba(236, 72, 153, 0.22), transparent 60%),
    radial-gradient(60% 60% at 70% 100%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%, var(--bg));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 10, 26, 0.55);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em; font-size: 19px; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.45)); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(139, 92, 246, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(236, 72, 153, 0.65); }
.btn-ghost { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 20px;
}
.grad-text {
  background: var(--grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note { font-size: 13px; color: var(--faint); margin-top: 16px; }

/* Hero visual — fanned wallpaper cards */
.hero-visual { position: relative; height: 460px; display: flex; align-items: center; justify-content: center; }
.phone {
  position: relative;
  width: 250px;
  height: 420px;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2550, #15122e);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}
.wp {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: cycle 15s infinite;
}
.wp-1 { background: linear-gradient(180deg, #8b5cf6, #c13bd6 34%, #f0568f 58%, #7c4be0 80%, #4338ca); animation-delay: 0s; }
.wp-2 { background: linear-gradient(180deg, #3b82f6, #22d3ee 55%, #1e40af); animation-delay: 5s; }
.wp-3 { background: linear-gradient(180deg, #1e1b4b, #3b2c7a 65%, #ec4899); animation-delay: 10s; }
.wp .sun { position: absolute; top: 60px; left: 44px; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle, #fff7ed, #fbcfe8); }
.wp .hill { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; }
@keyframes cycle {
  0%, 26% { opacity: 1; }
  33%, 93% { opacity: 0; }
  100% { opacity: 0; }
}
.card-float {
  position: absolute;
  width: 118px;
  height: 190px;
  border-radius: 22px;
  border: 3px solid rgba(255,255,255,0.85);
  box-shadow: 0 24px 50px -14px rgba(0,0,0,0.7);
}
.cf-1 { background: linear-gradient(180deg, #8b5cf6, #f0568f 60%, #4338ca); left: 6%; top: 40px; transform: rotate(-12deg); z-index: 2; animation: bob 7s ease-in-out infinite; }
.cf-2 { background: linear-gradient(180deg, #1e1b4b, #ec4899); right: 4%; bottom: 30px; transform: rotate(11deg); z-index: 4; animation: bob 8s ease-in-out infinite 1s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(var(--r, -12deg)); } 50% { transform: translateY(-16px) rotate(var(--r, -12deg)); } }
.cf-1 { --r: -12deg; }
.cf-2 { --r: 11deg; }

/* ---------- Section scaffolding ---------- */
section.block { padding: 68px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; font-size: 22px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(236,72,153,0.2));
  border: 1px solid var(--border);
}
.feature h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Pinterest highlight ---------- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(236,72,153,0.08));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 44px;
}
.spotlight h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.03em; margin: 0 0 16px; }
.spotlight p { color: var(--muted); margin: 0 0 16px; }
.pill-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.pill-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15px; }
.pill-list .check { color: var(--cyan); font-weight: 800; flex: none; }
.board {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 8px;
  padding: 8px;
  background: rgba(0,0,0,0.25);
}
.board span { border-radius: 12px; }
.board span:nth-child(1){background:linear-gradient(160deg,#8b5cf6,#ec4899);}
.board span:nth-child(2){background:linear-gradient(160deg,#22d3ee,#3b82f6);}
.board span:nth-child(3){background:linear-gradient(160deg,#1e1b4b,#7c3aed);}
.board span:nth-child(4){background:linear-gradient(160deg,#f0568f,#7c4be0);}
.board span:nth-child(5){background:linear-gradient(160deg,#3b82f6,#22d3ee);}
.board span:nth-child(6){background:linear-gradient(160deg,#4338ca,#c13bd6);}
.board span:nth-child(7){background:linear-gradient(160deg,#ec4899,#8b5cf6);}
.board span:nth-child(8){background:linear-gradient(160deg,#1e40af,#22d3ee);}
.board span:nth-child(9){background:linear-gradient(160deg,#7c3aed,#ec4899);}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.step .num {
  font-size: 14px; font-weight: 800; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Download CTA ---------- */
.download {
  text-align: center;
  background: linear-gradient(135deg, rgba(63,73,209,0.22), rgba(236,72,153,0.16));
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 56px 32px;
}
.download h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin: 0 0 14px; }
.download p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 48px 0 40px; margin-top: 40px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-brand { max-width: 320px; }
.foot-brand p { color: var(--faint); font-size: 14px; margin: 12px 0 0; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 10px; transition: color 0.2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 13px; }

/* ---------- Legal / privacy page ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 0 20px; }
.legal .back { color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; margin-bottom: 28px; }
.legal .back:hover { color: var(--text); }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 8px; }
.legal .updated { color: var(--faint); font-size: 14px; margin-bottom: 40px; }
.legal h2 {
  font-size: 21px; margin: 40px 0 12px; letter-spacing: -0.02em;
  padding-top: 8px;
}
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal a.inline { color: #c4b5fd; text-decoration: underline; text-underline-offset: 3px; }
.legal a.inline:hover { color: #ddd6fe; }
.legal .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 26px 20px;
  margin-top: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; margin-top: 20px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .spotlight { grid-template-columns: 1fr; padding: 32px; }
  .spotlight .board { order: -1; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .features, .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .foot-cols { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .wp, .card-float { animation: none; }
  .wp-1 { opacity: 1; }
}
