/* TrevAI Studio — public site styles.
   Palette matches the studio brand: near-black, cyan, purple. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/montserrat-600.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-700.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/montserrat-800.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/montserrat-900.woff2") format("woff2");
}

:root {
  --bg: #07070c;
  --bg2: #0d0d16;
  --panel: #12121d;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f4f8;
  --muted: #b7b7c9;
  --purple: #6d28d9;
  --purple2: #c084fc;
  --cyan: #67e8f9;
  --blue: #1d4ed8;
  --glow: 0 0 40px rgba(109, 40, 217, 0.4);
  --wrap: min(1120px, calc(100% - 32px));
  --nav-h: 68px;
  --radius: 20px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: Montserrat, Inter, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.8rem, 4.4vw, 2.9rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  color: var(--muted);
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

.addon-note a,
.text-link,
.tier .ask,
.story .ask,
.sister a,
.contact .direct a,
.legal a,
.site-footer .text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  left: 12px;
  top: 8px;
  z-index: 80;
  transform: translateY(-160%);
  background: var(--cyan);
  color: #041016;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.grad {
  color: var(--cyan);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background: linear-gradient(90deg, var(--cyan), var(--purple2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  max-width: 42rem;
  font-size: 1.05rem;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 36px;
}

.section-head h2 {
  margin-bottom: 14px;
}

section {
  padding: 72px 0;
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font: 600 1rem/1.2 Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: var(--glow);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-row.center,
.center-note {
  justify-content: center;
}

.center-note {
  margin-top: 18px;
  text-align: center;
}

.block-label {
  margin-top: 40px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 12, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  position: relative;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.nav.is-open .menu-icon {
  background: transparent;
}

.nav.is-open .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav.is-open .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-panel {
  display: none;
}

.nav.is-open .nav-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px 16px 18px;
  background: #0d0d16;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  min-height: calc(100svh - var(--nav-h));
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 12px 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  margin-top: 8px;
}

@media (min-width: 1041px) {
  .menu-btn {
    display: none;
  }

  .nav.is-open .nav-panel,
  .nav-panel {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 8px 26px;
    padding: 0;
    background: transparent;
    border: 0;
    min-height: 0;
    box-shadow: none;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 22px;
  }

  .nav-links a {
    padding: 8px 0;
  }

  .nav-cta {
    margin-top: 0;
    min-height: 42px;
    padding: 8px 16px;
    font-size: 0.92rem;
  }

  .logo img {
    height: 46px;
  }
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--nav-h));
  padding: 28px 0 48px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 30%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 12, 0.2) 0%, rgba(7, 7, 12, 0.72) 46%, rgba(7, 7, 12, 0.96) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero h1 {
  margin: 8px 0 16px;
}

.hero .sub {
  margin-bottom: 14px;
  color: #fff;
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.3;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.badges li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badges li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  flex: none;
}

@media (min-width: 800px) {
  .hero {
    align-items: center;
    padding: 88px 0 72px;
  }

  .hero-media img {
    object-position: 70% center;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(7, 7, 12, 0.94) 0%, rgba(7, 7, 12, 0.78) 42%, rgba(7, 7, 12, 0.28) 100%),
      linear-gradient(180deg, rgba(7, 7, 12, 0.2), transparent 24%, #07070c 98%);
  }
}

/* Cards and grids */
.grid {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple2));
  opacity: 0.85;
}

.num {
  margin-bottom: 8px;
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--cyan);
}

.card h3 {
  margin-bottom: 8px;
}

.card p + p,
.card .from {
  margin-top: 16px;
}

.from {
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

.addon-note {
  margin-top: 18px;
  color: var(--muted);
}

.addon-note a,
.text-link {
  color: var(--cyan);
}

.service-grid .card {
  display: flex;
  flex-direction: column;
}

.service-grid .card .from {
  margin-top: auto;
  padding-top: 18px;
}

@media (min-width: 860px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* How */
.how {
  background: var(--bg2);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step .n {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 800;
  color: var(--purple2);
}

.step h3 {
  margin-bottom: 6px;
}

/* Work */
.work-grid {
  display: grid;
  gap: 16px;
}

.work-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--panel);
}

.work-grid figure:last-child {
  aspect-ratio: 3 / 4;
}

.work-grid img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.work-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(7, 7, 12, 0.92));
  color: #fff;
  font-weight: 600;
}

.pull {
  margin: 32px auto 0;
  max-width: 46rem;
  color: #fff;
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  line-height: 1.35;
  text-align: center;
}

.pull span {
  color: var(--cyan);
}

@media (min-width: 800px) {
  .work-grid {
    grid-template-columns: 1.4fr 0.8fr;
    height: 540px;
  }

  .work-grid figure,
  .work-grid figure:last-child {
    aspect-ratio: auto;
    height: 100%;
  }
}

/* Pricing */
.pricing {
  background:
    radial-gradient(ellipse at top, rgba(109, 40, 217, 0.22), transparent 55%),
    var(--bg2);
}

.tier {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tier ul,
.story ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.tier li,
.story li {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.tier li::before,
.story li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--purple2);
  flex: none;
}

.amount {
  margin-top: auto;
  padding-top: 22px;
}

.amount .kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.amount .sum {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  color: var(--cyan);
  line-height: 1;
}

.amount .unit {
  color: var(--muted);
  font-size: 0.95rem;
}

.tier .ask,
.story .ask {
  display: inline-block;
  margin-top: 16px;
  color: var(--cyan);
  font-weight: 600;
  text-underline-offset: 3px;
}

.scope,
.fine {
  margin-top: 16px;
  font-size: 0.95rem;
}

.story {
  margin-top: 16px;
  display: grid;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(109, 40, 217, 0.14)),
    var(--panel);
}

@media (min-width: 800px) {
  .story {
    grid-template-columns: 1.4fr auto;
    align-items: end;
    gap: 32px;
  }

  .story .amount,
  .story .ask {
    text-align: right;
  }

  .story .amount {
    padding-top: 0;
  }

  .story .ask {
    display: block;
  }
}

.addon {
  margin-top: 16px;
  border-left: 3px solid var(--cyan);
}

.addon h3 {
  margin-bottom: 8px;
}

@media (min-width: 760px) {
  .cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Consent */
.consent .card {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.18), rgba(34, 211, 238, 0.06));
  border-color: rgba(168, 85, 247, 0.4);
}

.consent .card p {
  margin-top: 12px;
  max-width: 48rem;
}

/* FAQ */
details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  flex: none;
}

details[open] summary::after {
  content: "–";
}

details p {
  margin-top: 10px;
  max-width: 46rem;
}

/* About */
.about {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(34, 211, 238, 0.08), transparent 46%),
    var(--bg);
}

.about .story-copy p + p {
  margin-top: 14px;
}

.about .pull {
  margin: 26px 0 0;
  text-align: left;
  font-size: 1.25rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
}

.tag-label {
  margin-top: 22px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Contact */
.contact {
  text-align: center;
  background:
    radial-gradient(ellipse at bottom, rgba(34, 211, 238, 0.12), transparent 52%),
    var(--bg);
}

.contact .lead,
.contact .section-head {
  margin-inline: auto;
}

.contact .btn-row {
  justify-content: center;
}

.contact .direct {
  margin-top: 18px;
}

.contact .direct a {
  color: var(--cyan);
  font-weight: 600;
}

.compose {
  margin: 28px auto 0;
  max-width: 640px;
  text-align: left;
}

.compose h3 {
  margin-bottom: 6px;
}

.fields {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .fields-2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--bg2);
  color: var(--text);
  font: 1rem/1.4 Inter, system-ui, sans-serif;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-color: var(--cyan);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: #f87171;
}

.compose .btn {
  margin-top: 16px;
}

.form-status {
  min-height: 1.4em;
  margin-top: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.sister {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(34, 211, 238, 0.04);
}

.sister p {
  margin: 0;
  color: var(--text);
}

.sister a {
  color: var(--cyan);
  font-weight: 700;
}

.footer-grid {
  display: grid;
  gap: 22px;
  padding-top: 28px;
}

.site-footer .logo img {
  height: 36px;
}

.tag {
  margin-top: 10px;
  color: #fff;
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.legal {
  margin-top: 22px;
  font-size: 0.85rem;
}

@media (min-width: 800px) {
  section {
    padding: 104px 0;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-end;
  }
}

/* 404 */
.page-404 {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page-404 main {
  flex: 1;
  display: flex;
  align-items: center;
}

.missing h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card {
    transition: transform 0.2s ease, border-color 0.2s ease;
  }

  .card:hover {
    transform: translateY(-3px);
    border-color: rgba(168, 85, 247, 0.55);
  }

  .btn-primary:hover {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .grad {
    background: none;
    color: CanvasText;
  }

  .btn-primary,
  .card,
  .menu-btn {
    border: 1px solid ButtonText;
  }

  .amount .sum,
  .from,
  .eyebrow,
  .text-link,
  .addon-note a,
  .sister a,
  .contact .direct a,
  .tier .ask {
    color: LinkText;
  }
}
