/* ==========================================================================
   Kapyari Labs — Contact Page (v6)
   Centered "Get in touch." header, sleek Discord CTA button, open-canvas
   hairline form (no boxes/pills), and direct click-to-email arrow rows below.
   ========================================================================== */

.ct6 {
  --ct-ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  min-height: calc(100vh - 72px);
  padding: clamp(108px, 12vw, 152px) 0 clamp(84px, 10vw, 124px);
  font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  color: #f4f5f8;
  overflow-x: clip;
}

.ct6-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(56% 42% at 50% 0%, rgba(88, 101, 242, 0.14), transparent 68%);
}

.ct6-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 22px;
}
@media (min-width: 768px) { .ct6-wrap { padding: 0 32px; } }

/* ---------- Centered Editorial Header + Sleek Discord Button ---------- */
.ct6-head {
  text-align: center;
  padding-bottom: clamp(40px, 6vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.ct6-head h1 {
  margin: 0;
  font: 600 clamp(2.6rem, 6.4vw, 4.6rem)/1.02 'Geist', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.045em;
  color: #ffffff;
}

.ct6-lead {
  margin: 16px auto 0;
  max-width: 500px;
  font: 400 clamp(0.98rem, 1.35vw, 1.1rem)/1.6 'Inter', sans-serif;
  color: #989ba8;
}

.ct6-dc-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.ct6-dc-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #5865f2;
  color: #ffffff;
  font: 600 15px/1 'Geist', 'Inter', sans-serif;
  text-decoration: none;
  box-shadow:
    0 12px 34px rgba(88, 101, 242, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.22s var(--ct-ease), background 0.2s ease, box-shadow 0.22s ease;
}
.ct6-dc-btn:hover {
  transform: translateY(-2px);
  background: #4b58e6;
  box-shadow: 0 16px 40px rgba(88, 101, 242, 0.5);
}
.ct6-dc-btn .ct6-dc-ico {
  width: 21px;
  height: 21px;
  fill: #ffffff;
  flex: none;
}
.ct6-dc-btn .ct6-arr {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.22s var(--ct-ease);
}
.ct6-dc-btn:hover .ct6-arr { transform: translateX(3px); }

.ct6-dc-note {
  font: 400 12.5px/1.3 'Inter', sans-serif;
  color: #777b8b;
}

@media (max-width: 480px) {
  .ct6-dc-wrap { align-items: stretch; }
  .ct6-dc-btn { width: 100%; }
  .ct6-dc-note { text-align: center; }
}

/* ---------- Open-Canvas Form (Zero Boxes, Zero Pills) ---------- */
.ct6-form {
  margin-top: clamp(38px, 5vw, 52px);
}

.ct6-step {
  margin-bottom: clamp(32px, 4.5vw, 44px);
}

.ct6-q {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font: 500 11.5px/1 'Geist', 'Inter', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #747888;
}
.ct6-count {
  font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  color: #525666;
}

/* Underlined typographic topic bar */
.ct6-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ct6-topic {
  position: relative;
  padding: 4px 0 8px;
  border: 0;
  background: none;
  font: 500 clamp(0.95rem, 1.3vw, 1.05rem)/1.2 'Geist', 'Inter', sans-serif;
  color: #727687;
  cursor: pointer;
  transition: color 0.2s ease;
}
.ct6-topic:hover { color: #d6d9e4; }
.ct6-topic::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ct-ease);
}
.ct6-topic[aria-checked="true"] { color: #ffffff; }
.ct6-topic[aria-checked="true"]::after { transform: scaleX(1); }

@media (max-width: 640px) {
  .ct6-topics { gap: 8px 18px; padding-bottom: 10px; }
  .ct6-topic::after { bottom: -1px; }
}

/* Bottom-hairline inputs */
.ct6-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}
@media (max-width: 640px) {
  .ct6-two { grid-template-columns: 1fr; gap: 28px; }
}

.ct6-line,
.ct6-area {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font: 400 clamp(1.05rem, 1.6vw, 1.25rem)/1.45 'Geist', 'Inter', sans-serif;
  letter-spacing: -0.015em;
  outline: none;
  transition: border-color 0.22s ease;
}
.ct6-line { padding: 8px 0 11px; }
.ct6-area {
  padding: 8px 0 12px;
  min-height: 120px;
  resize: vertical;
  font-size: clamp(0.98rem, 1.35vw, 1.1rem);
  line-height: 1.6;
}
.ct6-line::placeholder,
.ct6-area::placeholder { color: rgba(255, 255, 255, 0.24); }
.ct6-line:hover,
.ct6-area:hover { border-bottom-color: rgba(255, 255, 255, 0.34); }
.ct6-line:focus,
.ct6-area:focus { border-bottom-color: #ffffff; }

.ct6-step.is-bad .ct6-line,
.ct6-step.is-bad .ct6-area,
.ct6-step.is-bad .ct6-topics {
  border-bottom-color: #f87171;
}

.ct6-hint {
  margin: 14px 0 0;
  font: 400 13.5px/1.6 'Inter', sans-serif;
  color: #9397a6;
}
.ct6-hint a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.ct6-hint[hidden] { display: none; }

.ct6-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.ct6-alert {
  margin: 0 0 18px;
  font: 500 14px/1.5 'Inter', sans-serif;
  color: #fca5a5;
}
.ct6-alert[hidden] { display: none; }

.ct6-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.ct6-note {
  margin: 0;
  font: 400 13px/1.5 'Inter', sans-serif;
  color: #696d7c;
}
.ct6-note a { color: #a6aab8; text-decoration: underline; text-underline-offset: 3px; }
.ct6-note a:hover { color: #ffffff; }

.ct6-send {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #05060a;
  font: 600 15px/1 'Geist', 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.22s var(--ct-ease), opacity 0.2s ease;
}
.ct6-send:hover:not(:disabled) { transform: translateY(-2px); }
.ct6-send:disabled { opacity: 0.6; cursor: wait; }
.ct6-send svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.22s var(--ct-ease);
}
.ct6-send:hover:not(:disabled) svg { transform: translateX(3px); }
.ct6-spin {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(5, 6, 10, 0.2);
  border-top-color: #05060a;
  border-radius: 50%;
  animation: ct6-spin 0.7s linear infinite;
}
.ct6-send.is-sending .ct6-spin { display: inline-block; }
.ct6-send.is-sending svg { display: none; }
@keyframes ct6-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .ct6-foot { flex-direction: column-reverse; align-items: stretch; }
  .ct6-send { width: 100%; }
  .ct6-note { text-align: center; }
}

/* ---------- Sent State ---------- */
.ct6-done {
  padding: 48px 0 16px;
  text-align: center;
}
.ct6-done[hidden] { display: none; }
.ct6-done h2 {
  margin: 0;
  font: 600 clamp(1.9rem, 4vw, 2.8rem)/1.05 'Geist', 'Inter', sans-serif;
  letter-spacing: -0.04em;
  color: #ffffff;
}
.ct6-done p {
  margin: 12px auto 0;
  max-width: 440px;
  font: 400 15.5px/1.6 'Inter', sans-serif;
  color: #989ba8;
}
.ct6-again {
  margin-top: 24px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: none;
  color: #ffffff;
  font: 500 14.5px/1.2 'Geist', 'Inter', sans-serif;
  cursor: pointer;
}
.ct6-again:hover { border-bottom-color: #ffffff; }

/* ---------- Bottom Direct Email Rows with Sleek Arrow Buttons ---------- */
.ct6-emails {
  margin-top: clamp(56px, 8vw, 84px);
  padding-top: clamp(32px, 5vw, 44px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.ct6-emails-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.ct6-emails-head h2 {
  margin: 0;
  font: 500 12px/1 'Geist', 'Inter', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #747888;
}
.ct6-copy {
  padding: 0;
  border: 0;
  background: none;
  font: 500 12px/1 'Geist', 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7f90;
  cursor: pointer;
  transition: color 0.2s ease;
}
.ct6-copy:hover { color: #ffffff; }
.ct6-copy.is-done { color: #4ade80; }

.ct6-mail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease;
}
.ct6-mail-row:hover { border-bottom-color: rgba(255, 255, 255, 0.28); }

.ct6-mail-info { min-width: 0; }
.ct6-mail-title {
  display: block;
  font: 600 clamp(1.05rem, 1.8vw, 1.3rem)/1.2 'Geist', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  color: #f4f5f8;
  transition: color 0.2s ease;
}
.ct6-mail-row:hover .ct6-mail-title { color: #ffffff; }
.ct6-mail-addr {
  display: block;
  margin-top: 4px;
  font: 400 14px/1.4 'Inter', sans-serif;
  color: #848898;
  word-break: break-word;
}

.ct6-arrow-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #e4e6ef;
  transition: background 0.22s var(--ct-ease), border-color 0.22s ease, color 0.22s ease, transform 0.22s var(--ct-ease);
}
.ct6-arrow-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.22s var(--ct-ease);
}
.ct6-mail-row:hover .ct6-arrow-btn {
  background: #ffffff;
  border-color: #ffffff;
  color: #05060a;
  transform: scale(1.05);
}
.ct6-mail-row:hover .ct6-arrow-btn svg {
  transform: translate(2px, -2px);
}
