/* Custom Works AI: opt-in funnel (join.customworks.ai)
   Premium dark + violet. Hand-built, no build step. Brand voice: calm, specific. */

:root {
  --bg: #0b0b12;
  --bg-2: #12121d;
  --bg-3: #181826;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ECECF2;
  --muted: #A6A4B8;
  --muted-2: #76748a;
  --violet: #8b6dff;
  --violet-bright: #a98cff;
  --violet-deep: #6a4ddb;
  --good: #3ad29a;
  --danger: #ff6b6b;
  --radius: 16px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient violet glow behind hero */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(139, 109, 255, 0.18), transparent 60%),
    radial-gradient(700px 500px at 85% 10%, rgba(106, 77, 219, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

h1, h2, h3 { font-family: "Instrument Serif", Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; }

a { color: var(--violet-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(140deg, var(--violet-bright), var(--violet-deep));
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Instrument Serif", serif; font-size: 19px; color: #fff;
  box-shadow: 0 4px 18px rgba(139, 109, 255, 0.4);
}
.nav-links { display: flex; gap: 22px; font-size: 14.5px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero + layout */
.hero { padding: 40px 0 26px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet-bright); font-weight: 600; margin-bottom: 18px;
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
}
.hero h1 { font-size: clamp(40px, 7vw, 68px); margin: 0 0 18px; max-width: 16ch; }
.hero .sub { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 54ch; margin: 0 0 28px; }

.proof { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; max-width: 60ch; }
.proof li { display: flex; gap: 12px; align-items: flex-start; color: #d6d4e4; font-size: 16px; }
.proof li svg { flex: 0 0 auto; margin-top: 4px; }

.layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; padding-bottom: 64px; }
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; gap: 32px; } .hero { padding-top: 18px; } }

/* Form card */
.card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.card h2 { font-size: 30px; margin: 0 0 6px; }
.card .card-sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: #cdcbdd; margin-bottom: 7px; }
.field label .req { color: var(--violet-bright); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; padding: 13px 14px; font-size: 16px; color: var(--text);
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line-strong); border-radius: 11px;
  font-family: inherit; transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 109, 255, 0.22); }

/* Consent block */
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(139, 109, 255, 0.06); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 14px 15px; margin: 20px 0 18px;
}
.consent input[type="checkbox"] {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--violet); cursor: pointer;
}
.consent label { font-size: 13px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent label a { color: var(--violet-bright); }

.btn {
  width: 100%; padding: 15px 20px; font-size: 16.5px; font-weight: 600; font-family: inherit;
  color: #fff; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--violet-bright), var(--violet-deep));
  box-shadow: 0 12px 30px -10px rgba(139, 109, 255, 0.6); transition: transform 0.15s var(--ease), filter 0.15s var(--ease);
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; filter: none; }

.form-note { font-size: 12.5px; color: var(--muted-2); margin-top: 14px; text-align: center; line-height: 1.5; }
.form-msg { font-size: 14px; margin-top: 14px; padding: 11px 14px; border-radius: 10px; display: none; }
.form-msg.err { display: block; background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.4); color: #ff9d9d; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 56px; position: relative; z-index: 1; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: flex-start; }
.foot-biz { font-size: 14px; color: var(--muted); line-height: 1.7; }
.foot-biz strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 4px; }
.foot-biz a { color: var(--muted); }
.foot-links { display: flex; gap: 22px; font-size: 14px; }
.foot-links a { color: var(--muted); }
.copyright { width: 100%; font-size: 12.5px; color: var(--muted-2); margin-top: 8px; }

/* Legal pages */
.legal { padding: 30px 0 80px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin: 18px 0 6px; }
.legal .updated { color: var(--muted-2); font-size: 14px; margin-bottom: 30px; }
.legal h2 { font-size: 23px; margin: 34px 0 10px; color: var(--text); }
.legal p { color: #cbc9db; margin: 0 0 14px; }
.legal ul { color: #cbc9db; padding-left: 20px; margin: 0 0 14px; }
.legal li { margin-bottom: 9px; }
.legal .back { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--muted); }
.legal .callout { background: var(--bg-2); border: 1px solid var(--line-strong); border-left: 3px solid var(--violet); border-radius: 10px; padding: 16px 18px; margin: 0 0 16px; }

/* Thank you */
.ty { min-height: 64vh; display: flex; align-items: center; }
.ty .wrap { max-width: 640px; text-align: center; }
.ty .check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 24px; background: rgba(58, 210, 154, 0.14); border: 1px solid rgba(58, 210, 154, 0.4); display: flex; align-items: center; justify-content: center; }
.ty h1 { font-size: clamp(34px, 6vw, 52px); margin: 0 0 14px; }
.ty p { color: var(--muted); font-size: 18px; margin: 0 auto 10px; max-width: 48ch; }
.ty .small { font-size: 14px; color: var(--muted-2); margin-top: 22px; }
