/* =====================================================================
   NexusHub - Get in touch
   ===================================================================== */
:root {
  --ct-panel: rgba(6, 6, 10, .66);
  --ct-inset: rgba(3, 3, 6, .74);
  --ct-line: rgba(255, 255, 255, .075);
  --ct-line-2: rgba(255, 255, 255, .14);
  --ct-text: #f4f4f5;
  --ct-muted: #9a9aa5;
  --ct-dim: #6a6a75;
  --ct-purple: #a855f7;
  --ct-blue: #3b82f6;
  --ct-ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; color: var(--ct-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ct-purple); outline-offset: 3px; }

.ct-app { width: min(1080px, calc(100% - 32px)); margin: 8px auto 72px; flex: 1 0 auto; }

/* ---------- Title ---------- */
.ct-hero { max-width: 660px; margin: 22px auto 34px; text-align: center; }
.ct-hero h1 {
  margin: 0 0 14px; font-family: Outfit, Inter, sans-serif; font-weight: 900;
  font-size: clamp(2.3rem, 5.6vw, 3.5rem); line-height: 1.03; letter-spacing: -.03em;
}
.ct-hero h1 span { background: linear-gradient(90deg, #c084fc, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ct-hero p { margin: 0 auto; max-width: 520px; color: var(--ct-muted); font-size: 1.02rem; line-height: 1.7; }

/* ---------- Chat cards ---------- */
.ct-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
/* Discord / Telegram cards: same behaviour as the flip cards on the home
   page - the card lifts, the border lights up in the brand colour, and the
   panel spins to show the back face. */
.ct-chat {
  position: relative;
  display: block;
  height: 88px;
  border-radius: 20px;
  color: inherit;
  cursor: pointer;
  perspective: 1400px;
  text-decoration: none;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}
.ct-chat:hover, .ct-chat:focus-visible { outline: none; transform: scale(1.035); z-index: 5; }

.ct-flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.25, .6, .25, 1);
}
.ct-chat:hover .ct-flip, .ct-chat:focus-visible .ct-flip { transform: rotateY(180deg); }

.ct-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1.5px solid var(--ct-line);
  border-radius: 20px;
  background: var(--ct-panel);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.ct-face-back { transform: rotateY(180deg); }
.ct-chat:hover .ct-face, .ct-chat:focus-visible .ct-face {
  border-color: rgb(var(--c));
  box-shadow: 0 0 34px rgba(var(--c), .38), inset 0 0 16px rgba(var(--c), .16);
}

.ct-chat .ico {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border-radius: 14px; background: rgba(var(--c), .16); color: rgb(var(--c));
  box-shadow: inset 0 0 0 1px rgba(var(--c), .3);
  transition: transform .35s var(--ct-ease);
}
.ct-chat:hover .ico { transform: scale(1.06) rotate(-4deg); }
.ct-chat .ico svg { width: 24px; height: 24px; fill: currentColor; }
.ct-chat .copy { flex: 1; min-width: 0; }
.ct-chat strong { display: block; color: #fff; font-family: Outfit, Inter, sans-serif; font-size: 1.02rem; font-weight: 700; }
.ct-chat .copy span { display: block; margin-top: 3px; overflow: hidden; color: var(--ct-dim); font-size: 12.5px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.ct-chat .go { width: 18px; height: 18px; flex: none; color: var(--ct-dim); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ct-ease), color .25s ease; }
.ct-chat:hover .go { transform: translateX(3px); color: #fff; }
.ct-face-back .go { color: rgb(var(--c)); }

/* ---------- The form ---------- */
.ct-card {
  padding: 26px 28px 28px; border: 1px solid var(--ct-line); border-radius: 24px;
  background: var(--ct-panel); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.ct-card-head { margin-bottom: 20px; }
.ct-card-head h2 { margin: 0 0 6px; font-family: Outfit, Inter, sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.ct-card-head p { margin: 0; color: var(--ct-muted); font-size: 13.5px; line-height: 1.6; }

.ct-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ct-field { display: grid; gap: 7px; min-width: 0; }
.ct-field.full { grid-column: 1 / -1; }
.ct-field > label, .ct-label {
  display: flex; align-items: center; gap: 7px; margin-left: 2px;
  color: #c2c2cb; font-size: 12.5px; font-weight: 600;
}
.ct-label small { color: var(--ct-dim); font-size: 11.5px; font-weight: 500; }

.ct-input, .ct-area {
  width: 100%; padding: 0 14px; border: 1px solid var(--ct-line-2); border-radius: 13px;
  background: var(--ct-inset); color: #fff; font-size: 14px; outline: 0;
  transition: border-color .2s ease, box-shadow .25s ease, background .2s ease;
}
.ct-input { height: 46px; }
.ct-area { padding: 13px 14px; min-height: 140px; line-height: 1.65; resize: vertical; font-family: inherit; }
.ct-input::placeholder, .ct-area::placeholder { color: #55555f; }
.ct-input:focus, .ct-area:focus { border-color: rgba(168, 85, 247, .6); box-shadow: 0 0 0 4px rgba(168, 85, 247, .14); }
.ct-field.is-bad .ct-input, .ct-field.is-bad .ct-area, .ct-field.is-bad .ct-select { border-color: rgba(248, 113, 113, .65); }

/* the dropdown */
.ct-picker { position: relative; }
.ct-select {
  display: flex; align-items: center; gap: 11px; width: 100%; height: 46px; padding: 0 13px;
  border: 1px solid var(--ct-line-2); border-radius: 13px; background: var(--ct-inset);
  color: #fff; font-size: 14px; text-align: left;
  transition: border-color .2s ease, box-shadow .25s ease;
}
.ct-select[aria-expanded="true"] { border-color: rgba(168, 85, 247, .6); box-shadow: 0 0 0 4px rgba(168, 85, 247, .14); }
.ct-select .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ct-dim); transition: background .25s ease, box-shadow .25s ease; }
.ct-select.has-value .dot { background: #c084fc; box-shadow: 0 0 9px #c084fc; }
.ct-select .value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-select:not(.has-value) .value { color: #55555f; }
.ct-select .chev { width: 17px; height: 17px; flex: none; color: var(--ct-dim); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .32s var(--ct-ease); }
.ct-select[aria-expanded="true"] .chev { transform: rotate(180deg); color: #c4b5fd; }

.ct-options {
  position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; left: 0;
  padding: 6px; border: 1px solid var(--ct-line-2); border-radius: 15px;
  background: rgba(13, 13, 18, .98); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .65);
  opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: top center;
  pointer-events: none; transition: opacity .2s ease, transform .28s var(--ct-ease);
}
.ct-options.open { opacity: 1; transform: none; pointer-events: auto; }
.ct-options li {
  display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 10px;
  color: #d4d4d8; font-size: 13.5px; cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.ct-options { margin: 0; list-style: none; }
.ct-options li:hover, .ct-options li.is-active { background: rgba(255, 255, 255, .07); color: #fff; }
.ct-options li[aria-selected="true"] { color: #d8b4fe; }
.ct-options li .tick { width: 16px; height: 16px; flex: none; margin-left: auto; opacity: 0; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ct-options li[aria-selected="true"] .tick { opacity: 1; }
.ct-options li .emoji { width: 17px; height: 17px; flex: none; color: #8a8a95; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ct-options li:hover .emoji, .ct-options li.is-active .emoji { color: #c4b5fd; }

.ct-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.ct-note { flex: 1 1 240px; min-width: 0; color: var(--ct-dim); font-size: 12px; line-height: 1.6; }
.ct-note a { color: #c4b5fd; text-decoration: underline; text-underline-offset: 2px; }
.ct-send {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 168px; height: 48px; padding: 0 26px; margin-left: auto;
  border: 0; border-radius: 14px; color: #fff; font-size: 14.5px; font-weight: 700;
  background: linear-gradient(145deg, #a855f7, #6366f1 55%, #3b82f6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: filter .2s ease, transform .18s var(--ct-ease);
}
.ct-send::before {
  content: ""; position: absolute; top: 0; left: -100%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .32) 50%, transparent);
  transform: skewX(-20deg); transition: left .55s ease;
}
.ct-send:hover::before { left: 150%; }
.ct-send:hover { filter: brightness(1.07); }
.ct-send:active { transform: scale(.98); }
.ct-send:disabled { opacity: .6; pointer-events: none; }
.ct-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ct-send .spin { display: none; width: 17px; height: 17px; border-radius: 50%; border: 2.4px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: ct-spin .8s linear infinite; }
.ct-send.is-sending .spin { display: block; }
.ct-send.is-sending .i-send { display: none; }
@keyframes ct-spin { to { transform: rotate(360deg); } }

.ct-alert {
  display: flex; gap: 11px; margin-top: 16px; padding: 13px 15px;
  border: 1px solid rgba(248, 113, 113, .32); border-radius: 13px; background: rgba(248, 113, 113, .08);
  color: #fca5a5; font-size: 13px; line-height: 1.6;
  animation: ct-rise .35s var(--ct-ease);
}
.ct-alert svg { width: 17px; height: 17px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ct-rise { from { opacity: 0; transform: translateY(8px); } }

/* thank you */
.ct-done { display: grid; justify-items: center; gap: 14px; padding: 44px 24px; text-align: center; animation: ct-rise .5s var(--ct-ease); }
.ct-done .ring {
  width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(74, 222, 128, .12); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .3), 0 0 34px rgba(74, 222, 128, .12);
  color: #4ade80;
}
.ct-done .ring svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: ct-draw .5s .15s ease forwards; }
@keyframes ct-draw { to { stroke-dashoffset: 0; } }
.ct-done h2 { margin: 0; font-family: Outfit, Inter, sans-serif; font-size: 1.4rem; font-weight: 700; }
.ct-done p { margin: 0; max-width: 400px; color: var(--ct-muted); font-size: 14px; line-height: 1.7; }
.ct-done button {
  height: 40px; padding: 0 18px; margin-top: 4px; border: 1px solid var(--ct-line-2); border-radius: 12px;
  background: rgba(255, 255, 255, .04); color: #e4e4e7; font-size: 13.5px; font-weight: 600;
  transition: background .2s ease;
}
.ct-done button:hover { background: rgba(255, 255, 255, .09); }

.ct-rise { animation: ct-rise .7s var(--ct-ease) backwards; animation-delay: calc(var(--d, 0) * 80ms); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .ct-app { width: min(100% - 20px, 1080px); }
  .ct-quick { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ct-chat { height: 84px; }
  .ct-face { padding: 16px 16px; gap: 13px; }
  .ct-card { padding: 20px 18px 22px; border-radius: 20px; }
  .ct-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ct-send { width: 100%; margin-left: 0; }
  .ct-note { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
