/* =============================================================================
   Ethernodes — Non-Custodial Inquiry (standalone page)
   Self-contained styles, reusing landing tokens.
   ============================================================================= */

:root {
  --eth-black:        #000000;
  --eth-ink-900:      #1E1F1E;
  --eth-ink-850:      #1A1B1A;
  --eth-ink-800:      #232423;
  --eth-ink-700:      #282A28;
  --eth-ink-600:      #2D2F2D;
  --eth-ink-500:      #3A3D3A;
  --eth-ink-400:      #4B4F4B;
  --eth-ink-300:      #6E736E;
  --eth-ink-200:      #A0A6A0;
  --eth-ink-100:      #C8CCC8;
  --eth-ink-050:      #E7EAE7;
  --eth-white:        #FFFFFF;

  --eth-green-600:    #2E8A3A;
  --eth-green-500:    #4FB656;
  --eth-green-400:    #56B358;
  --eth-green-300:    #6EE074;
  --eth-green-200:    #93FF96;
  --eth-green-100:    #BFFFC1;
  --eth-green-050:    rgba(147, 255, 150, 0.08);

  --eth-fg:           var(--eth-ink-050);
  --eth-fg-muted:     var(--eth-ink-200);
  --eth-fg-subtle:    var(--eth-ink-300);
  --eth-fg-inverse:   #0B1A0C;
  --eth-fg-accent:    var(--eth-green-200);

  --eth-bg:           var(--eth-ink-900);
  --eth-bg-alt:       var(--eth-ink-800);
  --eth-surface:      var(--eth-ink-700);
  --eth-surface-alt:  var(--eth-ink-600);

  --eth-border:       var(--eth-ink-500);
  --eth-border-soft:  rgba(160,166,160,0.12);
  --eth-border-strong:var(--eth-ink-400);
  --eth-border-accent:var(--eth-green-200);

  --eth-danger: #E46B6B;
  --eth-warn:   #E8B24A;

  --eth-font-sans: "Poppins","Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --eth-font-mono: "PP Fraktion Mono",ui-monospace,"JetBrains Mono",Menlo,Consolas,monospace;

  --eth-r-sm: 10px;
  --eth-r-md: 14px;
  --eth-r-lg: 18px;
  --eth-r-xl: 24px;
  --eth-r-pill: 999px;

  --eth-shadow-1: 0 1px 0 rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.30);
  --eth-shadow-2: 0 4px 16px -4px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.30);
  --eth-shadow-3: 0 18px 48px -12px rgba(0,0,0,0.65), 0 8px 18px rgba(0,0,0,0.4);
  --eth-glow-cta: 0 0 0 1px var(--eth-green-200), 0 0 26px -4px rgba(147,255,150,0.45);

  --eth-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --eth-dur:  200ms;

  --eth-container: 1180px;
  --eth-gutter: 32px;
}

/* Fonts */
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Fraktion Mono";
  src: url("fonts/PPFraktionMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Fraktion Mono";
  src: url("fonts/PPFraktionMono-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--eth-bg);
  color: var(--eth-fg);
  font-family: var(--eth-font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--eth-dur) var(--eth-ease); }
a:hover { color: var(--eth-green-200); }
button { font-family: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--eth-green-200); color: var(--eth-fg-inverse); }
:focus-visible {
  outline: 2px solid var(--eth-green-200);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ─── Layout shell ────────────────────────────────────────────────── */
.eth-container {
  max-width: var(--eth-container);
  margin: 0 auto;
  padding: 0 var(--eth-gutter);
}

.mono { font-family: var(--eth-font-mono); font-feature-settings: "ss01","zero"; }

/* ─── TopNav ──────────────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 50;
  height: 84px;
  display: flex; align-items: center;
  background: rgba(30,31,30,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--eth-dur) var(--eth-ease), background var(--eth-dur) var(--eth-ease);
}
.topnav.is-scrolled { border-bottom-color: var(--eth-border); background: rgba(30,31,30,0.86); }
.topnav__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  max-width: var(--eth-container);
  margin: 0 auto; padding: 0 var(--eth-gutter);
}
.topnav__brand { display: flex; align-items: center; gap: 12px; }
.topnav__wordmark { height: 52px; display: block; }
.topnav__back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--eth-border-soft);
  font-size: 13px; color: var(--eth-fg);
  background: rgba(255,255,255,0.02);
}
.topnav__back:hover { border-color: rgba(147,255,150,0.30); color: var(--eth-green-200); }

/* ─── Page header ────────────────────────────────────────────────── */
.inq-hero {
  position: relative;
  padding: 64px 0 24px;
  overflow: hidden;
}
.inq-hero__glow {
  position: absolute;
  top: -180px; left: 50%;
  width: 980px; height: 580px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(147,255,150,0.10), transparent 62%);
  pointer-events: none; z-index: 0;
}
.inq-hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  gap: 20px;
  max-width: 760px;
}
.eth-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--eth-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eth-green-200);
  font-weight: 400;
}
.eth-eyebrow::before {
  content: "";
  width: 2px; height: 12px;
  background: var(--eth-green-200);
  display: inline-block;
}
.inq-hero h1 {
  font-size: clamp(36px, 4.8vw, 60px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 600;
  max-width: 760px;
}
.inq-hero h1 em {
  color: var(--eth-green-200);
  font-style: normal;
}
.inq-hero__lede {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--eth-fg-muted);
  max-width: 620px;
  line-height: 1.65;
}

/* ─── Main grid ──────────────────────────────────────────────────── */
.inq-layout {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0 96px;
  align-items: start;
}

/* Left intro card */
.inq-aside {
  position: sticky;
  top: 108px;
  display: flex; flex-direction: column; gap: 16px;
}
.aside-card {
  padding: 26px;
  background: var(--eth-surface);
  border: 1px solid var(--eth-border-soft);
  border-radius: var(--eth-r-xl);
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--eth-shadow-1);
}
.aside-card__head {
  display: flex; align-items: center; gap: 10px;
}
.aside-card__head h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.005em; }
.aside-card__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(147,255,150,0.10);
  color: var(--eth-green-200);
  font-family: var(--eth-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(147,255,150,0.28);
}
.aside-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--eth-fg-muted);
}
.aside-list {
  display: flex; flex-direction: column; gap: 6px;
  margin: 0; padding: 0; list-style: none;
}
.aside-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--eth-border-soft);
  font-size: 13.5px;
  color: var(--eth-fg);
}
.aside-list li:first-child { border-top: 0; }
.aside-list .tick {
  flex: none;
  width: 14px; height: 14px;
  margin-top: 4px;
  color: var(--eth-green-200);
}
.aside-list b { font-weight: 500; display: block; }
.aside-list span { color: var(--eth-fg-muted); font-size: 12.5px; line-height: 1.5; display: block; margin-top: 2px; }

.aside-meta {
  padding: 16px 18px;
  border: 1px solid var(--eth-border-soft);
  border-radius: var(--eth-r-md);
  background: var(--eth-bg-alt);
  display: flex; flex-direction: column; gap: 10px;
}
.aside-meta__row { display: flex; justify-content: space-between; font-size: 12.5px; }
.aside-meta__row span:first-child {
  font-family: var(--eth-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eth-fg-subtle);
}
.aside-meta__row span:last-child {
  color: var(--eth-fg); font-weight: 500;
}

/* ─── Form card ──────────────────────────────────────────────────── */
.inq-form {
  background: var(--eth-surface);
  border: 1px solid var(--eth-border-soft);
  border-radius: var(--eth-r-xl);
  padding: 36px 40px;
  box-shadow: var(--eth-shadow-2);
  display: flex; flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.inq-form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147,255,150,0.35), transparent);
}

.inq-form__head { display: flex; flex-direction: column; gap: 6px; }
.inq-form__head h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
}
.inq-form__head p { font-size: 13.5px; color: var(--eth-fg-muted); }

.inq-section {
  display: flex; flex-direction: column;
  gap: 18px;
}
.inq-section__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--eth-border-soft);
}
.inq-section__title {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--eth-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eth-fg-muted);
}
.inq-section__title .num {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(147,255,150,0.10);
  color: var(--eth-green-200);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--eth-font-mono);
  font-size: 10.5px; font-weight: 700;
  border: 1px solid rgba(147,255,150,0.25);
}

.inq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.inq-grid--1 { grid-template-columns: 1fr; }

.inq-field { display: flex; flex-direction: column; gap: 8px; }
.inq-field.col-span-2 { grid-column: span 2; }
.inq-field__label {
  font-size: 13px;
  color: var(--eth-fg);
  font-weight: 500;
  letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 6px;
}
.inq-field__label .req {
  color: var(--eth-green-200);
  font-family: var(--eth-font-mono);
  font-size: 12px;
}
.inq-field__hint {
  font-size: 11.5px;
  color: var(--eth-fg-subtle);
  font-family: var(--eth-font-mono);
  letter-spacing: 0.04em;
}

/* Input baseline */
.inq-input,
.inq-select,
.inq-textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--eth-fg);
  background: var(--eth-ink-800);
  border: 1px solid var(--eth-border-soft);
  border-radius: 10px;
  outline: 0;
  transition: border-color var(--eth-dur) var(--eth-ease),
              background var(--eth-dur) var(--eth-ease),
              box-shadow var(--eth-dur) var(--eth-ease);
}
.inq-input::placeholder,
.inq-textarea::placeholder { color: var(--eth-fg-subtle); }
.inq-input:hover,
.inq-select:hover,
.inq-textarea:hover { border-color: rgba(160,166,160,0.28); }
.inq-input:focus,
.inq-select:focus,
.inq-textarea:focus {
  border-color: rgba(147,255,150,0.55);
  background: var(--eth-ink-850);
  box-shadow: 0 0 0 3px rgba(147,255,150,0.10);
}

/* Custom select chrome */
.inq-select__wrap {
  position: relative;
  display: block;
}
.inq-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
}
.inq-select option {
  background: var(--eth-ink-800);
  color: var(--eth-fg);
}
.inq-select__caret {
  pointer-events: none;
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  color: var(--eth-fg-muted);
}
.inq-select__wrap::before {
  content: "";
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 14px;
  background: var(--eth-green-200);
  border-radius: 1px;
  opacity: 0;
  transition: opacity var(--eth-dur) var(--eth-ease);
}
.inq-select:focus ~ .inq-select__caret,
.inq-select__wrap:has(.inq-select:focus)::before { opacity: 1; }
.inq-select__wrap:has(.inq-select:not([data-empty="true"])) .inq-select { color: var(--eth-fg); }
.inq-select[data-empty="true"] { color: var(--eth-fg-subtle); }

/* Textarea */
.inq-textarea {
  resize: vertical;
  min-height: 124px;
  line-height: 1.55;
}

/* Conditional field — smooth reveal */
.inq-cond {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 320ms var(--eth-ease), opacity 240ms var(--eth-ease), margin-top 240ms var(--eth-ease);
  margin-top: 0;
}
.inq-cond > .inq-cond__inner {
  overflow: hidden;
  min-height: 0;
}
.inq-cond.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 14px;
}
.inq-cond__inner {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px;
  border: 1px dashed rgba(147,255,150,0.30);
  border-radius: 10px;
  background: rgba(147,255,150,0.04);
}

/* Footer / CTA row */
.inq-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--eth-border-soft);
  margin-top: 4px;
  flex-wrap: wrap;
}
.inq-legal {
  font-size: 12px;
  color: var(--eth-fg-muted);
  max-width: 480px;
  line-height: 1.55;
}
.inq-legal a { color: var(--eth-green-200); }
.inq-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.eth-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: all var(--eth-dur) var(--eth-ease);
  white-space: nowrap;
  background: none;
}
.eth-btn--primary {
  background: var(--eth-green-200);
  color: var(--eth-fg-inverse);
}
.eth-btn--primary:hover { background: var(--eth-green-100); box-shadow: var(--eth-glow-cta); }
.eth-btn--primary:active { background: var(--eth-green-400); }
.eth-btn--secondary {
  background: var(--eth-surface-alt);
  color: var(--eth-fg);
  border-color: var(--eth-border-soft);
}
.eth-btn--secondary:hover { border-color: var(--eth-green-200); color: var(--eth-green-200); background: var(--eth-ink-600); }
.eth-btn--ghost {
  background: transparent;
  color: var(--eth-fg-muted);
}
.eth-btn--ghost:hover { color: var(--eth-green-200); }
.eth-btn .arrow {
  font-family: var(--eth-font-mono);
  font-size: 16px;
  line-height: 0;
  transition: transform var(--eth-dur) var(--eth-ease);
}
.eth-btn:hover .arrow { transform: translateX(2px); }

/* ─── Success state (after submit) ───────────────────────────────── */
.inq-success {
  display: none;
  text-align: center;
  padding: 50px 32px;
  border: 1px solid rgba(147,255,150,0.30);
  background: radial-gradient(ellipse at top, rgba(147,255,150,0.07), transparent 60%), var(--eth-surface);
  border-radius: var(--eth-r-xl);
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.inq-success.is-visible { display: flex; }
.inq-success__ic {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: rgba(147,255,150,0.12);
  border: 1px solid rgba(147,255,150,0.35);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--eth-green-200);
}
.inq-success h3 { font-size: 22px; }
.inq-success p { color: var(--eth-fg-muted); max-width: 480px; font-size: 14px; line-height: 1.6; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--eth-border-soft);
  padding: 28px 0;
  background: var(--eth-bg-alt);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer__copy {
  font-family: var(--eth-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eth-fg-muted);
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { font-size: 13px; color: var(--eth-fg); }
.footer__links a:hover { color: var(--eth-green-200); }

/* ─── Reveal ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 420ms var(--eth-ease), transform 420ms var(--eth-ease); }
.reveal.is-in-view { opacity: 1; transform: none; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .inq-layout { grid-template-columns: 1fr; gap: 22px; }
  .inq-aside { position: static; }
  .inq-form { padding: 28px 24px; }
  .inq-grid { grid-template-columns: 1fr; }
  .inq-field.col-span-2 { grid-column: auto; }
}
@media (max-width: 600px) {
  :root { --eth-gutter: 20px; }
  .topnav__wordmark { height: 40px; }
  .inq-hero { padding: 40px 0 16px; }
  .inq-form { padding: 22px 18px; gap: 22px; }
  .inq-foot { flex-direction: column; align-items: stretch; }
  .inq-actions { justify-content: stretch; }
  .inq-actions .eth-btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
