/* Blocknova — site design system, mirroring the game's Midnight theme */

:root {
  --bg-deep: #070919;
  --bg-mid: #12163a;
  --ink: #ffffff;
  --ink-dim: rgba(255, 255, 255, 0.62);
  --panel: rgba(255, 255, 255, 0.055);
  --panel-stroke: rgba(255, 255, 255, 0.10);
  --accent-a: #8a55f5;
  --accent-b: #4e7bff;
  --gold: #ffd34e;
  --teal: #0fb4a2;
  --radius-lg: 28px;
  --radius-md: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg-deep);
  background-image:
    radial-gradient(900px 600px at 15% -5%, rgba(138, 85, 245, 0.32), transparent 60%),
    radial-gradient(800px 640px at 95% 15%, rgba(78, 123, 255, 0.25), transparent 60%),
    radial-gradient(700px 700px at 50% 110%, rgba(15, 180, 162, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 60%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-weight: 800; font-size: 19px; letter-spacing: 0.06em; }
.lang { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--panel-stroke); border-radius: 999px; padding: 4px; }
.lang a {
  text-decoration: none; color: var(--ink-dim); font-weight: 700; font-size: 13px;
  padding: 6px 14px; border-radius: 999px; transition: 0.2s;
}
.lang a.on { background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); color: #fff; }
.lang a:hover:not(.on) { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 44px 0 60px; }

.blocks {
  display: grid; grid-template-columns: repeat(2, 84px); gap: 12px;
  justify-content: center; margin-bottom: 34px;
}
.block {
  width: 84px; height: 84px; border-radius: 22px; position: relative;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  animation: bob 3.2s ease-in-out infinite;
}
.block::after {
  content: ""; position: absolute; inset: 7px 11px auto 11px; height: 38%;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
}
.block.purple { background: linear-gradient(135deg, #c5a8ff, #8a55f5); box-shadow: 0 14px 34px rgba(138, 85, 245, 0.45); }
.block.teal   { background: linear-gradient(135deg, #53e8d4, #0fb4a2); box-shadow: 0 14px 34px rgba(15, 180, 162, 0.4); animation-delay: 0.4s; }
.block.yellow { background: linear-gradient(135deg, #ffe066, #f0b400); box-shadow: 0 14px 34px rgba(240, 180, 0, 0.4); animation-delay: 0.8s; }
.block.orange { background: linear-gradient(135deg, #ffb25e, #f07c18); box-shadow: 0 14px 34px rgba(240, 124, 24, 0.4); animation-delay: 1.2s; }

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

h1 {
  font-size: clamp(52px, 9vw, 96px); font-weight: 900; letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(78, 123, 255, 0.35));
}
.tagline { margin-top: 14px; font-size: clamp(17px, 2.6vw, 22px); color: var(--ink-dim); font-weight: 600; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 34px;
  padding: 16px 30px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #fff; font-weight: 800; font-size: 17px; letter-spacing: 0.02em;
  box-shadow: 0 16px 40px rgba(110, 100, 250, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 20px 48px rgba(110, 100, 250, 0.55); }
.store-btn .apple { font-size: 22px; line-height: 1; }
.store-note { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-dim); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
h2 {
  text-align: center; font-size: clamp(28px, 4.4vw, 40px); font-weight: 900;
  margin-bottom: 10px;
}
.section-sub { text-align: center; color: var(--ink-dim); font-weight: 600; margin-bottom: 40px; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--panel-stroke);
  border-radius: var(--radius-lg); padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.22); }
.card .emoji { font-size: 34px; display: block; margin-bottom: 14px; }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--ink-dim); font-size: 15px; line-height: 1.55; font-weight: 500; }

/* Daily band */
.daily-band {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--accent-a), var(--accent-b));
  border-radius: var(--radius-lg); padding: 34px 38px;
  box-shadow: 0 24px 60px rgba(110, 100, 250, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  position: relative; overflow: hidden;
}
.daily-band::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22); filter: blur(70px); top: -120px; left: -80px;
}
.cal {
  width: 84px; height: 84px; background: #fff; border-radius: 20px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); position: relative; z-index: 1;
}
.cal small { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--accent-a); }
.cal strong { font-size: 34px; font-weight: 900; color: #23244a; line-height: 1.05; }
.daily-copy { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.daily-copy h3 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.daily-copy p { color: rgba(255, 255, 255, 0.92); font-weight: 600; line-height: 1.55; }
.streak {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  background: rgba(255, 255, 255, 0.22); padding: 8px 16px; border-radius: 999px;
  font-weight: 800; font-size: 15px;
}

/* ---------- Phones ---------- */
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; justify-items: center; }
.phone {
  width: 100%; max-width: 270px; border-radius: 38px; padding: 10px;
  background: #05060f; border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s ease;
}
.phone:hover { transform: translateY(-8px) rotate(-0.5deg); }
.phone img { width: 100%; display: block; border-radius: 30px; }
.phone-caption { text-align: center; margin-top: 14px; color: var(--ink-dim); font-weight: 700; font-size: 14px; }

/* Badges strip */
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--panel-stroke);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  color: var(--ink-dim);
}

/* ---------- Prose (privacy) ---------- */
.prose {
  background: var(--panel); border: 1px solid var(--panel-stroke);
  border-radius: var(--radius-lg); padding: clamp(26px, 5vw, 48px);
  max-width: 760px; margin: 0 auto;
}
.prose h1 { font-size: clamp(30px, 5vw, 42px); text-align: left; margin-bottom: 6px; }
.prose .date { color: var(--ink-dim); font-size: 14px; font-weight: 600; margin-bottom: 28px; }
.prose h2 { text-align: left; font-size: 21px; margin: 30px 0 10px; }
.prose p, .prose li { color: rgba(255, 255, 255, 0.82); line-height: 1.7; font-weight: 500; font-size: 16px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose a { color: #9db4ff; }
.prose .hl { color: var(--gold); font-weight: 700; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--panel-stroke); margin-top: 40px;
  padding: 34px 0 44px; text-align: center; color: var(--ink-dim);
  font-size: 14px; font-weight: 600;
}
footer .links { display: flex; gap: 22px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
footer a { color: var(--ink-dim); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .block { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .daily-band { padding: 26px; }
  section { padding: 40px 0; }
}
