/* Termica homepage — palette sampled from assets/app_icon.png */
:root {
  --bg:        #03070f; /* near-black navy, icon background */
  --bg-2:      #060d1a;
  --surface:   #0a1322;
  --text:      #e8f6fb;
  --muted:     #7d93a6;
  --cyan:      #1ef2f8; /* icon neon stroke */
  --cyan-soft: #00eaf4;
  --blue:      #3f7bff; /* icon glow shading to blue */
  --ring:      rgba(30, 242, 248, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* Soft radial neon glow behind the hero, echoing the icon's bloom */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 50% 28%, rgba(31, 123, 255, 0.16), transparent 60%),
    radial-gradient(42rem 32rem at 50% 22%, rgba(30, 242, 248, 0.14), transparent 60%);
}

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(3rem, 9vh, 6rem) 1.5rem 2rem;
  max-width: 44rem;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.logo {
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 0 30px rgba(30, 242, 248, 0.35))
          drop-shadow(0 0 60px rgba(31, 123, 255, 0.25));
}

.wordmark {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1.25rem 0 0.5rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--cyan) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 1.55;
  margin: 0.5rem auto 0;
  max-width: 34rem;
}

.muted { color: var(--muted); }

/* CTA block below the hero screenshot */
.cta {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 1.75rem;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  box-shadow: 0 0 0 1px rgba(30, 242, 248, 0.4), 0 8px 30px rgba(31, 123, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(30, 242, 248, 0.7), 0 10px 36px rgba(31, 123, 255, 0.4);
}

.meta {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

/* ---- Hero screenshot --------------------------------------------------- */
.shot {
  position: relative;
  z-index: 1;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
  width: 100%;
  max-width: 60rem;
  text-align: center;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
}

.shot picture,
.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot img {
  border-radius: 0.7rem;
  border: 1px solid rgba(30, 242, 248, 0.18);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 70px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(31, 123, 255, 0.16);
  background: var(--surface);
}

/* ---- Footer ------------------------------------------------------------ */
.footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 9vh, 6rem);
  padding: 2rem 1.5rem;
  font-size: 0.82rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(30, 242, 248, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .shot { animation: none; }
  .prompt .typed::after { animation: none; }
}
