

/* ============================================================
   SWARNOLATA.COM — HOMEPAGE HERO
   Original VIBGYOR ring and central logo design retained.
   Site-specific stylesheet.
   ============================================================ */

@property --hs-30__a {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ------------------------------------------------------------
   Main hero
   Exactly three palette stops: base, alternate and accent.
   ------------------------------------------------------------ */

.hs-30 {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);

  width: 100%;
  min-height: 100svh;
  padding: clamp(1.75rem, 5vw, 3.5rem);

  color: oklch(1 0 0);

  background: conic-gradient(
    from 220deg,
    var(--s-base-50) 0deg,
    var(--s-alt-50) 120deg,
    var(--s-acc-50) 240deg
  );

  box-sizing: border-box;
}

/* ------------------------------------------------------------
   Left: logo stage
   ------------------------------------------------------------ */

.hs-30__stage {
  position: relative;

  display: grid;
  place-items: center;

  width: 100%;
  min-height: 320px;
}

/* ------------------------------------------------------------
   VIBGYOR ring
   ------------------------------------------------------------ */

.hs-30__ring {
  position: relative;

  width: 320px;
  height: 320px;

  border-radius: 50%;

  opacity: 0;
  animation: hs-30-ring-fade 800ms ease-out forwards;
}

.hs-30__ring::before {
  position: absolute;
  inset: 0;

  content: '';

  border-radius: inherit;

  background: conic-gradient(
    from var(--hs-30__a),
    #9400d3 0%,
    #4b0082 17%,
    #0000ff 33%,
    #00ff00 50%,
    #ffff00 67%,
    #ff7f00 83%,
    #ff0000 95%,
    #9400d3 100%
  );

  filter: blur(8px);

  -webkit-mask: radial-gradient(
    circle,
    transparent 96px,
    #000 100px,
    #000 158px,
    transparent 162px
  );

  mask: radial-gradient(
    circle,
    transparent 96px,
    #000 100px,
    #000 158px,
    transparent 162px
  );
}

/* JavaScript adds this class to start or restart the rotation. */

.hs-30__ring.is-spinning::before {
  animation: hs-30-spin 12s linear 1 both;
}

/* ------------------------------------------------------------
   Central logo
   ------------------------------------------------------------ */

.hs-30__core {
  position: absolute;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 200px;
  height: 200px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    oklch(0.45 0.20 300) 0%,
    oklch(0.40 0.20 260) 50%,
    oklch(0.30 0.18 300) 100%
  );

  box-shadow: 0 0 80px oklch(0.15 0.04 285 / 45%);

  opacity: 0;
  animation: hs-30-core-arrive 800ms ease-out 500ms forwards;
}

.hs-30__svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ------------------------------------------------------------
   Right: glass content card
   ------------------------------------------------------------ */

.hs-30__inner {
  position: relative;
  z-index: 1;

  min-width: 0;
  padding: clamp(1.5rem, 3vw, 3rem);

  color: oklch(1 0 0);

  background: oklch(0.18 0.035 285 / 76%);
  border: 1px solid oklch(1 0 0 / 28%);
  border-radius: 1.25rem;

  box-shadow: 0 1.25rem 3.5rem oklch(0.12 0.03 285 / 25%);

  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hs-30__eye {
  display: inline-block;

  margin-bottom: 1.1rem;
  padding: 0.35rem 0.75rem;

  color: oklch(0.95 0.04 90);

  background: oklch(1 0 0 / 10%);
  border: 1px solid oklch(1 0 0 / 30%);
  border-radius: 999px;

  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.hs-30 h2 {
  margin: 0 0 1rem;

  color: oklch(1 0 0);

  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;

  overflow-wrap: break-word;
}

.hs-30 h2 em {
  color: var(--s-acc-50);
  font-style: italic;
}

.hs-30 h3 {
  margin: 0 0 1rem;

  color: oklch(0.96 0.025 285);

  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
}

.hs-30 p {
  max-width: 42rem;
  margin: 0 0 1.75rem;

  color: oklch(0.92 0.015 285);

  font-size: 1rem;
  line-height: 1.65;
}

/* ------------------------------------------------------------
   Call to action
   ------------------------------------------------------------ */

.hs-30__cta {
  display: inline-block;

  padding: 0.8rem 1.6rem;

  color: var(--s-color-acc-ink, oklch(0.15 0.02 285));

  background: var(--s-acc-50);

  border: 1px solid oklch(1 0 0 / 20%);
  border-radius: 999px;

  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;

  box-shadow: 0 0.8rem 2rem oklch(0.12 0.03 285 / 25%);

  transition: transform 160ms ease;
}

.hs-30__cta:hover {
  transform: translateY(-2px);
}

.hs-30__cta:focus-visible {
  outline: 3px solid oklch(1 0 0);
  outline-offset: 4px;
}

/* ------------------------------------------------------------
   Animation keyframes
   ------------------------------------------------------------ */

@keyframes hs-30-ring-fade {
  to {
    opacity: 1;
  }
}

@keyframes hs-30-spin {
  to {
    --hs-30__a: 360deg;
  }
}

@keyframes hs-30-core-arrive {
  from {
    opacity: 0;
    transform: scale(0.92);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* ------------------------------------------------------------
   Responsive layout
   ------------------------------------------------------------ */

@media (max-width: 720px) {
  .hs-30 {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .hs-30__stage {
    min-height: 240px;
  }

  .hs-30__ring {
    width: 200px;
    height: 200px;
  }

  .hs-30__ring::before {
    -webkit-mask: radial-gradient(
      circle,
      transparent 60px,
      #000 64px,
      #000 98px,
      transparent 102px
    );

    mask: radial-gradient(
      circle,
      transparent 60px,
      #000 64px,
      #000 98px,
      transparent 102px
    );
  }

  .hs-30__core {
    width: 130px;
    height: 130px;
  }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .hs-30__ring {
    opacity: 1;
    animation: none;
  }

  .hs-30__ring::before {
    animation: none !important;
  }

  .hs-30__core {
    opacity: 1;
    filter: none;
    animation: none;
  }

  .hs-30__cta {
    transition: none;
  }
}
