/* hiiv.biz — palette pulled from Huddl's globals.css + tailwind brand scale */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #14110f;
  --ink-soft: #5b5550;
  --line: #ece8e1;

  --brand-50: #fef9ec;
  --brand-100: #fcecc8;
  --brand-200: #f9d68b;
  --brand-300: #f5b94d;
  --brand-400: #f1a020;
  --brand-500: #e07f0d;
  --brand-600: #c25e07;
  --brand-700: #9b410a;
  --brand-800: #7e340f;
  --brand-900: #682b10;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 17, 15, .04), 0 8px 24px rgba(20, 17, 15, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

h1, h2 { line-height: 1.15; letter-spacing: -.02em; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--brand-600); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: .7rem 1.3rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .04s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-500); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-400); color: var(--brand-700); }
.btn-block { width: 100%; }
.btn-sm { padding: .55rem .8rem; font-size: 1.1rem; line-height: 1; }

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, var(--brand-50) 0%, transparent 55%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='%23f1a020' stroke-opacity='0.10' stroke-width='2'%3E%3Cpolygon points='28,2 54,17 54,48 28,63 2,48 2,17'/%3E%3Cpolygon points='28,52 54,67 54,98 28,113 2,98 2,67'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; padding: 6rem 0 5.5rem; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--brand-600); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 0 0 1.2rem; font-weight: 800; }
.lede { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 2rem; max-width: 600px; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }

/* --- Apps --- */
.apps { padding: 4.5rem 0; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand-200); box-shadow: 0 12px 32px rgba(20,17,15,.10); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.card-title { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.card-logo { width: 40px; height: 40px; border-radius: 10px; flex: none; box-shadow: 0 2px 6px rgba(20,17,15,.15); }
.card h2 { font-size: 1.5rem; margin: 0; }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--brand-700); background: var(--brand-100); padding: .25rem .55rem; border-radius: 999px; white-space: nowrap; }
.tagline { font-weight: 700; color: var(--brand-600); margin: 0 0 .8rem; font-size: 1.05rem; }
.desc { color: var(--ink-soft); margin: 0 0 1.4rem; font-size: .96rem; flex: 1; }
.card-cta { align-self: flex-start; }
.card-cta span { transition: margin-left .15s ease; }
.card-cta:hover span { margin-left: .25rem; }

/* --- Contact --- */
.contact { padding: 4.5rem 0 5.5rem; background: var(--brand-50); border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-copy h2 { font-size: 2rem; margin: 0 0 1rem; }
.contact-copy p { color: var(--ink-soft); font-size: 1.1rem; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-400);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.field textarea { resize: vertical; }
.captcha-row { display: flex; gap: .6rem; align-items: stretch; }
.captcha-row input { flex: 1; }
.help { font-size: .82rem; color: var(--ink-soft); margin: .45rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--line); padding: 2rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-brand { font-weight: 800; letter-spacing: -.03em; }
.footer-meta { color: var(--ink-soft); font-size: .88rem; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .apps-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
}
