/* Trench Coat landing - Velvet Collar */
@import url("./tokens.css");

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 900px 480px at 50% -8%, rgba(107, 143, 122, 0.12), transparent 55%),
    radial-gradient(ellipse 700px 500px at 90% 20%, rgba(201, 162, 39, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 45%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

/* Fleet chrome: sticky X follow + hub (left of content) */
.fleet-chrome-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.25rem;
  background: rgba(10, 11, 20, 0.88);
  border-bottom: 1px solid rgba(107, 143, 122, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.fleet-chrome-bar .fleet-hub {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted, #8a96a3);
  text-decoration: none;
}
.fleet-chrome-bar .fleet-hub:hover,
.fleet-chrome-bar .fleet-hub:focus-visible {
  color: var(--text);
}
.x-follow {
  display: inline-flex;
  align-items: center;
  height: 28px;
  max-height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(107, 143, 122, 0.45);
  text-decoration: none;
  overflow: hidden;
  color: var(--text);
  background: rgba(107, 143, 122, 0.12);
}
.x-follow:hover,
.x-follow:focus-visible {
  border-color: rgba(107, 143, 122, 0.8);
  color: #9fbfb0;
}
.x-follow-mark {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg-deep, #0a0b14);
}
.x-follow-mark svg {
  width: 11px;
  height: 11px;
  max-width: 11px;
  max-height: 11px;
}
.x-follow-handle {
  display: none;
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
  padding-right: 0.5rem;
}
@media (min-width: 1536px) {
  .x-follow-handle { display: inline; }
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

#rain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
}

@media (prefers-reduced-motion: reduce) {
  #rain-canvas {
    display: none;
  }
}

a {
  color: var(--accent-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--gold-soft);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 1.5rem 0 2.5rem;
}

.kicker {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.mark {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(201, 162, 39, 0.08);
  margin: 0 auto 1.25rem;
  display: block;
  background: var(--bg-deep);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--text);
}

.hero .sub {
  margin: 0.75rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.lede {
  max-width: 40rem;
  margin: 1.25rem auto 0;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin: 1.75rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lift);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(201, 162, 39, 0.08);
}

.btn.primary {
  background: linear-gradient(160deg, rgba(201, 162, 39, 0.22), rgba(107, 143, 122, 0.14));
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--text);
}

.btn.primary:hover {
  background: linear-gradient(160deg, rgba(201, 162, 39, 0.32), rgba(107, 143, 122, 0.2));
}

/* Glass panels */
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
  margin: 1.25rem 0;
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.panel.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.panel.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .panel.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.panel h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.panel .eyebrow {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.panel p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
}

.panel p:last-child {
  margin-bottom: 0;
}

.shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-deep);
}

.caption {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.caption.warn {
  color: #c9a0a6;
}

/* How it works steps */
.steps {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
}

.steps strong {
  color: var(--text);
}

.obs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

.obs th,
.obs td {
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

.obs th {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.obs td {
  color: var(--text-muted);
}

.obs td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* Profiles */
.profiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (max-width: 720px) {
  .profiles {
    grid-template-columns: 1fr;
  }
}

.profile {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.05rem;
  background: linear-gradient(165deg, rgba(28, 30, 44, 0.95), rgba(18, 20, 31, 0.9));
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.profile:hover {
  transform: translateY(-3px);
  border-color: rgba(107, 143, 122, 0.4);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.profile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.profile p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Code */
pre {
  margin: 0;
  overflow-x: auto;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(8, 9, 16, 0.92);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--accent-soft);
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--accent-soft);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
}

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

.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0.35rem 0 0.55rem;
  color: var(--text-muted);
}

/* Links list */
.links {
  display: grid;
  gap: 0.45rem;
}

.links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.links a:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}

.links strong {
  font-weight: 600;
}

.links span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* Footer */
.site-footer {
  margin-top: 2.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer .row {
  margin-top: 0.5rem;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--gold-soft);
}

/* Legal strip */
.legal-strip {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(196, 92, 106, 0.25);
  background: rgba(196, 92, 106, 0.06);
  color: #d4b0b6;
  font-size: 0.9rem;
  text-align: center;
}
