/* Lucidium home — search-first landing, identitas brand */
:root {
  --g-bg: #f4f7fb;
  --g-gray: #eef2f7;
  --g-gray-2: #e2e8f0;
  --g-text: #0f172a;
  --g-text-2: #475569;
  --g-text-3: #64748b;
  --g-link: #004d99;
  --g-blue: #004d99;
  --g-blue-hover: #003366;
  --g-blue-soft: #e8f2fc;
  --g-green: #059669;
  --g-red: #dc2626;
  --g-font: "Inter", system-ui, -apple-system, sans-serif;
  --g-font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --g-wrap: min(584px, calc(100% - 2rem));
  --g-wrap-wide: min(960px, calc(100% - 2rem));
  --g-shadow: 0 8px 32px rgba(0, 77, 153, 0.12);
  --g-shadow-soft: 0 2px 12px rgba(15, 23, 42, 0.06);
  --g-radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--g-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 77, 153, 0.07), transparent),
    linear-gradient(180deg, #f8fafc 0%, var(--g-bg) 100%);
  color: var(--g-text);
  font-family: var(--g-font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Ambient — soft orbs, bukan dot grid stalkr */
.g-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.g-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: g-float 18s ease-in-out infinite;
}

.g-ambient__orb--1 {
  width: 420px;
  height: 420px;
  top: -8%;
  left: -6%;
  background: rgba(0, 77, 153, 0.14);
  animation-delay: 0s;
}

.g-ambient__orb--2 {
  width: 360px;
  height: 360px;
  top: 20%;
  right: -10%;
  background: rgba(99, 102, 241, 0.1);
  animation-delay: -6s;
  animation-duration: 22s;
}

.g-ambient__orb--3 {
  width: 280px;
  height: 280px;
  bottom: 10%;
  left: 30%;
  background: rgba(14, 165, 233, 0.08);
  animation-delay: -12s;
  animation-duration: 20s;
}

@keyframes g-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.04); }
  66% { transform: translate(-16px, 12px) scale(0.96); }
}

.g-header,
.g-main,
.g-foot {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
}

img {
  display: block;
}

/* Header — tipis seperti Google */
.g-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  font-size: 13px;
}

.g-header__left {
  display: none;
  gap: 1.25rem;
}

.g-header__left a {
  color: var(--g-text-2);
}

.g-header__left a:hover {
  color: var(--g-text);
  text-decoration: none;
}

.g-header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.g-header__link {
  color: var(--g-text);
  padding: 0.35rem 0.5rem;
}

.g-header__link:hover {
  text-decoration: none;
  background: var(--g-gray);
  border-radius: 4px;
}

.g-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.35rem;
  background: var(--g-blue);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--g-font-display);
  text-decoration: none;
}

.g-header__cta:hover {
  background: var(--g-blue-hover);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 77, 153, 0.28);
}

@media (min-width: 768px) {
  .g-header__left {
    display: flex;
  }
}

/* Main */
.g-main {
  flex: 1;
}

/* Hero — centered seperti google.com */
.g-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5vh 1rem 1.5rem;
  min-height: 58vh;
  justify-content: center;
}

.g-logo__mark {
  animation: g-logo-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes g-logo-pop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.g-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.g-logo:hover {
  text-decoration: none;
}

.g-logo__word {
  font-family: var(--g-font-display);
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--g-blue);
  background: linear-gradient(135deg, #004d99 0%, #0066cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.g-logo__text {
  display: none;
}

.g-tagline {
  margin: 0 0 1.75rem;
  font-size: 15px;
  color: var(--g-text-2);
  text-align: center;
  max-width: 32rem;
  line-height: 1.55;
}

.g-tagline__swap {
  display: inline-block;
  color: var(--g-blue);
  font-weight: 600;
  font-family: var(--g-font-display);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.g-tagline__swap.is-out {
  opacity: 0;
  transform: translateY(6px);
}

/* Stagger entrance */
.g-enter {
  opacity: 0;
  transform: translateY(14px);
  animation: g-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.g-enter--1 { animation-delay: 0.05s; }
.g-enter--2 { animation-delay: 0.12s; }
.g-enter--3 { animation-delay: 0.2s; }
.g-enter--4 { animation-delay: 0.32s; }

@keyframes g-rise {
  to { opacity: 1; transform: none; }
}

/* Search box */
.g-search {
  width: 100%;
  max-width: var(--g-wrap);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.g-search__box {
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--g-gray-2);
  border-radius: var(--g-radius);
  background: #fff;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.g-search__box:hover,
.g-search__box:focus-within {
  border-color: rgba(0, 77, 153, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 77, 153, 0.1), var(--g-shadow-soft);
}

.g-search__icon {
  flex-shrink: 0;
  margin-right: 12px;
}

.g-search__box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--g-text);
}

.g-search__box input::placeholder {
  color: var(--g-text-3);
}

.g-search__clear {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}

.g-search__clear:hover {
  background: var(--g-gray);
}

.g-search__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.85rem;
}

.g-search__icon path {
  fill: var(--g-text-3);
}

.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  height: 40px;
  border: 1px solid var(--g-gray-2);
  border-radius: 10px;
  background: #fff;
  color: var(--g-text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.g-btn:hover {
  border-color: rgba(0, 77, 153, 0.25);
  box-shadow: var(--g-shadow-soft);
  color: var(--g-text);
}

.g-btn--primary {
  background: var(--g-blue);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
  font-family: var(--g-font-display);
}

.g-btn--primary:hover {
  background: var(--g-blue-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 77, 153, 0.28);
}

.g-btn--demo {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--g-gray-2);
  color: var(--g-blue);
}

.g-btn--demo:hover {
  background: var(--g-blue-soft);
  text-decoration: none;
  color: var(--g-blue-hover);
}

.g-btn--fill {
  background: var(--g-blue);
  color: #fff;
  border-color: transparent;
}

.g-btn--fill:hover {
  background: var(--g-blue-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 77, 153, 0.28);
}

.g-search__note {
  margin: 1.25rem 0 0;
  font-size: 12px;
  color: var(--g-text-3);
  text-align: center;
}

.g-trends {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.g-trend {
  padding: 6px 14px;
  border: 1px solid var(--g-gray-2);
  border-radius: 999px;
  background: #fff;
  color: var(--g-blue);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.g-trend:hover {
  background: var(--g-blue-soft);
  border-color: rgba(0, 77, 153, 0.2);
  text-decoration: none;
}

/* Live preview panel — scroll vertikal, layout sendiri */
.g-live {
  width: 100%;
  max-width: var(--g-wrap);
  margin-top: 2.5rem;
  padding: 14px 16px 16px;
  border: 1px solid rgba(218, 220, 224, 0.9);
  border-radius: var(--g-radius);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--g-shadow-soft);
}

.g-live__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--g-text-3);
}

.g-live__label {
  font-weight: 500;
  color: var(--g-text-2);
}

.g-live__time {
  margin-left: auto;
  font-size: 11px;
}

.g-live__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g-green);
  flex-shrink: 0;
  animation: g-pulse 2s ease-in-out infinite;
}

@keyframes g-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(24, 128, 56, 0.4); }
  50% { opacity: 0.75; box-shadow: 0 0 0 6px rgba(24, 128, 56, 0); }
}

.g-live__viewport {
  height: 132px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.g-live__track {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: g-scroll 32s linear infinite;
}

.g-live__viewport:hover .g-live__track {
  animation-play-state: paused;
}

@keyframes g-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.g-live__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--g-gray);
  font-size: 13px;
  line-height: 1.35;
}

.g-live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.g-live__dot--positif { background: var(--g-green); }
.g-live__dot--netral { background: #9aa0a6; }
.g-live__dot--negatif { background: var(--g-red); }

.g-live__meta {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--g-text-3);
  min-width: 4.5rem;
}

.g-live__title {
  margin: 0;
  color: var(--g-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.g-live__footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--g-gray-2);
}

.g-live__counts {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 12px;
  color: var(--g-text-3);
  margin-bottom: 8px;
}

.g-live__count em {
  font-style: normal;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.g-live__count--pos em { color: var(--g-green); }
.g-live__count--neu em { color: var(--g-text-2); }
.g-live__count--neg em { color: var(--g-red); }

.g-live__meter {
  display: flex;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--g-gray-2);
}

.g-live__seg {
  height: 100%;
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.g-live__seg--pos { background: var(--g-green); }
.g-live__seg--neu { background: #9aa0a6; }
.g-live__seg--neg { background: var(--g-red); }

.g-live.is-ready .g-live__seg--pos { width: var(--w-pos, 33%); }
.g-live.is-ready .g-live__seg--neu { width: var(--w-neu, 34%); }
.g-live.is-ready .g-live__seg--neg { width: var(--w-neg, 33%); }

.g-block--intro {
  padding-top: 1rem;
}

/* Demo lengkap banner */
.g-demo-banner {
  max-width: var(--g-wrap-wide);
  margin: 0 auto 1rem;
  padding: 0 1.25rem;
}

.g-demo-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #004d99 0%, #0066cc 50%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 77, 153, 0.22);
}

@media (min-width: 640px) {
  .g-demo-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.g-demo-banner__kicker {
  margin: 0 0 0.35rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.g-demo-banner__copy h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  max-width: 28rem;
}

.g-demo-banner__copy p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
}

.g-demo-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  background: #fff;
  color: var(--g-blue);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}

.g-demo-banner__cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.g-block__head {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.g-block__head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--g-text);
  line-height: 1.3;
}

.g-kicker {
  margin: 0 0 0.5rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g-blue);
}

/* Content blocks */
.g-block {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.g-block--gray {
  background: var(--g-gray);
  max-width: none;
}

.g-block--gray > * {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.g-block h2 {
  margin: 0 0 1.5rem;
  font-size: 20px;
  font-weight: 600;
  font-family: var(--g-font-display);
  color: var(--g-text);
  text-align: center;
}

.g-block__head + .g-cards,
.g-block__head + .g-features,
.g-block__head + .g-pricing,
.g-block__head + .g-faq {
  margin-top: 0;
}

.g-block__head h2 {
  text-align: center;
  font-family: var(--g-font-display);
  font-weight: 600;
}

.g-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .g-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .g-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.g-card {
  padding: 1.35rem 1.25rem;
  background: #fff;
  border: 1px solid var(--g-gray-2);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}

.g-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(60, 64, 67, 0.1);
}

.g-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  background: var(--g-blue-soft);
  color: var(--g-blue);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--g-font-display);
}

.g-block--gray .g-card {
  background: #fff;
}

.g-card h3 {
  margin: 0 0 0.5rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--g-text);
}

.g-card p {
  margin: 0;
  font-size: 13px;
  color: var(--g-text-2);
  line-height: 1.55;
}

/* Feature grid */
.g-features {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .g-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .g-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.g-feature {
  position: relative;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--g-gray-2);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow-soft);
  transition: transform 0.2s;
}

.g-feature:hover {
  transform: translateY(-2px);
}

.g-feature--locked {
  opacity: 0.95;
}

.g-feature__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--g-blue-soft);
  color: var(--g-blue);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.g-feature__emoji {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.g-feature h3 {
  margin: 0 0 0.35rem;
  font-size: 15px;
  font-weight: 500;
}

.g-feature p {
  margin: 0;
  font-size: 13px;
  color: var(--g-text-2);
  line-height: 1.5;
}

.g-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.g-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--g-gray-2);
  font-size: 14px;
  color: var(--g-text-2);
}

.g-list li:last-child {
  border-bottom: none;
}

.g-list strong {
  color: var(--g-text);
  font-weight: 500;
}

/* Pricing */
.g-pricing {
  display: grid;
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 560px) {
  .g-pricing {
    grid-template-columns: 1fr 1fr;
  }
}

.g-plan {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--g-gray-2);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--g-shadow-soft);
  text-align: center;
  position: relative;
}

.g-plan--pro {
  border-color: var(--g-blue);
  box-shadow: 0 4px 24px rgba(0, 77, 153, 0.12);
}

.g-plan__badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--g-blue-soft);
  color: var(--g-blue);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.g-plan h3 {
  margin: 0 0 0.25rem;
  font-size: 16px;
  font-weight: 500;
}

.g-plan__price {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--g-text);
  letter-spacing: -0.02em;
}

.g-plan__sub {
  margin: 0 0 1.25rem;
  font-size: 12px;
  color: var(--g-text-3);
}

.g-plan ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 13px;
  color: var(--g-text-2);
}

.g-plan ul li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.g-plan ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--g-text-3);
}

.g-plan .g-btn {
  width: 100%;
}

/* FAQ */
.g-faq {
  max-width: 560px;
  margin: 0 auto;
}

.g-faq details {
  border-bottom: 1px solid var(--g-gray-2);
}

.g-faq summary {
  padding: 1rem 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--g-text);
  cursor: pointer;
  list-style: none;
}

.g-faq summary::-webkit-details-marker {
  display: none;
}

.g-faq p {
  margin: 0 0 1rem;
  font-size: 13px;
  color: var(--g-text-2);
  line-height: 1.6;
}

.g-faq p a {
  color: var(--g-blue);
}

.g-faq p a:hover {
  text-decoration: underline;
}

/* Footer — gaya Google */
.g-foot {
  margin-top: auto;
  background: var(--g-gray);
  color: var(--g-text-2);
  font-size: 14px;
}

.g-foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--g-gray-2);
}

.g-foot__row--top {
  border-top: none;
  padding-top: 1rem;
}

.g-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.g-foot__nav a {
  color: var(--g-text-2);
}

.g-foot__nav a:hover {
  color: var(--g-text);
}

.g-foot__copy {
  margin: 0;
  padding: 0 1.5rem 1rem;
  font-size: 12px;
  color: var(--g-text-3);
  text-align: center;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .g-enter {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .g-logo__mark {
    animation: none;
  }
  .g-ambient__orb {
    animation: none;
  }
  .g-live__track {
    animation: none;
  }
  .g-live__pulse {
    animation: none;
  }
  .g-tagline__swap {
    transition: none;
  }
  .g-live__seg {
    transition: none;
  }
}

/* ── Gate prospek (blur + modal email/Google) ── */
body.g-gate-open {
  overflow: hidden;
}

body.g-gate-open .g-header,
body.g-gate-open .g-main,
body.g-gate-open .g-foot,
body.g-gate-open .g-ambient {
  filter: blur(10px) saturate(0.92);
  transform: scale(1.01);
  transition: filter 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  user-select: none;
}

.g-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.g-gate[hidden] {
  display: none !important;
}

.g-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
  animation: g-gate-fade 0.3s ease;
}

.g-gate__dialog {
  position: relative;
  width: min(400px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(32, 33, 36, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  animation: g-gate-rise 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes g-gate-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes g-gate-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.g-gate__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--g-text-3);
}

.g-gate__close:hover {
  background: var(--g-gray);
}

.g-gate__mark {
  display: block;
  margin: 0 auto 1rem;
}

.g-gate__title {
  margin: 0 0 0.35rem;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--g-text);
  font-family: var(--g-font-display);
}

.g-gate__sub {
  margin: 0 0 1.35rem;
  font-size: 14px;
  color: var(--g-text-2);
  line-height: 1.5;
}

.g-gate__sub strong {
  color: var(--g-text);
  font-weight: 600;
}

.g-gate__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.g-gate__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--g-gray-2);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--g-text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.g-gate__input:focus {
  border-color: var(--g-blue);
  box-shadow: 0 0 0 3px rgba(0, 77, 153, 0.15);
}

.g-gate__input::placeholder {
  color: #9aa0a6;
}

.g-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.g-gate__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.g-gate__btn--primary {
  background: var(--g-blue);
  color: #fff;
  font-weight: 600;
  font-family: var(--g-font-display);
}

.g-gate__btn--primary:hover:not(:disabled) {
  background: var(--g-blue-hover);
}

.g-gate__or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--g-text-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.g-gate__or::before,
.g-gate__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--g-gray-2);
}

.g-gate__btn--google {
  background: #fff;
  color: var(--g-text);
  border: 1px solid var(--g-gray-2);
}

.g-gate__btn--google:hover:not(:disabled) {
  background: var(--g-gray);
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
}

.g-gate__terms {
  margin: 1rem 0 0;
  font-size: 11px;
  color: var(--g-text-3);
  line-height: 1.5;
}

.g-gate__error {
  margin: 0.75rem 0 0;
  font-size: 13px;
  color: var(--g-red);
}

.g-gate__error[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.g-gate-open .g-header,
  body.g-gate-open .g-main,
  body.g-gate-open .g-foot,
  body.g-gate-open .g-ambient {
    transition: none;
  }
  .g-gate__dialog,
  .g-gate__backdrop {
    animation: none;
  }
}
