/* ==========================================================================
   kinitix studio — Dark Charcoal Glassmorphic Design System (60fps Mobile + Desktop)
   ========================================================================== */

@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #0b0d13;
  --bg-elev: #121622;
  --glass: rgba(18, 22, 33, 0.62);
  --glass-strong: rgba(16, 20, 30, 0.84);
  --border: rgba(255, 255, 255, 0.12);
  --border-hi: rgba(255, 255, 255, 0.24);
  --text: #f3f5fa;
  --text-muted: rgba(226, 232, 245, 0.68);
  --accent: #7cf7df;
  --accent-2: #a855f7;
  --accent-3: #f97316;
  --gold: #eab308;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --rail-w: 92px;
  --ease-spring: cubic-bezier(0.34, 1.25, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  overflow-x: clip;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Scroll Progress Hairline */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 100%;
  z-index: 900;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #2dd4bf, #a855f7, #f97316);
  pointer-events: none;
}

/* Ambient Orbs */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.24;
  transform: translateZ(0);
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: 8%;
  background: radial-gradient(circle, #2dd4bf, transparent 70%);
}

.orb-2 {
  width: 460px;
  height: 460px;
  top: 28%;
  right: -140px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
}

.orb-3 {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: 35%;
  background: radial-gradient(circle, #f97316, transparent 70%);
}

/* GPU-Safe Radial Page Transition Veil */
.transition-veil {
  position: fixed;
  inset: 0;
  z-index: 800;
  pointer-events: none;
  background: radial-gradient(circle, #181d2c 0%, #090b11 100%);
  clip-path: circle(0% at var(--tx, 50%) var(--ty, 50%));
  transition: clip-path 0.56s cubic-bezier(0.77, 0, 0.175, 1);
}

.transition-veil.active {
  clip-path: circle(150% at var(--tx, 50%) var(--ty, 50%));
}

/* Animated Intro Overlay */
/* ==========================================================================
   KINITIX BAUHAUS SVG INTRO + LIGHT SWEEP + RADIAL CURTAIN
   ========================================================================== */
#introOverlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: radial-gradient(circle at 50% 42%, #192030 0%, #101218 52%, #0C0E13 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 0.72s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.45s ease;
  will-change: clip-path, opacity;
  overflow: hidden;
  padding: 24px;
  text-align: center;
}

#introOverlay.is-revealing {
  clip-path: circle(0% at 50% 50%);
  pointer-events: none;
}

#introOverlay.is-hidden {
  display: none;
}

.intro-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.intro-logo-wrap::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 125, 245, 0.22) 0%, rgba(24, 180, 151, 0.08) 45%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.intro-k-svg {
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* Animated K segments */
.intro-k-stem {
  opacity: 0;
  transform: translate3d(-44px, 0, 0) scale(0.88);
  transform-origin: center;
  animation: kSegIn 0.62s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s forwards;
}
.intro-k-top {
  opacity: 0;
  transform: translate3d(42px, -42px, 0) scale(0.85);
  transform-origin: center;
  animation: kSegIn 0.62s cubic-bezier(0.34, 1.56, 0.64, 1) 0.26s forwards;
}
.intro-k-bot {
  opacity: 0;
  transform: translate3d(42px, 42px, 0) scale(0.85);
  transform-origin: center;
  animation: kSegIn 0.62s cubic-bezier(0.34, 1.56, 0.64, 1) 0.38s forwards;
}
.intro-k-dot {
  opacity: 0;
  transform: scale(0);
  transform-origin: 72px 50px;
  animation: kDotPop 0.56s cubic-bezier(0.34, 1.8, 0.64, 1) 0.56s forwards;
}

@keyframes kSegIn {
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes kDotPop {
  0% { opacity: 0; transform: scale(0); }
  70% { opacity: 1; transform: scale(1.22); }
  100% { opacity: 1; transform: scale(1); }
}

/* Warm Cream Wordmark + Light Sweep */
#introOverlay .intro-wordmark {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #EDE6D6;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(14px);
  animation: introTextIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.72s forwards;
  position: relative;
  overflow: hidden;
  padding: 2px 10px;
}

#introOverlay .intro-wordmark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.52) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: lightSweep 0.85s ease-in-out 0.94s forwards;
  pointer-events: none;
}

/* Subtitle */
#introOverlay .intro-sub {
  margin-top: 10px;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: clamp(0.68rem, 1.8vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #7D8A9E;
  opacity: 0;
  transform: translateY(10px);
  animation: introTextIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.92s forwards;
}

@keyframes introTextIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lightSweep {
  to { transform: translateX(130%); }
}

/* Dark Glass Skip Pill */
#introOverlay .intro-skip-btn {
  appearance: none;
  margin-top: 28px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(237, 230, 214, 0.65);
  font-family: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

#introOverlay .intro-skip-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #EDE6D6;
}

/* ==========================================================================
   Layout Shell & Volumetric Spotlight Nav (Desktop Left Rail)
   ========================================================================== */
.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100dvh;
}

.glass-nav {
  position: fixed;
  top: 16px;
  left: 16px;
  bottom: 16px;
  width: var(--rail-w);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 8px;
  border-radius: 28px;
  background: rgba(18, 22, 32, 0.64);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.25s var(--ease-spring);
}

.nav-track {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.beam-wrap {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: none;
}

/* Desktop vertical volumetric spotlight beam coming from right edge of rail */
.beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 62px;
  transform: translateY(calc(var(--indicator-y, 31px) - 31px));
  transition: transform 0.45s var(--ease-spring);
}

.beam::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 30px;
  border-radius: 6px 0 0 6px;
  background: #7cf7df;
  box-shadow: 0 0 14px #7cf7df;
}

.beam::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 0;
  bottom: 0;
  left: 0;
  clip-path: polygon(100% 24%, 100% 76%, 0% 100%, 0% 0%);
  background: linear-gradient(270deg, rgba(124, 247, 223, 0.36) 0%, rgba(124, 247, 223, 0) 95%);
}

.glass-tab {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 58px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 16px;
  transition: color 0.25s ease, transform 0.2s ease;
}

.glass-tab.active {
  color: #ffffff;
  font-weight: 600;
}

.glass-tab:active {
  transform: scale(0.95);
}

/* Main Column */
.main-column {
  flex: 1;
  min-width: 0;
  margin-left: calc(var(--rail-w) + 32px);
  padding: 20px 28px 40px;
  display: flex;
  flex-direction: column;
  max-width: 1440px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.search-trigger {
  flex: 1;
  max-width: 560px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-placeholder {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.kbd-hint {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.page-viewport {
  flex: 1;
  min-width: 0;
}

/* ==========================================================================
   Home Flagship Bento Grid
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.glass-card {
  position: relative;
  min-width: 0;
  border-radius: var(--radius-xl);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.bento-hero {
  grid-column: span 8;
  padding: 30px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 247, 223, 0.3);
  background: rgba(124, 247, 223, 0.08);
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, #ffffff 30%, #d8c8a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #2dd4bf, #38bdf8);
  color: #061014;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), filter 0.2s ease;
}

.btn-secondary {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border-hi);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.hero-preview-box {
  border-radius: 16px;
  border: 1px solid var(--border-hi);
  background: #0d111c;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.mini-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.mini-browser-screen {
  border-radius: 10px;
  padding: 18px 16px;
  background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.35), transparent 55%),
              linear-gradient(160deg, #151b2c, #0a0d16);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-browser-screen h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.mini-browser-screen p {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mini-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-chips span {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

/* Featured Card */
.bento-featured {
  grid-column: span 4;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.14), rgba(18, 22, 33, 0.78));
}

.featured-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e9d5ff;
  font-weight: 700;
}

.featured-thumb {
  height: 150px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
}

/* Marquee */
.bento-marquee {
  grid-column: span 12;
  padding: 14px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: marqueeScroll 24s linear infinite;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Stats & 1-2-3 Workflow */
.bento-stat {
  grid-column: span 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #7cf7df, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bento-workflow {
  grid-column: span 6;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.wf-step {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wf-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}

.wf-title {
  font-weight: 700;
  font-size: 0.92rem;
}

.wf-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Catalog Pages (Websites, Posters, Creatives)
   ========================================================================== */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h1 {
  margin: 0 0 4px;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  max-width: 100%;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-pill.active {
  background: rgba(124, 247, 223, 0.16);
  border-color: rgba(124, 247, 223, 0.55);
  color: #ffffff;
}

/* Grids */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.template-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), border-color 0.25s ease;
}

.card-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0d1018;
  overflow: hidden;
  cursor: pointer;
}

.poster-card .card-visual {
  aspect-ratio: 4 / 5;
}

.card-visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Poster Card Overlays */
.poster-pill-top {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(11, 13, 19, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.poster-k-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(11, 13, 19, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent);
}

.poster-view-toggle {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  border-radius: 999px;
  padding: 2px;
  background: rgba(11, 13, 19, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.poster-view-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.poster-view-btn.active {
  background: var(--accent);
  color: #061014;
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.badge-pill {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.badge-flagship {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.5);
  color: #f3e8ff;
}

.card-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.swatch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.swatches {
  display: flex;
  gap: 6px;
}

.swatch-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s var(--ease-spring);
}

.card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
}

.btn-card {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-card-primary {
  background: rgba(124, 247, 223, 0.14);
  border-color: rgba(124, 247, 223, 0.4);
  color: #e6fff9;
}

/* ==========================================================================
   Contact Page (Private Studio Lead Form)
   ========================================================================== */
.contact-wrap {
  max-width: 560px;
  margin: 12px auto 24px;
  padding: 32px 28px;
}

.contact-head {
  text-align: center;
  margin-bottom: 24px;
}

.contact-head h1 {
  margin: 10px 0 6px;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.contact-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.studio-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 16px; /* Prevents Android Chrome auto-zoom */
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(11, 13, 19, 0.65);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.btn-submit {
  min-height: 48px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.35);
}

.form-status {
  min-height: 20px;
  font-size: 0.85rem;
  text-align: center;
  color: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.studio-footer {
  margin-top: 40px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(18, 22, 33, 0.56);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-footer {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  cursor: pointer;
}

.version-badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ==========================================================================
   Modals (Full-Screen Preview, View Files, Ctrl+K Command Search)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(6, 8, 13, 0.84);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.preview-shell {
  width: 100%;
  height: 94dvh;
  max-width: 1440px;
  border-radius: 22px;
  border: 1px solid var(--border-hi);
  background: #0e121c;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.preview-toolbar {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 20, 31, 0.92);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preview-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.license-pill {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: #99f6e4;
}

.preview-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.switch-pill {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.switch-pill.active {
  background: var(--accent);
  color: #061014;
  border-color: var(--accent);
}

.preview-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.color-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.color-dot.active {
  transform: scale(1.18);
  border-color: #ffffff;
}

.color-rand {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.viewport-toggle {
  display: inline-flex;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.vp-btn {
  border: none;
  background: transparent;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-muted);
}

.vp-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-tool {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-accent {
  background: var(--accent);
  color: #061014;
  border-color: var(--accent);
}

.btn-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.preview-stage {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #07090f;
  padding: 12px;
  overflow: hidden;
}

#previewFrame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  background: #0b0d13;
  transition: width 0.35s var(--ease-out);
}

#previewFrame.mobile-mode {
  width: 390px;
  max-width: 100%;
  border: 6px solid #1f2536;
  border-radius: 28px;
}

/* View Files Modal */
.files-shell {
  width: min(980px, 100%);
  height: min(82dvh, 720px);
  border-radius: 20px;
  border: 1px solid var(--border-hi);
  background: #0e121c;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.files-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.files-sub {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.files-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.files-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.file-tree {
  border-right: 1px solid var(--border);
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-item {
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

.file-item.active {
  background: rgba(124, 247, 223, 0.14);
  color: #fff;
}

.code-viewer {
  margin: 0;
  padding: 16px;
  overflow: auto;
  background: #090c14;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: #dbeafe;
}

/* Ctrl+K Command Search */
.cmd-shell {
  width: min(640px, 100%);
  max-height: 76dvh;
  border-radius: 20px;
  border: 1px solid var(--border-hi);
  background: rgba(15, 19, 30, 0.96);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cmd-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.cmd-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.cmd-results {
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmd-item {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.cmd-item:hover,
.cmd-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  outline: none;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1200;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(18, 24, 38, 0.94);
  border: 1px solid rgba(124, 247, 223, 0.45);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease-spring), opacity 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Desktop-Only Hover Polish */
@media (hover: hover) and (pointer: fine) {
  .template-card:hover {
    border-color: rgba(124, 247, 223, 0.42);
    transform: translateY(-4px);
  }
  .search-trigger:hover {
    border-color: var(--border-hi);
    background: rgba(255, 255, 255, 0.07);
  }
  .btn-card:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .swatch-dot:hover {
    transform: scale(1.22);
  }
}

/* ==========================================================================
   Android & Mobile Responsive Layout (Floating Bottom Volumetric Spotlight Dock)
   ========================================================================== */
@media (max-width: 900px) {
  .bento-hero {
    grid-column: span 12;
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .bento-featured {
    grid-column: span 12;
  }
  .bento-stat {
    grid-column: span 4;
  }
  .bento-workflow {
    grid-column: span 12;
  }
  .files-body {
    grid-template-columns: 1fr;
    grid-template-rows: 150px minmax(0, 1fr);
  }
  .file-tree {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  .glass-nav {
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(460px, calc(100vw - 24px));
    height: 68px;
    padding: 0 8px;
    border-radius: 999px;
    flex-direction: row;
  }

  .brand-mark {
    display: none;
  }

  .nav-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: center;
    height: 100%;
    gap: 0;
  }

  .beam-wrap {
    border-radius: 999px;
  }

  /* Horizontal Volumetric Spotlight Beam on Mobile Bottom Dock */
  .beam {
    top: 0;
    left: 0;
    width: 74px;
    height: 100%;
    transform: translateX(calc(var(--indicator-x, 40px) - 37px));
  }

  .beam::before {
    right: auto;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3.5px;
    border-radius: 0 0 6px 6px;
  }

  .beam::after {
    right: 0;
    left: 0;
    top: 3.5px;
    bottom: 0;
    clip-path: polygon(28% 0%, 72% 0%, 100% 100%, 0% 100%);
    background: linear-gradient(180deg, rgba(124, 247, 223, 0.42) 0%, rgba(124, 247, 223, 0) 92%);
  }

  .glass-tab {
    min-height: 48px;
    font-size: 10px;
  }

  .main-column {
    margin-left: 0;
    padding: 16px 16px calc(104px + env(safe-area-inset-bottom));
  }

  .mobile-brand {
    display: inline-flex;
  }

  .kbd-hint {
    display: none;
  }

  .toast {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ==========================================================================
   Heart Likes & Auto Popular Badge
   ========================================================================== */
.popular-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.9);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.45);
  pointer-events: none;
}

.card-actions {
  grid-template-columns: 1fr 1fr auto auto;
}

.btn-like {
  min-width: 54px;
  gap: 5px;
  padding: 0 10px;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s ease, background 0.2s ease;
}

.btn-like .heart-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.28s var(--ease-spring), fill 0.2s ease, stroke 0.2s ease;
}

.btn-like.liked {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.55);
  color: #fda4af;
}

.btn-like.liked .heart-icon {
  fill: #f43f5e;
  stroke: #f43f5e;
  transform: scale(1.18);
}

.btn-like:active {
  transform: scale(0.92);
}
.site-footer {
  text-align: center;
  padding: 32px 16px 96px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
/* Smooth Staged Intro Flow */
#introOverlay {
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.75s ease;
  will-change: opacity, transform;
}

#introOverlay.hidden {
  opacity: 0;
  transform: scale(1.04) translateY(-12px);
  visibility: hidden;
  pointer-events: none;
}

#introOverlay.playing > * {
  animation: kinitixIntroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes kinitixIntroRise {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
