:root {
  --ink: #1b2038; --ink2: #232a4a; --coral: #ff7f50; --coral2: #ff9d68;
  --mint: #7fd8a8; --cream: #f6efe2; --sand: #f2d9a0; --lav: #8e8ba0;
  --font: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: var(--font); color: var(--cream); background: var(--ink); }
body { overflow-x: hidden; }
a { color: var(--mint); }
.h1-hero { font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.05; letter-spacing: -0.02em; }
.grad { background: linear-gradient(92deg, var(--mint), var(--sand) 45%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn {
  display: inline-block; background: linear-gradient(135deg, var(--coral), #ff5c3a);
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem;
  padding: 0.9rem 2.2rem; border-radius: 14px; border: 0; cursor: pointer;
  box-shadow: 0 8px 24px rgba(255,110,70,0.35); transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn.ghost { background: var(--ink2); border: 2px solid var(--mint); color: var(--mint); box-shadow: none; }
section { padding: 3.5rem clamp(1rem, 5vw, 4rem); max-width: 1200px; margin: 0 auto; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 1.2rem; color: var(--sand); }
/* hero */
#hero { position: relative; min-height: 92vh; display: grid; grid-template-columns: 1fr; align-content: center;
  background: radial-gradient(1200px 600px at 70% -10%, #2c3560, var(--ink)); padding-top: 4.5rem; }
#hero .hero-copy { text-align: center; padding: 0 0.5rem; width: 100%; }
#hero .tagline { color: var(--lav); font-size: clamp(1rem, 2.5vw, 1.35rem); margin: 0.8rem 0 2rem; }
#hero-preview { width: 100%; max-width: 860px; height: min(52vw, 430px); margin: 0 auto 2rem; display: block;
  border-radius: 18px; border: 1px solid #333c66; box-shadow: 0 20px 60px rgba(0,0,0,0.45); background: #000; }
nav.top { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem clamp(0.8rem, 4vw, 2.5rem); background: rgba(27,32,56,0.82); backdrop-filter: blur(8px); z-index: 50; }
nav.top .logo { font-weight: 800; font-size: 1.15rem; color: var(--cream); text-decoration: none; }
nav.top .logo em { color: var(--coral); font-style: normal; }
/* gallery */
#gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
#gallery figure { background: var(--ink2); border-radius: 14px; overflow: hidden; border: 1px solid #333c66; }
#gallery img { width: 100%; height: auto; display: block; }
#gallery figcaption { padding: 0.6rem 0.9rem; color: var(--lav); font-size: 0.9rem; }
/* features */
#features { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
#features li { background: var(--ink2); border-left: 4px solid var(--coral); border-radius: 10px; padding: 1rem 1.2rem; }
#features li strong { color: var(--mint); display: block; margin-bottom: 0.3rem; }
/* controls */
#controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.6rem;
  background: var(--ink2); border-radius: 14px; padding: 1.4rem; }
#controls div { color: var(--cream); }
#controls kbd { background: #0e1226; border: 1px solid #3a4470; border-bottom-width: 3px; border-radius: 6px;
  padding: 2px 7px; font-family: ui-monospace, monospace; font-size: 0.85em; color: var(--sand); }
footer { text-align: center; color: var(--lav); padding: 2rem 1rem 3rem; font-size: 0.9rem; }
@media (max-width: 420px) {
  #hero { min-height: 80vh; }
  #hero-preview { height: 62vw; }
}
