/* Sea Fang — under construction page */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Sampled from the logo artwork */
  --bg: #000;
  --blue: #0176f6;
  --blue-bright: #18a2ff;
  --blue-deep: #024ed9;
  --steel: #dfdfdf;
  --steel-mid: #a4abb5;
  --steel-dim: #6b727c;
  --line: rgba(223, 223, 223, 0.16);
  --skew: -16deg;
  --gutter: clamp(18px, 4vw, 40px);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--steel);
  font-family: "Montserrat", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Both languages live in the markup; the root class picks one. */
html:not(.tr) body [lang="tr"],
html.tr body [lang="en"] {
  display: none;
}

/* ---------- Backdrop ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% 36%, rgba(1, 118, 246, 0.2), transparent 72%),
    radial-gradient(90% 46% at 50% 112%, rgba(2, 78, 217, 0.34), transparent 70%),
    var(--bg);
}

/* Top edge: blue running into steel, like the ring of the badge */
.backdrop::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue) 22%, var(--blue-bright) 46%, var(--steel) 62%, transparent);
  opacity: 0.9;
}

/* ---------- Top bar ---------- */

.top {
  display: flex;
  justify-content: flex-end;
  min-height: 60px;
  padding: calc(18px + env(safe-area-inset-top)) calc(var(--gutter) + env(safe-area-inset-right)) 0 var(--gutter);
}

.lang {
  display: none;
  align-items: center;
  gap: 10px;
}

html.js .lang {
  display: inline-flex;
}

.lang__btn {
  appearance: none;
  margin: 0;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--steel-dim);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang__btn:hover {
  color: var(--steel);
}

.lang__btn[aria-pressed="true"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--blue);
}

.lang__btn:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.lang__sep {
  width: 1px;
  height: 14px;
  background: var(--line);
  transform: skewX(var(--skew));
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 72px) var(--gutter);
  text-align: center;
}

.hero > * {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero > :nth-child(2) { animation-delay: 0.12s; }
.hero > :nth-child(3) { animation-delay: 0.2s; }
.hero > :nth-child(4) { animation-delay: 0.28s; }
.hero > :nth-child(5) { animation-delay: 0.36s; }
.hero > :nth-child(6) { animation-delay: 0.44s; }

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

.hero__logo {
  margin: 0;
  width: min(100%, 700px);
  line-height: 0;
}

.hero__logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 42px rgba(1, 118, 246, 0.28));
}

.status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: clamp(34px, 6vh, 56px) 0 0;
  padding: 10px 24px 10px 22px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.4;
}

.status::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(24, 162, 255, 0.55);
  background: linear-gradient(180deg, rgba(1, 118, 246, 0.2), rgba(1, 118, 246, 0.05));
  box-shadow: 0 0 26px rgba(1, 118, 246, 0.22);
  transform: skewX(var(--skew));
}

.status > * {
  position: relative;
}

.status__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 10px var(--blue-bright);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.headline {
  margin: 22px 0 0;
  padding-left: 0.3em; /* optically re-centre the tracked caps */
  font-size: clamp(24px, 5.6vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
  background: linear-gradient(180deg, #fff 8%, #c9ced5 46%, #8b929c 62%, #e6e9ed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 34em;
  margin: 16px 0 0;
  text-wrap: balance;
  color: var(--steel-mid);
  font-size: clamp(15px, 1.9vw, 17px);
  font-weight: 400;
}

.range {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 720px;
  margin: clamp(34px, 6vh, 54px) 0 0;
  padding: 0;
  list-style: none;
}

.range li {
  position: relative;
  padding: 15px 8px 14px;
  color: var(--steel);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  line-height: 1.35;
}

.range li::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-left: 2px solid var(--blue);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01));
  transform: skewX(var(--skew));
}

.range li > * {
  position: relative;
}

.range__n {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-bright);
  font-size: 10.5px;
  font-weight: 700;
}

.progress {
  position: relative;
  width: min(100%, 720px);
  height: 2px;
  margin-top: clamp(34px, 6vh, 54px);
  overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

.progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 32%;
  background: linear-gradient(90deg, transparent, var(--blue) 40%, var(--blue-bright) 70%, #fff);
  animation: sweep 2.8s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}

@keyframes sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(315%);
  }
}

/* ---------- Footer ---------- */

.foot {
  padding: 18px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  color: var(--steel-dim);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.foot p {
  margin: 0;
}

.foot__mark {
  display: block;
  width: 26px;
  height: auto;
  margin: 0 auto 14px;
  opacity: 0.85;
}

/* ---------- 404 ---------- */

.hero--compact .hero__logo {
  width: min(100%, 460px);
}

.link {
  position: relative;
  display: inline-block;
  margin-top: 30px;
  padding: 12px 26px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-decoration: none;
  text-transform: uppercase;
}

.link::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(24, 162, 255, 0.55);
  background: linear-gradient(180deg, rgba(1, 118, 246, 0.26), rgba(1, 118, 246, 0.08));
  transform: skewX(var(--skew));
  transition: background 0.2s ease;
}

.link:hover::before {
  background: linear-gradient(180deg, rgba(1, 118, 246, 0.5), rgba(1, 118, 246, 0.2));
}

.link:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 4px;
}

.link > * {
  position: relative;
}

/* ---------- Small screens ---------- */

@media (max-width: 620px) {
  .range {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    max-width: 400px;
    padding: 0 8px;
  }

  .status {
    font-size: 11px;
    letter-spacing: 0.24em;
  }

  .headline {
    letter-spacing: 0.2em;
    padding-left: 0.2em;
  }
}

@media (max-width: 360px) {
  .range li {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero > *,
  .status__dot {
    animation: none;
  }

  .progress span {
    animation: none;
    left: 34%;
  }
}
