/* =========================================================
   Raipan — contact page
   ========================================================= */

:root {
  --bg: #070812;
  --ink: #f2f3ff;
  --muted: #9aa0c2;
  --violet: #8b5cff;
  --cyan: #33e1ff;
  --pink: #ff5ea8;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --radius: 22px;
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 620px at 80% -12%, rgba(139, 92, 255, 0.24), transparent 62%),
    radial-gradient(760px 520px at 4% 6%, rgba(51, 225, 255, 0.13), transparent 60%),
    radial-gradient(760px 760px at 50% 112%, rgba(255, 94, 168, 0.12), transparent 62%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(139, 92, 255, 0.45); color: #fff; }

/* ---------- backdrop layers ---------- */

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  pointer-events: none;
}
#scene.ready { opacity: 1; }

.fallback-orb {
  position: fixed;
  top: 8vh;
  right: 4vw;
  width: min(46vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5), transparent 38%),
    radial-gradient(circle at 62% 68%, rgba(51, 225, 255, 0.75), transparent 58%),
    radial-gradient(circle at 45% 45%, rgba(139, 92, 255, 0.9), rgba(7, 8, 18, 0) 70%);
  filter: blur(26px);
  opacity: 0.55;
  animation: orbFloat 16s ease-in-out infinite;
  transition: opacity 1.2s var(--ease);
}
body.has-webgl .fallback-orb { opacity: 0.18; }

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}

.grid-floor {
  position: fixed;
  inset: auto 0 0 0;
  height: 46vh;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(520px) rotateX(66deg) scale(1.6);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 72%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 72%);
  opacity: 0.55;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 255, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}
body.has-pointer .spotlight { opacity: 1; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  background: rgba(255, 255, 255, 0.06);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--pink));
  box-shadow: 0 0 14px rgba(139, 92, 255, 0.8);
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1120px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 11, 24, 0.55);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 0.98rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0a0a16;
  background: linear-gradient(135deg, #cfc4ff, var(--cyan) 55%, #a9f5ff);
  box-shadow: 0 6px 18px -8px rgba(51, 225, 255, 0.9);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav-links .nav-cta {
  color: #0b0b1a;
  font-weight: 600;
  background: linear-gradient(135deg, #e2dbff, #b9e9ff);
  padding: 9px 16px;
  box-shadow: 0 8px 22px -14px rgba(139, 92, 255, 1);
}
.nav-links .nav-cta:hover { background: linear-gradient(135deg, #fff, #d6f2ff); }

/* ---------- layout ---------- */

main, .footer { position: relative; z-index: 2; }

.hero {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 78px) 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 56px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #d7dcff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px);
}

.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: pulse 2.4s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero h1 {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.grad {
  background: linear-gradient(100deg, #ffffff 0%, #c3b2ff 32%, #7ce6ff 66%, #ffa8cd 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 9s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.lead {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  line-height: 1.72;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.28s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn .ico { width: 18px; height: 18px; flex: none; }

.btn-primary {
  color: #0a0a16;
  background: linear-gradient(135deg, #e7e1ff 0%, #b6e9ff 58%, #d9f7ff 100%);
  box-shadow: 0 18px 40px -22px rgba(139, 92, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 52px -22px rgba(51, 225, 255, 0.9); }

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.09);
}

.btn:active { transform: scale(0.97); }
.btn-block { width: 100%; margin-top: 4px; }

/* click ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%);
  transform: scale(0);
  opacity: 0.8;
  animation: ripple 0.7s ease-out forwards;
  z-index: -1;
}
.btn-primary .ripple,
.nav-cta .ripple { background: radial-gradient(circle, rgba(88, 46, 200, 0.45), rgba(88, 46, 200, 0) 70%); }
@keyframes ripple {
  to { transform: scale(1); opacity: 0; }
}

/* ---------- hero socials ---------- */

.hero-socials {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.mini {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  overflow: hidden;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s ease, background 0.25s ease;
}
.mini svg { width: 19px; height: 19px; }
.mini:hover {
  color: #fff;
  transform: translateY(-4px) rotate(-4deg);
  border-color: rgba(139, 92, 255, 0.55);
  background: rgba(139, 92, 255, 0.16);
  box-shadow: 0 14px 30px -18px rgba(139, 92, 255, 1);
}

/* ---------- 3D tilt card ---------- */

.card-stage {
  position: relative;
  perspective: 1000px;
  display: grid;
  place-items: center;
  padding: 14px;
}

.card-glow {
  position: absolute;
  inset: 6% 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 255, 0.5), rgba(51, 225, 255, 0.18) 45%, transparent 68%);
  filter: blur(44px);
  opacity: 0.75;
  animation: orbFloat 12s ease-in-out infinite;
  pointer-events: none;
}

.tilt-card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 0%;
  position: relative;
  width: min(100%, 380px);
  padding: 34px 30px 26px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025) 46%, rgba(139, 92, 255, 0.1)),
    rgba(11, 12, 26, 0.72);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    0 40px 80px -46px rgba(0, 0, 0, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.7s var(--ease), box-shadow 0.5s ease;
  will-change: transform;
  animation: cardFloat 8s ease-in-out infinite;
}
.card-stage.is-tilting .tilt-card { transition: transform 0.1s linear, box-shadow 0.5s ease; }

@keyframes cardFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.card-layer { transform-style: preserve-3d; }
.card-layer[data-depth="18"] { transform: translateZ(38px); }
.card-layer[data-depth="12"] { transform: translateZ(24px); }
.card-layer[data-depth="8"]  { transform: translateZ(16px); }
.card-layer[data-depth="22"] { transform: translateZ(48px); }

.avatar {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: #0a0a16;
  background: linear-gradient(140deg, #efeaff, #b5e9ff 58%, #ffd4e6);
  box-shadow: 0 18px 36px -20px rgba(51, 225, 255, 0.95), inset 0 1px 0 #fff;
  margin-bottom: 18px;
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
}

.card-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.62rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.card-role {
  margin: 5px 0 0;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a9b0d8;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  color: #cfd5f6;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-mini {
  display: flex;
  gap: 9px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.card-mini a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #c9d0f2;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s;
}
.card-mini a svg { width: 18px; height: 18px; }
.card-mini a:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.06);
  background: rgba(139, 92, 255, 0.28);
  border-color: rgba(139, 92, 255, 0.6);
}

.card-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.16), transparent 62%);
  opacity: 0.9;
  mix-blend-mode: screen;
}

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.018);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 230, 255, 0.5);
}
.marquee-track i { color: var(--violet); font-style: normal; font-size: 0.7rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 11vw, 132px) 0;
  scroll-margin-top: 90px;
}

.section-head { max-width: 620px; margin-bottom: 46px; }

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a99bff;
}

.section h2 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-sub {
  margin: 16px 0 0;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- channel cards ---------- */

.channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.channel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s ease, background 0.35s ease;
  -webkit-tap-highlight-color: transparent;
  transform-style: preserve-3d;
}
.channel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 255, 0.22), transparent 60%);
  transition: opacity 0.4s ease;
}
.channel:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 1), 0 0 0 1px rgba(139, 92, 255, 0.12);
}
.channel:hover::after { opacity: 1; }
.channel:active { transform: translateY(-2px) scale(0.985); }

.ch-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.45s var(--ease), box-shadow 0.4s ease;
}
.ch-icon svg { width: 23px; height: 23px; }
.channel:hover .ch-icon { transform: rotate(-6deg) scale(1.07); }

.ch-icon.fb { color: #9db8ff; background: linear-gradient(150deg, rgba(59, 89, 255, 0.28), rgba(59, 89, 255, 0.08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.ch-icon.ig { color: #ffb3d3; background: linear-gradient(150deg, rgba(255, 94, 168, 0.28), rgba(255, 170, 90, 0.1)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.ch-icon.wa { color: #9ff5c3; background: linear-gradient(150deg, rgba(37, 211, 102, 0.28), rgba(37, 211, 102, 0.08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.ch-icon.em { color: #a9eaff; background: linear-gradient(150deg, rgba(51, 225, 255, 0.26), rgba(51, 225, 255, 0.07)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }

.ch-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ch-name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.ch-handle { font-size: 0.84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ch-arrow {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  color: #b9c0e4;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), color 0.3s ease, background 0.3s ease, border-color 0.3s;
}
.ch-arrow svg { width: 17px; height: 17px; }
.channel:hover .ch-arrow {
  color: #0a0a16;
  background: #e6e2ff;
  border-color: transparent;
  transform: translate(3px, -3px) rotate(8deg);
}

/* ---------- message form ---------- */

.message-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(700px circle at 12% 0%, rgba(139, 92, 255, 0.16), transparent 55%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 50px 100px -70px #000;
  overflow: hidden;
}
.message-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.ticks {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 0.9rem;
  color: #c3c9ea;
}
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--violet), var(--cyan));
  box-shadow: 0 0 14px -3px rgba(139, 92, 255, 0.9);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 7px;
  width: 6px;
  height: 3px;
  border-left: 1.6px solid #0a0a16;
  border-bottom: 1.6px solid #0a0a16;
  transform: rotate(-45deg);
}

.message-form { display: grid; gap: 16px; align-content: start; }

.field { display: grid; gap: 8px; }
.field > span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c9cfee;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 7, 18, 0.55);
  outline: none;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 118px; }
.field input::placeholder,
.field textarea::placeholder { color: #6b7194; }
.field input:focus,
.field textarea:focus {
  border-color: rgba(139, 92, 255, 0.75);
  background: rgba(6, 7, 18, 0.75);
  box-shadow: 0 0 0 4px rgba(139, 92, 255, 0.16);
}

.form-hint {
  margin: 0;
  min-height: 1.1em;
  font-size: 0.8rem;
  color: #ff9db8;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.form-hint.show { opacity: 1; transform: none; }

.form-note {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #b9c9ff;
  cursor: pointer;
  border-bottom: 1px dashed rgba(185, 201, 255, 0.45);
  transition: color 0.2s ease;
}
.link-btn:hover { color: #fff; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 30px 0 40px;
  background: rgba(6, 7, 16, 0.5);
  backdrop-filter: blur(12px);
}
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-note { margin: 0; font-size: 0.82rem; color: #7e85a8; }

.to-top {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.35s var(--ease), color 0.25s, border-color 0.25s, background 0.25s;
}
.to-top svg { width: 18px; height: 18px; }
.to-top:hover {
  color: #fff;
  transform: translateY(-4px);
  border-color: rgba(139, 92, 255, 0.6);
  background: rgba(139, 92, 255, 0.2);
}

/* ---------- scroll reveal ---------- */

/* Disembunyikan hanya saat JS benar-benar berjalan, supaya halaman tetap
   tampil utuh bila dibuka langsung dari file (file://) atau JS gagal dimuat. */
html.js .reveal {
  opacity: 0;
  translate: 0 26px;
  scale: 0.985;
  transition:
    opacity 0.9s var(--ease),
    translate 0.9s var(--ease),
    scale 0.9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, translate;
}
html.js .reveal.in {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: calc(var(--nav-h) + 64px);
    text-align: left;
    min-height: auto;
  }
  .hero-copy { max-width: 620px; }
  .card-stage { order: 2; }
  .tilt-card { width: min(100%, 420px); }
  .message-card { grid-template-columns: 1fr; }
  .marquee-track { font-size: 0.86rem; gap: 22px; }
}

@media (max-width: 620px) {
  .nav { top: 10px; padding: 8px 8px 8px 13px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .brand-name { font-size: 0.92rem; }

  .hero { width: calc(100% - 32px); padding-bottom: 60px; }
  .hero h1 { font-size: clamp(2.15rem, 10.5vw, 3rem); margin-top: 20px; }
  .lead { font-size: 0.93rem; }
  .hero-actions { gap: 10px; }
  .btn { flex: 1 1 100%; padding: 15px 20px; }
  .hero-socials { justify-content: flex-start; }
  .mini { width: 46px; height: 46px; }

  .tilt-card { padding: 28px 24px 22px; border-radius: 24px; }
  .avatar { width: 80px; height: 80px; }

  .section { width: calc(100% - 32px); padding: 64px 0; }
  .channels { grid-template-columns: 1fr; gap: 12px; }
  .channel { padding: 18px; gap: 14px; }
  .ch-icon { width: 46px; height: 46px; border-radius: 14px; }
  .ch-icon svg { width: 21px; height: 21px; }

  .message-card { padding: 26px 20px; border-radius: 24px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (hover: none) {
  .channel:hover { transform: none; }
  .tilt-card { animation: none; }
  .spotlight { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal { opacity: 1; translate: 0 0; scale: 1; }
  .tilt-card { transform: none; }
  .grid-floor { transform: none; }
}

/* =========================================================
   v2 — tambahan: aksesibilitas, bahasa, tentang, QR,
   tab form, jam WIB, vCard, print
   ========================================================= */

/* ---------- aksesibilitas ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.86rem;
  color: #0a0a16;
  background: #e9f6ff;
  box-shadow: 0 20px 40px -24px #000;
  transform: translateY(-180%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid #8be9ff;
  outline-offset: 3px;
  border-radius: 12px;
}

/* ---------- toggle bahasa ---------- */
.lang-toggle {
  flex: none;
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #dfe4ff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); }

/* ---------- jam WIB di kartu ---------- */
.card-clock {
  margin: 12px 0 0;
  font-size: 0.74rem;
  line-height: 1.55;
  color: rgba(226, 230, 255, 0.55);
}
.card-clock strong { color: #cfe9ff; font-weight: 600; font-variant-numeric: tabular-nums; }
.clock-sep { margin: 0 2px; opacity: 0.6; }

/* ---------- tombol simpan kontak ---------- */
.btn-vcard { border-style: dashed; }

/* ---------- tentang ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 18px;
  align-items: start;
}

.about-card,
.share-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(22px, 3vw, 30px);
}

.about-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.78;
  color: var(--muted);
  max-width: 62ch;
}
.about-card p + p { margin-top: 14px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  font-weight: 600;
  color: #dfe4ff;
}

.share-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.share-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.qr-box {
  width: 100%;
  max-width: 196px;
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 50px -34px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
}
.qr-canvas { width: 100%; }
.qr-canvas svg { display: block; width: 100%; height: auto; }
.qr-skeleton {
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 8px;
  background: #eceff5;
  animation: qrPulse 1.6s ease-in-out infinite;
}
.qr-box.is-ready .qr-skeleton { display: none; }
.qr-fail { margin: 0; font-size: 0.72rem; line-height: 1.5; color: #3b3f52; text-align: center; }
@keyframes qrPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.share-note { margin: 0; font-size: 0.82rem; line-height: 1.6; color: var(--muted); }

/* ---------- tab kanal pada form ---------- */
.form-tabs {
  display: inline-flex;
  align-self: flex-start;
  justify-self: start;
  width: fit-content;
  gap: 4px;
  padding: 4px;
  margin: 0 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.tab {
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active {
  color: #0a0a16;
  background: linear-gradient(135deg, #e2dbff, #b9e9ff);
}

.noscript-mail {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- responsif tambahan ---------- */
@media (max-width: 940px) {
  .about-grid { grid-template-columns: 1fr; }
  .share-card { align-items: center; text-align: center; }
}

@media (max-width: 620px) {
  .lang-toggle { height: 32px; padding: 0 8px; }
  .form-tabs { display: flex; width: 100%; align-self: stretch; }
  .tab { flex: 1; }
  .card-clock { font-size: 0.7rem; }
}

@media (hover: none) {
  .card-stage { perspective: 900px; }
}

/* ---------- versi cetak ---------- */
@media print {
  #scene,
  .fallback-orb,
  .grid-floor,
  .grain,
  .spotlight,
  .scroll-progress,
  .marquee,
  .nav,
  .skip-link,
  .to-top,
  .qr-box,
  .hero-socials,
  .form-tabs,
  .card-sheen { display: none !important; }

  html, body { background: #fff !important; color: #111 !important; }
  .reveal { opacity: 1 !important; translate: none !important; scale: none !important; }

  .tilt-card,
  .message-card,
  .about-card,
  .share-card,
  .channel {
    border-color: #cfcfcf !important;
    background: #fff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .grad {
    background: none !important;
    -webkit-text-fill-color: #4b2ed1 !important;
    color: #4b2ed1 !important;
  }
  a { color: #111 !important; text-decoration: underline; }
  .hero { min-height: auto !important; grid-template-columns: 1fr !important; padding: 16px 0 !important; }
  .section { padding: 20px 0 !important; }
}
