/* KubemSoft — Coming Soon + Legal (responsive) */

:root {
  --bg: #050508;
  --text: #f4f6fb;
  --text-muted: #9aa3b5;
  --purple: #9d50bb;
  --cyan: #00d2ff;
  --gradient: linear-gradient(135deg, #9d50bb 0%, #6b6fe8 40%, #2ba8f0 70%, #00d2ff 100%);
  --gradient-h: linear-gradient(90deg, #9d50bb 0%, #5b8def 50%, #00d2ff 100%);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --font-script: "Caveat", cursive;
  --accent-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.55rem);

  --page-pad-x: clamp(1.15rem, 4.5vw, 3rem);
  --page-pad-y: clamp(1.1rem, 3.5vh, 2.25rem);
  --content-gap: clamp(0.7rem, 1.8vh, 1.25rem);
  --logo-w: clamp(140px, 32vw, 240px);
  --logo-h: clamp(100px, 18vh, 170px);
  --brand-gap: clamp(1.35rem, 4.5vh, 2.75rem);
  --title-size: clamp(1.15rem, 0.9rem + 1vw, 1.55rem);
  --text-size: clamp(0.78rem, 0.72rem + 0.3vw, 0.95rem);
  --tagline-size: clamp(0.52rem, 0.48rem + 0.25vw, 0.68rem);
  --icon-size: clamp(24px, 3vw, 32px);
  --service-min: clamp(48px, 9vw, 72px);
  --service-gap: clamp(1.1rem, 3.2vw, 2.75rem);
  --footer-mail: clamp(0.7rem, 0.66rem + 0.2vw, 0.82rem);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-home {
  overflow: hidden;
}

.page-legal {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
  height: auto;
  font-family: var(--font-body);
}

/* Atmosphere */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__glow {
  position: absolute;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  animation: drift 14s ease-in-out infinite alternate;
}

.atmosphere__glow--left {
  top: -18%;
  left: -12%;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
}

.atmosphere__glow--right {
  right: -10%;
  bottom: -20%;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  animation-delay: -6s;
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(180, 200, 230, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 200, 230, 0.12) 1px, transparent 1px);
  background-size: clamp(48px, 8vw, 72px) clamp(48px, 8vw, 72px);
  /* Logo + orta alan çevresinde yoğun; kenarlarda kaybolur */
  mask-image: radial-gradient(
    ellipse 48% 42% at 50% 38%,
    black 0%,
    black 38%,
    rgba(0, 0, 0, 0.45) 62%,
    transparent 78%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 48% 42% at 50% 38%,
    black 0%,
    black 38%,
    rgba(0, 0, 0, 0.45) 62%,
    transparent 78%
  );
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4%, 6%) scale(1.08); }
}

/* Home shell */

.coming-soon {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding:
    calc(var(--page-pad-y) + var(--safe-top))
    var(--page-pad-x)
    calc(var(--page-pad-y) + var(--safe-bottom));
  text-align: center;
  overflow: hidden;
}

/* Brand / logo — ayrı üst blok */

.brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.55rem, 1.4vh, 0.95rem);
  width: 100%;
  margin-bottom: var(--brand-gap);
  padding-top: clamp(0.75rem, 2.5vh, 1.75rem);
}

.brand__heading {
  position: relative;
  margin: 0;
  line-height: 0;
  padding: clamp(0.85rem, 2.8vh, 1.75rem) clamp(1rem, 4vw, 2.25rem);
  opacity: 0;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.brand__heading::before,
.brand__heading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.brand__heading::before {
  width: clamp(170px, 40vw, 300px);
  height: clamp(170px, 40vw, 300px);
  background: radial-gradient(circle, rgba(0, 210, 255, 0.18) 0%, rgba(91, 141, 239, 0.12) 32%, rgba(157, 80, 187, 0.14) 48%, transparent 72%);
  filter: blur(30px);
  animation: pulse-glow-outer 4.2s ease-in-out infinite;
}

.brand__heading::after {
  width: clamp(110px, 28vw, 200px);
  height: clamp(110px, 28vw, 200px);
  background: var(--gradient);
  filter: blur(44px);
  opacity: 0.3;
  animation: pulse-glow 3.5s ease-in-out infinite;
}

.brand__logo {
  width: var(--logo-w);
  max-width: 100%;
  max-height: var(--logo-h);
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

.brand__tagline {
  font-size: var(--tagline-size);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.85;
  color: var(--text-muted);
  text-transform: uppercase;
  max-width: min(36rem, 94vw);
  opacity: 0;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.brand__sep {
  display: inline-block;
  margin: 0 0.55em;
  color: rgba(154, 163, 181, 0.55);
  letter-spacing: 0;
  font-weight: 300;
}

.brand__ios {
  text-transform: none;
  letter-spacing: 0.14em;
}

/* Orta alan — logodan ayrı */

.coming-soon__content {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--content-gap);
  padding-top: clamp(1rem, 2.5vh, 1.75rem);
}

/* Launch */

.launch {
  width: min(30rem, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.7rem, 1.5vh, 1.05rem);
  flex-shrink: 0;
  opacity: 0;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.launch__text {
  font-size: var(--text-size);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 36em;
}

.launch__accent {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: var(--accent-size);
  line-height: 1.3;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #e8ecf5 0%, #c084fc 28%, #9d50bb 48%, #38bdf8 78%, #00d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 8px rgba(157, 80, 187, 0.45))
    drop-shadow(0 0 14px rgba(0, 210, 255, 0.28));
}

/* Services */

.services {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--service-gap);
  width: 100%;
  max-width: 640px;
  flex-shrink: 0;
  margin-top: clamp(1.1rem, 3.2vh, 2rem);
  margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
  opacity: 0;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.62s forwards;
}

.services__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: var(--service-min);
  flex: 0 1 auto;
  transition: transform 0.35s ease;
}

.services__item:hover {
  transform: translateY(-3px);
}

.services__icon {
  width: var(--icon-size);
  height: var(--icon-size);
  display: grid;
  place-items: center;
}

.services__icon svg {
  width: 100%;
  height: 100%;
}

.services__label {
  font-size: clamp(0.6rem, 0.56rem + 0.22vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Status badge — sabit çerçeve + kayan çizgi */

@property --badge-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.42rem 0.95rem 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(8, 8, 14, 0.96);
  position: relative;
  isolation: isolate;
  font-family: var(--font-body);
  font-weight: 400;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.08), 0 0 28px rgba(157, 80, 187, 0.08);
}

/* Sabit mor → cyan çerçeve */
.status-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, #9d50bb 0%, #5b8def 45%, #00d2ff 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;
  z-index: 0;
}

/* Yazı etrafında kayan çizgi (saat yönü tersi) */
.status-badge__orbit {
  --badge-angle: 0deg;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  z-index: 1;
  background: conic-gradient(
    from var(--badge-angle),
    transparent 0deg,
    transparent 310deg,
    rgba(0, 210, 255, 0.05) 325deg,
    rgba(56, 189, 248, 0.55) 340deg,
    #e0f7ff 348deg,
    #00d2ff 354deg,
    rgba(157, 80, 187, 0.7) 358deg,
    transparent 360deg
  );
  -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;
  animation: badge-spin-ccw 2.8s linear infinite;
  filter: drop-shadow(0 0 4px rgba(0, 210, 255, 0.55));
}

.status-badge--home {
  font-size: inherit;
}

.status-badge__dot,
.status-badge__text {
  position: relative;
  z-index: 2;
}

.status-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow:
    0 0 0 3px rgba(0, 210, 255, 0.16),
    0 0 10px rgba(0, 210, 255, 0.85),
    0 0 18px rgba(0, 210, 255, 0.45);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-badge__text {
  font-size: clamp(0.72rem, 0.68rem + 0.25vw, 0.86rem);
  font-weight: 400;
  color: #e4e8f2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@keyframes badge-spin-ccw {
  from { --badge-angle: 0deg; }
  to { --badge-angle: -360deg; }
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(0, 210, 255, 0.14),
      0 0 8px rgba(0, 210, 255, 0.7),
      0 0 14px rgba(0, 210, 255, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(0, 210, 255, 0.1),
      0 0 14px rgba(0, 210, 255, 0.95),
      0 0 22px rgba(0, 210, 255, 0.5);
  }
}

/* Footer */

.footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.65rem, 1.7vh, 1.1rem);
  width: 100%;
  padding-top: clamp(1rem, 2.8vh, 1.85rem);
  padding-bottom: clamp(0.25rem, 1vh, 0.75rem);
  opacity: 0;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.15rem;
}

.footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.footer__contact-item:hover {
  opacity: 0.85;
}

.footer__contact-sep {
  color: rgba(154, 163, 181, 0.55);
  font-size: 1rem;
  line-height: 1;
  user-select: none;
}

.footer__contact-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}

.footer__contact-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1px;
  background: var(--gradient-h);
  -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;
  box-shadow: 0 0 14px rgba(157, 80, 187, 0.25);
}

.footer__contact-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.footer__contact-text {
  font-size: var(--footer-mail);
  font-weight: 500;
  background: var(--gradient-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.88rem);
}

.footer__legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal a:hover,
.footer__legal a[aria-current="page"] {
  color: var(--text);
}

.footer__legal-dot {
  color: #6b7385;
}

.footer__copy {
  font-size: clamp(0.65rem, 0.62rem + 0.15vw, 0.74rem);
  color: rgba(154, 163, 181, 0.72);
}

.footer__social {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.45rem;
}

.social-link {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  position: relative;
  transition: transform 0.25s ease;
}

.social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1px;
  background: var(--gradient-h);
  -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;
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* Legal pages */

.legal-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding:
    calc(1rem + var(--safe-top))
    var(--page-pad-x)
    0.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.legal-top__brand img {
  width: clamp(110px, 28vw, 160px);
  height: auto;
  display: block;
}

.legal-top__back {
  font-family: var(--font-body);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.legal-top__back:hover {
  color: var(--text);
}

.legal {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem var(--page-pad-x) 2.5rem;
  font-family: var(--font-body);
}

.status-badge--legal {
  margin-bottom: 1rem;
}

.legal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal__updated {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: var(--text-size);
  font-weight: 300;
  margin-bottom: 1.75rem;
}

.legal__content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  font-family: var(--font-body);
}

.legal__content h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.legal__content p,
.legal__content li {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.55;
  font-size: var(--text-size);
}

.legal__content ul {
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal__content a {
  color: #7ecbff;
  text-decoration: none;
}

.legal__content a:hover {
  text-decoration: underline;
}

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

.footer--legal {
  position: relative;
  z-index: 1;
  opacity: 1;
  animation: none;
  padding: 1rem var(--page-pad-x) calc(1.5rem + var(--safe-bottom));
  font-family: var(--font-body);
}

.footer--legal .footer__legal,
.footer--legal .footer__copy {
  font-family: var(--font-body);
}

/* Motion */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.26; transform: translate(-50%, -50%) scale(0.94); }
  50% { opacity: 0.42; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes pulse-glow-outer {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 0.72; transform: translate(-50%, -50%) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__glow,
  .brand__heading::before,
  .brand__heading::after,
  .brand__heading,
  .brand__tagline,
  .launch,
  .services,
  .footer,
  .status-badge__orbit,
  .status-badge__dot {
    animation: none;
    opacity: 1;
  }

  .services__item,
  .social-link {
    transition: none;
  }
}

/* ========== WIDTH ========== */

@media (max-width: 360px) {
  :root {
    --logo-w: 130px;
    --logo-h: 95px;
    --title-size: 1.1rem;
    --service-min: 48px;
    --service-gap: 0.7rem 0.9rem;
    --tagline-size: 0.5rem;
    --brand-gap: 1.15rem;
    --accent-size: 1.05rem;
  }

  .brand__tagline {
    letter-spacing: 0.1em;
  }

  .status-badge__text {
    white-space: normal;
    text-align: left;
    line-height: 1.3;
  }
}

@media (min-width: 361px) and (max-width: 480px) {
  :root {
    --logo-w: clamp(140px, 38vw, 190px);
    --logo-h: clamp(100px, 18vh, 140px);
    --service-gap: 0.9rem 1.25rem;
    --brand-gap: 1.4rem;
  }

  .brand__tagline {
    letter-spacing: 0.12em;
  }
}

/* Tablet — 481–767 */
@media (min-width: 481px) and (max-width: 767px) {
  :root {
    --logo-w: clamp(160px, 30vw, 200px);
    --logo-h: clamp(115px, 17vh, 145px);
    --brand-gap: 1.75rem;
    --service-gap: 1.15rem 1.75rem;
  }
}

@media (min-width: 768px) {
  :root {
    --logo-w: 210px;
    --logo-h: 150px;
    --brand-gap: 2.35rem;
  }
}

@media (min-width: 1440px) {
  :root {
    --logo-w: 240px;
    --logo-h: 170px;
    --title-size: 1.55rem;
    --brand-gap: 2.75rem;
  }
}

/* ========== HEIGHT ========== */

@media (max-height: 800px) {
  :root {
    --logo-h: clamp(90px, 15vh, 130px);
    --logo-w: clamp(125px, 24vw, 180px);
    --content-gap: clamp(0.5rem, 1.3vh, 0.9rem);
    --title-size: clamp(1.05rem, 2.6vh, 1.35rem);
    --icon-size: 26px;
    --brand-gap: 1.2rem;
    --page-pad-y: clamp(0.65rem, 2vh, 1.25rem);
  }
}

@media (max-height: 700px) {
  :root {
    --logo-h: 82px;
    --logo-w: 115px;
    --content-gap: 0.45rem;
    --brand-gap: 0.9rem;
    --accent-size: 1.05rem;
  }

  .launch__text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .launch__accent {
    font-size: 1.05rem;
  }

  .footer__copy {
    display: none;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  :root {
    --logo-h: 64px;
    --logo-w: 95px;
    --title-size: 1.05rem;
    --text-size: 0.75rem;
    --icon-size: 24px;
    --brand-gap: 0.5rem;
  }

  .brand__tagline {
    display: none;
  }

  .status-badge__text {
    white-space: normal;
    text-align: left;
  }

  .launch__text {
    display: none;
  }

  .footer__social {
    gap: 0.5rem;
  }

  .social-link,
  .footer__contact-icon {
    width: 1.95rem;
    height: 1.95rem;
  }

  .footer__contact {
    gap: 0.45rem 0.65rem;
  }
}

@media (max-width: 480px) {
  .footer__contact-sep {
    display: none;
  }

  .footer__contact {
    flex-direction: column;
    gap: 0.55rem;
  }
}

@media (hover: none) {
  .services__item:hover,
  .social-link:hover {
    transform: none;
  }
}
