/* Calendoor — Apple-style landing */

.page-landing {
  position: relative;
  isolation: isolate;
}

.page-landing .site-header.glass {
  --glass-bg: rgba(255, 255, 255, 0.028);
  --glass-blur: 40px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.22);
}

.page-landing .site-footer {
  border-top-color: rgba(255, 255, 255, 0.05);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.page-landing::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 78% 62% at 50% 38%,
    transparent 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.landing-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.page-landing .ambient__orb {
  filter: blur(120px);
  opacity: 0.52;
  animation-duration: 28s;
}

.page-landing .ambient__orb--1 {
  width: min(680px, 95vw);
  height: min(680px, 95vw);
  top: 4%;
  left: 50%;
  margin-left: min(-340px, -47.5vw);
  background: radial-gradient(circle, rgba(100, 210, 255, 0.58) 0%, rgba(100, 210, 255, 0.14) 52%, transparent 72%);
}

.page-landing .ambient__orb--2 {
  width: min(500px, 72vw);
  height: min(500px, 72vw);
  top: 26%;
  right: -8%;
  background: radial-gradient(circle, rgba(191, 90, 242, 0.45) 0%, rgba(191, 90, 242, 0.1) 56%, transparent 72%);
}

.page-landing .ambient__orb--3 {
  width: min(440px, 64vw);
  height: min(440px, 64vw);
  bottom: 4%;
  left: -6%;
  background: radial-gradient(circle, rgba(255, 100, 130, 0.3) 0%, rgba(255, 100, 130, 0.08) 56%, transparent 72%);
}

.page-landing #main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem) var(--space-lg) var(--space-3xl);
  position: relative;
}

.landing-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.landing-backdrop__spotlight {
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(560px, 92vw);
  height: min(560px, 92vw);
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(100, 210, 255, 0.26) 0%,
    rgba(100, 210, 255, 0.1) 34%,
    rgba(191, 90, 242, 0.05) 56%,
    transparent 72%
  );
  filter: blur(10px);
  animation: landing-spotlight 16s var(--ease-out) infinite alternate;
}

.landing-backdrop__ring {
  position: absolute;
  top: 14%;
  left: 50%;
  width: min(300px, 54vw);
  height: min(300px, 54vw);
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 100px rgba(100, 210, 255, 0.14),
    inset 0 0 72px rgba(100, 210, 255, 0.05);
  opacity: 0.75;
}

.landing-backdrop__beam {
  position: absolute;
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.landing-backdrop__beam--left {
  top: 42%;
  left: -18%;
  background: rgba(100, 210, 255, 0.22);
}

.landing-backdrop__beam--right {
  top: 48%;
  right: -16%;
  background: rgba(191, 90, 242, 0.18);
}

@keyframes landing-spotlight {
  from {
    transform: translateX(-50%) scale(1);
    opacity: 0.82;
  }
  to {
    transform: translateX(-50%) scale(1.1);
    opacity: 1;
  }
}

.landing {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.landing__logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.75rem;
  height: 5.75rem;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-xl);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.11),
    0 0 56px rgba(100, 210, 255, 0.3),
    0 24px 48px rgba(0, 0, 0, 0.38);
  animation: landing-logo-float 8s var(--ease-out) infinite alternate;
}

.landing__logo-wrap::before {
  content: "";
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 210, 255, 0.5) 0%, transparent 68%);
  filter: blur(24px);
  z-index: -1;
  opacity: 0.8;
}

.landing__logo-wrap::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(100, 210, 255, 0.4) 42%,
    rgba(191, 90, 242, 0.28) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes landing-logo-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-7px);
  }
}

.landing__logo {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(100, 210, 255, 0.38));
}

.landing__hero {
  margin-bottom: var(--space-xl);
}

.landing__eyebrow {
  margin: 0 0 var(--space-lg);
}

.landing__badge {
  background: rgba(100, 210, 255, 0.08);
  border-color: rgba(100, 210, 255, 0.24);
  box-shadow: 0 0 24px rgba(100, 210, 255, 0.08);
}

.landing__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0 0 var(--space-lg);
  text-wrap: balance;
}

.landing__title-line {
  display: block;
}

.landing__title-prefix {
  color: var(--color-text);
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.landing__title-line--suffix {
  color: rgba(255, 255, 255, 0.96);
  margin-top: 0.04em;
}

.landing__title-accent {
  margin-left: 0.14em;
  background: linear-gradient(
    128deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.94) 32%,
    rgba(140, 220, 255, 0.98) 68%,
    rgba(100, 210, 255, 1) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 32px rgba(100, 210, 255, 0.35));
}

.landing__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: -0.015em;
  line-height: 1.58;
  max-width: 30rem;
  margin: 0 auto;
  text-wrap: balance;
}

.landing__platforms-wrap {
  display: inline-flex;
  margin: 0 auto var(--space-xl);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-capsule);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 48px rgba(100, 210, 255, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.3);
}

.landing__platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.landing__platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0.45rem;
  border-radius: var(--radius-capsule);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.landing__platform:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 24px rgba(100, 210, 255, 0.2);
  border-color: rgba(100, 210, 255, 0.32);
  background-color: rgba(255, 255, 255, 0.06);
}

.landing__platform .gc-platform-mark-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.landing__platform .gc-platform-mark--img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.landing__platform .gc-platform-mark-fallback {
  display: none;
  align-items: center;
  justify-content: center;
}

.landing__platform .gc-platform-mark-wrap.is-fallback .gc-platform-mark--img {
  display: none;
}

.landing__platform .gc-platform-mark-wrap.is-fallback .gc-platform-mark-fallback {
  display: flex;
}

.landing__platform .gc-platform-mark-fallback svg {
  width: 1.75rem;
  height: auto;
}

.landing__cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.landing__actions-wrap {
  display: inline-flex;
  padding: 0.5rem;
  border-radius: var(--radius-capsule);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 40px rgba(100, 210, 255, 0.08),
    0 20px 48px rgba(0, 0, 0, 0.32);
}

.landing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.landing__cta {
  position: relative;
  min-width: 9.5rem;
  padding: 0.72rem 1.35rem;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.012em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.24);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    background-color var(--transition-fast);
}

.landing__cta:hover {
  color: #fff;
  transform: translateY(-2px);
}

.landing__cta--primary {
  color: #fff;
  min-width: 10.5rem;
  background-image: linear-gradient(
    168deg,
    rgba(100, 210, 255, 0.24) 0%,
    rgba(100, 210, 255, 0.12) 42%,
    rgba(191, 90, 242, 0.16) 100%
  );
  border-color: rgba(100, 210, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 40px rgba(100, 210, 255, 0.24),
    0 10px 28px rgba(0, 0, 0, 0.3);
}

.landing__cta--primary::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(100, 210, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.38) 46%,
    rgba(191, 90, 242, 0.58) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.88;
}

.landing__cta--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%);
  pointer-events: none;
}

.landing__cta--primary:hover {
  border-color: rgba(100, 210, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 56px rgba(100, 210, 255, 0.34),
    0 14px 36px rgba(0, 0, 0, 0.34);
}

.landing__cta:not(.landing__cta--primary):hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 28px rgba(255, 255, 255, 0.07),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.landing__cta-hint {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-subtle);
}

/* Light theme */
html[data-theme="light"] .page-landing::after {
  background: radial-gradient(
    ellipse 78% 62% at 50% 38%,
    transparent 0%,
    transparent 46%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

html[data-theme="light"] .landing-noise {
  opacity: 0.025;
}

html[data-theme="light"] .page-landing .ambient__orb {
  opacity: 0.3;
}

html[data-theme="light"] .landing__title-prefix,
html[data-theme="light"] .landing__title-line--suffix {
  color: var(--color-text);
  text-shadow: none;
}

html[data-theme="light"] .landing__title-accent {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 120, 180, 0.96) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: none;
}

html[data-theme="light"] .landing__subtitle,
html[data-theme="light"] .landing__cta-hint {
  color: var(--color-text-muted);
}

html[data-theme="light"] .landing__cta {
  color: rgba(0, 0, 0, 0.82);
}

html[data-theme="light"] .landing__cta--primary {
  color: rgba(0, 0, 0, 0.9);
}

@media (max-width: 640px) {
  .landing__title {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  .landing__actions-wrap {
    width: 100%;
    max-width: 20rem;
    padding: 0.45rem;
  }

  .landing__actions {
    flex-direction: column;
    width: 100%;
  }

  .landing__cta {
    width: 100%;
    min-width: 0;
  }

  .landing__platforms-wrap {
    max-width: calc(100% - var(--space-md));
    padding-inline: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing__logo-wrap,
  .landing-backdrop__spotlight,
  .page-landing .ambient__orb {
    animation: none;
  }

  .landing__cta:hover,
  .landing__platform:hover {
    transform: none;
  }
}
