/* amipicky — shared design system */
:root {
  --bg:        #0b0d12;
  --bg-2:      #11141c;
  --panel:     #151a24;
  --panel-2:   #1b2130;
  --border:    #262d3d;
  --text:      #e7ebf3;
  --muted:     #9aa4b8;
  --faint:     #6b7488;
  --ember:     #f0a94a;
  --ember-2:   #ff8a3d;
  --accent:    #6ea8fe;
  --radius:    16px;
  --maxw:      1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--ember-2); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .74rem;
  font-weight: 700; color: var(--ember); margin: 0 0 14px;
}
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,13,18,.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.12rem; color: var(--text); letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--ember), var(--ember-2));
  display: grid; place-items: center; color: #1a1205; font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 4px 18px rgba(240,169,74,.35);
}
.brand b { color: var(--ember); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .94rem; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px){ .nav-links { gap: 18px; } .nav-links .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 620px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(240,169,74,.18), transparent 70%),
              radial-gradient(40% 40% at 80% 10%, rgba(110,168,254,.12), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.7rem); line-height: 1.06; margin: 0 auto 20px;
  max-width: 14ch; font-weight: 850; letter-spacing: -.02em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--ember), var(--ember-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: var(--muted); max-width: 42ch; margin: 0 auto 34px; }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: linear-gradient(120deg, var(--ember), var(--ember-2)); color: #1a1205; box-shadow: 0 8px 28px rgba(240,169,74,.32); }
.btn-primary:hover { transform: translateY(-2px); color: #1a1205; box-shadow: 0 12px 34px rgba(240,169,74,.42); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); transform: translateY(-2px); }

/* ---------- Sections ---------- */
section { padding: 68px 0; }
.section-head { text-align: center; max-width: 46ch; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 12px; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- App cards ---------- */
.apps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.app-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-4px); border-color: #3a445c; box-shadow: 0 20px 44px rgba(0,0,0,.4); }
.app-card .top { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 60px; height: 60px; border-radius: 15px; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.app-card h3 { margin: 0; font-size: 1.28rem; letter-spacing: -.01em; }
.app-card .tag { color: var(--faint); font-size: .84rem; font-weight: 600; }
.app-card p { margin: 0; color: var(--muted); font-size: .97rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: .76rem; font-weight: 600; color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); padding: 4px 11px; border-radius: 999px; }
.app-card .actions { margin-top: auto; padding-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; }
.badge-soon { font-size: .74rem; font-weight: 700; color: var(--ember); border: 1px dashed rgba(240,169,74,.5); padding: 3px 10px; border-radius: 999px; }

/* placeholder app icon (gradient) */
.icon-forge { background: radial-gradient(120% 120% at 30% 20%, #ffb352, #b25a1a 60%, #5c2c0c); display:grid; place-items:center; font-size: 1.7rem; }

/* ---------- Values strip ---------- */
.values { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.value { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.value .ic { font-size: 1.5rem; margin-bottom: 10px; }
.value h4 { margin: 0 0 6px; font-size: 1.06rem; }
.value p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Footer / policies ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 56px 0 40px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 720px){ .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h5 { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; color: var(--faint); margin: 0 0 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); font-weight: 500; }
.footer-grid a:hover { color: var(--ember); }
.footer-brand p { color: var(--muted); max-width: 34ch; font-size: .93rem; margin: 14px 0 0; }
.footer-bottom { max-width: var(--maxw); margin: 40px auto 0; padding: 22px 24px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: .86rem; }

/* ---------- Legal / policy pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 90px; }
.legal .back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: 28px; }
.legal .back:hover { color: var(--ember); }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0 0 6px; letter-spacing: -.02em; }
.legal .updated { color: var(--faint); font-size: .9rem; margin: 0 0 8px; }
.legal .lead-note { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--ember); border-radius: 10px; padding: 16px 18px; color: var(--muted); font-size: .95rem; margin: 24px 0; }
.legal h2 { margin: 40px 0 12px; font-size: 1.28rem; letter-spacing: -.01em; }
.legal p, .legal li { color: #c4cbd9; }
.legal ul { padding-left: 22px; }
.legal li { margin: 8px 0; }
.legal code { background: var(--panel-2); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; font-size: .88em; color: var(--ember); }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .93rem; }
.legal th, .legal td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; }
