/* Giamix Home — референс Lovable, цвета Giamix (зелёный) */

.gx-home {
  --gx-hero-max: 680px;
  background: #020403;
}

.gx-home .gx-main > .gx-home-mesh {
  z-index: 0 !important;
}

.gx-home .gx-main > .gx-home-scroll {
  z-index: 2 !important;
}

.gx-home .gx-main.gx-home-main {
  background: transparent;
  padding: 0;
  margin-left: var(--gx-sidebar-w);
  width: calc(100vw - var(--gx-sidebar-w));
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

.gx-home .gx-shell.is-collapsed .gx-main.gx-home-main {
  margin-left: var(--gx-sidebar-w-collapsed);
  width: calc(100vw - var(--gx-sidebar-w-collapsed));
}

/* ── Aurora canvas + grid + beams (Stripe / Linear style) ── */

.gx-home-mesh {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--gx-sidebar-w);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gx-home .gx-shell.is-collapsed .gx-home-mesh {
  left: var(--gx-sidebar-w-collapsed);
}

.gx-home-mesh__canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

.gx-home-mesh__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 240, 49, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 240, 49, 0.09) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 95% 85% at 50% 42%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 42%, #000 15%, transparent 72%);
  opacity: 0.55;
}

.gx-home-mesh__beams {
  position: absolute;
  inset: -20% -30%;
  overflow: hidden;
}

.gx-home-mesh__beam {
  position: absolute;
  width: 140%;
  height: 38%;
  left: -20%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 240, 49, 0) 18%,
    rgba(200, 240, 49, 0.14) 50%,
    rgba(74, 222, 128, 0.08) 72%,
    transparent 100%
  );
  filter: blur(28px);
  transform: rotate(-22deg);
  opacity: 0.7;
}

.gx-home-mesh__beam--1 {
  top: 8%;
  animation: gx-beam-1 18s ease-in-out infinite alternate;
}

.gx-home-mesh__beam--2 {
  top: 38%;
  transform: rotate(-18deg);
  opacity: 0.45;
  animation: gx-beam-2 24s ease-in-out infinite alternate;
}

.gx-home-mesh__beam--3 {
  top: 62%;
  transform: rotate(-26deg);
  opacity: 0.35;
  animation: gx-beam-3 21s ease-in-out infinite alternate;
}

.gx-home-mesh__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 38%, rgba(200, 240, 49, 0.12) 0%, transparent 62%),
    radial-gradient(ellipse 40% 35% at 18% 78%, rgba(200, 240, 49, 0.18) 0%, transparent 58%),
    radial-gradient(ellipse 38% 32% at 82% 72%, rgba(52, 211, 153, 0.16) 0%, transparent 55%);
  mix-blend-mode: screen;
}

.gx-home-mesh__grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

@keyframes gx-beam-1 {
  0% { transform: rotate(-22deg) translateX(-8%); }
  100% { transform: rotate(-22deg) translateX(12%); }
}

@keyframes gx-beam-2 {
  0% { transform: rotate(-18deg) translateX(10%); }
  100% { transform: rotate(-18deg) translateX(-10%); }
}

@keyframes gx-beam-3 {
  0% { transform: rotate(-26deg) translateX(-6%); }
  100% { transform: rotate(-26deg) translateX(8%); }
}

.gx-home .gx-main::before {
  display: none !important;
}

/* ── Hero: centered like reference ── */

.gx-home-scroll {
  position: relative;
  z-index: 2;
}

.gx-home-hero-panel {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
  box-sizing: border-box;
}

.gx-home-stack {
  width: min(100%, var(--gx-hero-max)) !important;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center !important;
  text-align: center;
  animation: none !important;
}

.gx-home .gx-composer-zone {
  animation: none !important;
}

.gx-composer-ref {
  position: relative;
}

.gx-home-hero-text {
  margin-bottom: 28px;
  text-align: center;
}

.gx-home .gx-greeting {
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #f5f5f7;
  text-align: center;
  animation: gx-greeting-in 0.85s var(--gx-ease) both !important;
}

@keyframes gx-greeting-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.gx-home .gx-greeting .gx-hero-name,
.gx-hero-gradient {
  background: linear-gradient(105deg, #eaff8a 0%, #c8f031 28%, #86efac 58%, #4ade80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

.gx-home .gx-greeting-sub {
  margin: 0 auto;
  max-width: 420px;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(245, 245, 247, 0.48);
  line-height: 1.55;
  text-align: center;
}

/* ── Composer glass ── */

.gx-home .gx-composer-zone {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gx-composer-ref {
  width: 100%;
  min-height: 132px;
  border-radius: 20px !important;
  background: rgba(18, 20, 18, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  backdrop-filter: blur(32px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.15) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 64px rgba(0, 0, 0, 0.45) !important;
  position: relative;
}

.gx-composer-ref::before {
  display: none !important;
}

.gx-composer-ref:focus-within {
  border-color: rgba(200, 240, 49, 0.22) !important;
  box-shadow:
    0 0 0 1px rgba(200, 240, 49, 0.08) inset,
    0 28px 72px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(200, 240, 49, 0.06) !important;
}

.gx-composer-ref .gx-prompt {
  min-height: 72px !important;
  max-height: 140px !important;
  padding: 20px 22px 8px !important;
  font-size: 1.05rem !important;
  line-height: 1.5 !important;
  color: #f1f5f9;
  text-align: left;
}

.gx-composer-ref .gx-composer-foot {
  padding: 6px 12px 12px;
}

.gx-home .gx-attach-btn,
.gx-home .gx-mode-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(245, 245, 247, 0.5) !important;
}

.gx-home .gx-attach-btn:hover,
.gx-home .gx-mode-icon:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f5f5f7 !important;
}

.gx-home .gx-mode-icon.active {
  background: rgba(200, 240, 49, 0.12) !important;
  border-color: rgba(200, 240, 49, 0.28) !important;
  color: #c8f031 !important;
}

/* Submit — green gradient (как purple на референсе) */
.gx-send-ref {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  border: none !important;
  background: linear-gradient(135deg, #c8f031 0%, #4ade80 48%, #22c55e 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(74, 222, 128, 0.35) !important;
}

.gx-send-ref:hover:not(:disabled) {
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(74, 222, 128, 0.45) !important;
  opacity: 1 !important;
}

.gx-send-ref .icon,
.gx-send-ref .icon-sm {
  filter: brightness(1.1);
}

/* Animated placeholder */
.gx-placeholder-ghost {
  position: absolute;
  left: 22px;
  top: 20px;
  right: 22px;
  pointer-events: none;
  color: rgba(245, 245, 247, 0.32);
  font-size: 1.05rem;
  text-align: left;
  transition: opacity 0.25s;
}

.gx-composer-ref.has-value .gx-placeholder-ghost,
.gx-composer-ref:focus-within .gx-placeholder-ghost {
  opacity: 0;
}

/* + Идея pill */
.gx-home .gx-ideas-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 14, 12, 0.65);
  backdrop-filter: blur(12px);
  color: rgba(245, 245, 247, 0.55);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.gx-home .gx-ideas-pill:hover {
  border-color: rgba(200, 240, 49, 0.25);
  background: rgba(200, 240, 49, 0.08);
  color: #f5f5f7;
}

.gx-home .gx-ideas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.gx-home .gx-ideas.hidden {
  display: none !important;
}

.gx-home .gx-idea {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 245, 247, 0.65);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

.gx-home .gx-idea:hover {
  border-color: rgba(200, 240, 49, 0.3);
  background: rgba(200, 240, 49, 0.1);
  color: #f5f5f7;
}

.gx-home .gx-sidebar {
  background: rgba(5, 6, 5, 0.95) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

@media (max-width: 768px) {
  .gx-home-mesh {
    left: 0;
  }

  .gx-home .gx-main.gx-home-main {
    margin-left: 0;
    width: 100vw;
  }

  .gx-home-hero-panel {
    min-height: auto;
    padding: 88px 16px 48px;
  }

  .gx-home-mesh__grid {
    background-size: 48px 48px;
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gx-home-mesh__beam {
    animation: none !important;
  }

  .gx-home .gx-greeting {
    animation: none !important;
  }
}
