/* Bluewaresoft — Live Casino Software */

:root {
  --ink: #0b1c24;
  --ink-soft: #3a5560;
  --paper: #f4f8f9;
  --paper-deep: #e8f1f3;
  --teal: #0d9488;
  --teal-bright: #2dd4bf;
  --cyan: #0891b2;
  --navy: #062a33;
  --navy-mid: #0a3d4a;
  --line: rgba(13, 148, 136, 0.22);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-kr: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", sans-serif;
  --font-display: "Syne", var(--font-kr);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-kr);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* —— Header —— */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3.5rem);
  background: linear-gradient(
    to bottom,
    rgba(244, 248, 249, 0.92) 0%,
    rgba(244, 248, 249, 0.7) 70%,
    transparent 100%
  );
  backdrop-filter: blur(8px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--teal);
  transform: rotate(45deg);
  animation: mark-pulse 3.2s var(--ease-out) infinite;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--teal);
}

/* —— Hero —— */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 35%, rgba(45, 212, 191, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 70%, rgba(8, 145, 178, 0.12), transparent 50%),
    linear-gradient(165deg, #eaf4f6 0%, #d4e8ec 40%, #c5dde3 100%);
}

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 42, 51, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 42, 51, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, black 20%, transparent 75%);
  animation: grid-drift 28s linear infinite;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.hero-orb--a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: 8%;
  right: 8%;
  background: rgba(45, 212, 191, 0.35);
  animation: orb-float 10s var(--ease-out) infinite alternate;
}

.hero-orb--b {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  bottom: 18%;
  left: 5%;
  background: rgba(8, 145, 178, 0.28);
  animation: orb-float 12s var(--ease-out) infinite alternate-reverse;
}

.hero-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding:
    clamp(6rem, 12vh, 7.5rem)
    clamp(1.25rem, 4vw, 3.5rem)
    clamp(3rem, 8vh, 4.5rem);
}

.hero-stage {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1;
  justify-self: center;
  animation: stage-in 1.4s var(--ease-out) both;
}

.live-engine {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.engine-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.28);
}

.engine-ring--outer {
  width: 100%;
  height: 100%;
  border-color: rgba(8, 145, 178, 0.2);
  animation: ring-spin 48s linear infinite;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      rgba(45, 212, 191, 0.35) 28deg,
      transparent 70deg,
      transparent 180deg,
      rgba(8, 145, 178, 0.3) 210deg,
      transparent 260deg
    );
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

.engine-ring--mid {
  width: 78%;
  height: 78%;
  border-style: dashed;
  border-color: rgba(94, 234, 212, 0.35);
  animation: ring-spin 32s linear infinite reverse;
}

.engine-ring--inner {
  width: 58%;
  height: 58%;
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: inset 0 0 40px rgba(45, 212, 191, 0.08);
  animation: ring-pulse 4.5s var(--ease-out) infinite;
}

.engine-orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  animation: ring-spin 18s linear infinite;
}

.engine-orbit--a {
  width: 92%;
  height: 92%;
}

.engine-orbit--b {
  width: 70%;
  height: 70%;
  animation-duration: 12s;
  animation-direction: reverse;
}

.engine-orbit--c {
  width: 48%;
  height: 48%;
  animation-duration: 9s;
}

.orbit-node {
  position: absolute;
  top: 0;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.7);
}

.orbit-node--sm {
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  background: #67e8f9;
}

.engine-mesh {
  position: absolute;
  width: 72%;
  height: 72%;
  animation: mesh-breathe 6s var(--ease-out) infinite;
}

.mesh-path {
  stroke-dasharray: 6 8;
  animation: stream-flow 5s linear infinite;
}

.mesh-path--delay {
  animation-duration: 7s;
  animation-direction: reverse;
}

.engine-core {
  position: relative;
  z-index: 2;
  width: 42%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.core-glass {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.04) 40%, rgba(6, 42, 51, 0.35) 100%),
    radial-gradient(circle at 35% 30%, rgba(153, 246, 228, 0.35), transparent 55%);
  border: 1px solid rgba(153, 246, 228, 0.45);
  backdrop-filter: blur(10px);
  box-shadow:
    0 20px 50px rgba(6, 42, 51, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: core-float 5.5s var(--ease-out) infinite alternate;
}

.signal-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-bottom: 0.15rem;
}

.signal-wave span {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to top, #0d9488, #5eead4);
  animation: wave-bar 1.1s ease-in-out infinite;
}

.signal-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.signal-wave span:nth-child(2) { height: 70%; animation-delay: 0.12s; }
.signal-wave span:nth-child(3) { height: 100%; animation-delay: 0.24s; }
.signal-wave span:nth-child(4) { height: 65%; animation-delay: 0.36s; }
.signal-wave span:nth-child(5) { height: 45%; animation-delay: 0.48s; }

.live-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: live-ping 1.8s ease-out infinite;
}

.live-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  letter-spacing: 0.22em;
  color: var(--navy);
}

.live-sub {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(6, 42, 51, 0.55);
}

.engine-facet {
  position: absolute;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(153, 246, 228, 0.4);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(6, 42, 51, 0.12);
}

.engine-facet--a {
  width: 14%;
  aspect-ratio: 0.72;
  top: 12%;
  right: 8%;
  transform: rotate(18deg);
  animation: facet-drift 7s var(--ease-out) infinite alternate;
}

.engine-facet--b {
  width: 11%;
  aspect-ratio: 0.72;
  bottom: 18%;
  left: 10%;
  transform: rotate(-14deg);
  animation: facet-drift 8s var(--ease-out) infinite alternate-reverse;
}

.engine-facet--c {
  width: 9%;
  aspect-ratio: 0.72;
  top: 28%;
  left: 6%;
  opacity: 0.75;
  transform: rotate(-28deg);
  animation: facet-drift 6s var(--ease-out) infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  animation: content-rise 1s var(--ease-out) 0.15s both;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.35rem;
}

.headline {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.lede {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--ink-soft);
  max-width: 28rem;
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s var(--ease-out),
    border-color 0.25s ease;
}

.cta--primary {
  background: var(--navy);
  color: #f0fdfa;
}

.cta--primary:hover,
.cta--primary:focus-visible {
  background: var(--teal);
  transform: translateY(-2px);
}

.cta--ghost {
  border: 1.5px solid rgba(6, 42, 51, 0.28);
  color: var(--navy);
  background: transparent;
}

.cta--ghost:hover,
.cta--ghost:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

/* —— Sections —— */

.section {
  padding: clamp(4.5rem, 12vh, 7.5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.section-inner {
  max-width: 68rem;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-copy {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 36rem;
  line-height: 1.7;
}

/* Business */

.business {
  background:
    linear-gradient(180deg, #f4f8f9 0%, #eef5f7 100%);
  border-top: 1px solid var(--line);
}

.business-points {
  list-style: none;
  margin-top: 3rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.business-points li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease-out);
}

.business-points li:hover {
  padding-left: 0.5rem;
}

.point-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal);
  letter-spacing: 0.06em;
}

.point-text {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Products */

.products {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(45, 212, 191, 0.12), transparent 55%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 55%, #0c4a56 100%);
  color: #ecfeff;
}

.products .section-label {
  color: var(--teal-bright);
}

.products .section-copy {
  color: rgba(204, 251, 241, 0.72);
}

.product-list {
  list-style: none;
  counter-reset: product;
  margin-top: 3.25rem;
}

.product-item {
  counter-increment: product;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(94, 234, 212, 0.2);
  position: relative;
  transition: background 0.3s ease;
}

.product-item:last-child {
  border-bottom: 1px solid rgba(94, 234, 212, 0.2);
}

.product-item::before {
  content: counter(product, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal-bright);
  margin-bottom: 0.35rem;
}

.product-name {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: color 0.3s ease, transform 0.35s var(--ease-out);
}

.product-desc {
  font-size: 1.05rem;
  color: rgba(204, 251, 241, 0.65);
  max-width: 28rem;
}

.product-item:hover .product-name {
  color: var(--teal-bright);
  transform: translateX(6px);
}

@media (min-width: 720px) {
  .product-item {
    grid-template-columns: minmax(12rem, 1fr) 1.4fr;
    align-items: end;
    gap: 2rem;
    padding: 2rem 0;
  }

  .product-item::before {
    position: absolute;
    left: 0;
    top: 2.15rem;
  }

  .product-name {
    padding-left: 3.25rem;
  }

  .product-desc {
    text-align: right;
    justify-self: end;
  }
}

/* Contact */

.contact {
  background:
    linear-gradient(135deg, #eaf5f7 0%, #f4f8f9 45%, #dff0f3 100%);
  border-top: 1px solid var(--line);
}

.contact-inner {
  max-width: 40rem;
}

.contact-copy {
  margin-bottom: 2.5rem;
}

.address {
  display: grid;
  gap: 1.5rem;
  font-style: normal;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.address-row {
  display: grid;
  gap: 0.65rem;
}

.address-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.address-value {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink);
}

.address-link {
  width: fit-content;
  transition: color 0.25s ease;
}

.address-link:hover,
.address-link:focus-visible {
  color: var(--teal);
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.75rem clamp(1.25rem, 4vw, 3.5rem);
  background: var(--navy);
  color: rgba(204, 251, 241, 0.55);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #99f6e4;
}

.footer-copy {
  font-size: 0.85rem;
}

/* —— Motion —— */

@keyframes content-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes orb-float {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-18px, 22px);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 64px 64px;
  }
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ring-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.75;
  }
}

@keyframes mesh-breathe {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.04) rotate(2deg);
    opacity: 1;
  }
}

@keyframes core-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

@keyframes wave-bar {
  0%,
  100% {
    transform: scaleY(0.55);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes live-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

@keyframes facet-drift {
  from {
    translate: 0 0;
  }
  to {
    translate: 6px -10px;
  }
}

@keyframes stream-flow {
  to {
    stroke-dashoffset: -36;
  }
}

@keyframes mark-pulse {
  0%,
  100% {
    transform: rotate(45deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotate(45deg) scale(1.15);
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Responsive —— */

@media (max-width: 720px) {
  .hero-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.75rem;
    padding-top: clamp(5.5rem, 14vh, 7rem);
  }

  .hero-content {
    max-width: 28rem;
  }

  .hero-stage {
    width: min(68vw, 280px);
    order: -1;
  }

  .cta-group {
    justify-content: center;
  }

  .live-sub {
    display: none;
  }

  .nav {
    gap: 1rem;
  }

  .nav a {
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  .logo-text {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .cta {
    width: 100%;
  }
}
