/* White Light Agency — temporary site (digitalsecurity004.com) */

:root {
  --green: #76fbb9;
  --card: #0e1819;
  --line: rgba(255, 255, 255, .08);
  --text-soft: rgba(255, 255, 255, .85);
  --text-muted: rgba(255, 255, 255, .62);
  --font: "Onest", Arial, sans-serif;
}

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

html {
  background: #000;
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Don't hide the sprite with display:none — the MAX gradient would disappear */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1116px;
  margin: 0 auto;
}

/* ---------- Shared ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 13px 6px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  font: 700 11px/1.2 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pill--live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(118, 251, 185, .6);
  animation: pulse 2s ease-out infinite;
}

.title {
  font-weight: 900;
  font-size: clamp(32px, 3.3vw, 50px);
  line-height: .96;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.title__accent {
  display: block;
  color: var(--green);
}

/* ---------- Screen 1 ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 150px 24px 130px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(520px 340px at 0 0, rgba(10, 44, 38, .55), transparent 70%),
    linear-gradient(180deg, #121d1e 0, #0c1314 100px, #060a0a 190px, #020404 250px, #000 300px);
}

/*
  Screen 1 sizes come from a 1500px-wide mockup with a 68.5px heading.
  --u = 1 mockup px; icons and glow scale together with the heading.
  Icon coordinates (--x, --y) are the icon centre from the top-left corner of the heading letters.
*/
.hero__content {
  --h1: clamp(30px, 4.57vw, 68.5px);
  --u: calc(1em / 68.5);
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: .11em;
  font-size: var(--h1);
}

.hero__title {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  font-size: 1em;
  font-weight: 900;
  line-height: calc(66 / 68.5);
  letter-spacing: .08em;
  color: var(--green);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__line--full {
  grid-column: 1 / -1;
}

.hero__line--white {
  color: #fff;
  letter-spacing: .04em;
}

.hero__side {
  position: relative;
  z-index: 2;
  grid-column: 2;
  padding-top: 14.5px;
  font-size: 13px;
}

.hero__text {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 25px;
}

/* Icons and glow are positioned from the letters' corner, not the line box */

.hero__icons,
.hero__glow {
  position: absolute;
  left: calc(5 * var(--u));
  top: calc(6.5 * var(--u));
}

.icon {
  --x: 0;
  --y: 0;
  --w: 80;
  --r: 0deg;
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  z-index: 1;
  display: grid;
  place-items: center;
  width: calc(var(--w) * var(--u));
  aspect-ratio: 1;
  border-radius: 26%;
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(var(--r));
  box-shadow: 0 calc(14 * var(--u)) calc(34 * var(--u)) rgba(0, 0, 0, .28);
  animation: float 7s ease-in-out infinite;
}

.icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.icon--vk     { --x: 88;  --y: -38;  --w: 88; --r: -8deg;  background: #3375f6; animation-delay: -1s; }
.icon--dzen   { --x: 218; --y: -70;  --w: 44; --r: 9deg;   background: #2d3035; animation-delay: -3s; }
.icon--insta  { --x: 686; --y: -91;  --w: 67; --r: 14deg;  background: linear-gradient(142deg, #f8e44b 0%, #f2b048 18%, #ee7d5a 36%, #e8456f 55%, #c8348a 72%, #8f2aab 100%); animation-delay: -5s; }
.icon--max    { --x: 1000; --y: 8;   --w: 64; --r: -11deg; animation-delay: -2s; }
.icon--tiktok { --x: 379; --y: 149;  --w: 78; --r: -5deg;  background: #272c37; z-index: 3; animation-delay: -4s; }
.icon--ok     { --x: 52;  --y: 230;  --w: 51; --r: -20deg; background: #f0903a; animation-delay: -6s; }
.icon--fb     { --x: 248; --y: 288;  --w: 89; --r: 4.5deg; background: #3155bf; animation-delay: -2.5s; }
.icon--tg     { --x: 876; --y: 269;  --w: 67; --r: 7deg;   background: #55a9e8; animation-delay: -4.5s; }

/* The description doesn't scale, so on narrow screens Telegram is pushed to the right of it */
.icon--tg {
  left: max(calc(var(--x) * var(--u)), calc(545 * var(--u) + 307px));
}

.icon--vk svg    { width: 100%; }
.icon--dzen svg  { width: 100%; }
.icon--insta svg { width: 100%; }
.icon--tiktok svg { width: 56%; height: 56%; }
.icon--ok svg    { width: 74%; height: 74%; }

/* Green glow behind the heading */

.hero__glow {
  z-index: -1;
  pointer-events: none;
}

.glow {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--r));
  background: radial-gradient(closest-side, var(--c) 0%, color-mix(in srgb, var(--c) 55%, transparent) 50%, transparent 100%);
  filter: blur(calc(18 * var(--u)));
}

.glow--top  { --x: 190; --y: -120; --w: 640; --h: 380; --r: 22deg; --c: rgba(50, 112, 95, .95); }
.glow--band { --x: 400; --y: 110;  --w: 820; --h: 300; --r: 52deg; --c: rgba(36, 86, 70, .8); }
.glow--low  { --x: 520; --y: 270;  --w: 470; --h: 230; --r: 60deg; --c: rgba(44, 100, 72, .9); }

/* ---------- Screen 2 ---------- */

.soon {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 24px 32px;
  overflow: hidden;
  background:
    linear-gradient(#000 0, transparent 180px),
    radial-gradient(760px 520px at 92% -8%, rgba(78, 168, 118, .55), transparent 70%),
    radial-gradient(620px 420px at 70% 8%, rgba(30, 90, 70, .35), transparent 70%),
    radial-gradient(560px 380px at -6% 104%, rgba(24, 74, 60, .4), transparent 70%),
    #000;
}

.soon__inner {
  display: flex;
  flex-direction: column;
}

.soon__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 720px;
}

.soon__lead {
  max-width: 470px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 80px 0 64px;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 30px 30px 28px;
  border-radius: 24px;
  background: var(--card);
  transition: background-color .25s, transform .25s;
}

.card:hover {
  background: #122021;
  transform: translateY(-4px);
}

.card__icon {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .02em;
}

.card__text {
  margin: 22px 0 26px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.card .pill {
  margin-top: auto;
  font-size: 10px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Screen 1: the app ---------- */

.app {
  position: relative;
  padding: 0 24px 96px;
  background:
    radial-gradient(760px 520px at 92% -8%, rgba(78, 168, 118, .45), transparent 70%),
    radial-gradient(520px 380px at -8% 32%, rgba(24, 74, 60, .3), transparent 70%),
    #000;
}

.app__inner {
  display: flex;
  flex-direction: column;
}

.app__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 860px;
  margin-top: 88px;
}

.app__title {
  font-size: clamp(32px, 3.6vw, 56px);
}

.app__lead {
  max-width: 680px;
}

.app__lead strong {
  color: #fff;
}

.app__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #000;
  font: 700 14px/1.2 var(--font);
  letter-spacing: .02em;
  text-decoration: none;
  transition: opacity .2s;
}

.btn:hover {
  opacity: .85;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
}

.app__h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .02em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 56px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .06em;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 17px;
}

.steps code {
  font-size: 12px;
  word-break: break-all;
}

/* The agency hero is now the second screen: no light band at its top */
.hero--second {
  background:
    radial-gradient(520px 340px at 0 0, rgba(10, 44, 38, .55), transparent 70%),
    #000;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.tools__note {
  max-width: 780px;
  margin-bottom: 72px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.tools__note p + p {
  margin-top: 14px;
}

.tools__note a,
.footer a {
  color: var(--green);
  text-decoration: none;
}

.tools__note a:hover,
.footer a:hover {
  text-decoration: underline;
}

.footer {
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

/* ---------- Legal pages ---------- */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 24px 32px;
  background:
    radial-gradient(760px 520px at 92% -8%, rgba(78, 168, 118, .35), transparent 70%),
    radial-gradient(560px 380px at -6% 104%, rgba(24, 74, 60, .3), transparent 70%),
    #000;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
}

.topbar nav a {
  color: var(--text-soft);
  text-decoration: none;
}

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

.legal {
  max-width: 780px;
  padding: 64px 0 80px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.legal h1 {
  margin-bottom: 14px;
  color: var(--green);
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.legal .updated {
  margin-bottom: 44px;
  color: var(--text-muted);
  font-size: 14px;
}

.legal h2 {
  margin: 44px 0 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .02em;
}

.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: 12px;
}

.legal ul {
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.legal strong {
  color: #fff;
}

.legal a {
  color: var(--green);
}

.legal code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--card);
  color: #fff;
  font-size: 14px;
}

.legal .box {
  margin: 28px 0;
  padding: 18px 22px;
  border: 1.5px solid var(--green);
  border-radius: 18px;
  background: var(--card);
}

/* ---------- Animations ---------- */

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 calc(-8 * var(--u)); }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(118, 251, 185, .6); }
  100% { box-shadow: 0 0 0 10px rgba(118, 251, 185, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .icon,
  .pill--live i { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards--3 {
    grid-template-columns: 1fr;
  }

  .cards--3 .card {
    min-height: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    place-items: center start;
    padding: 160px 16px 190px;
  }

  .hero__content {
    --h1: clamp(28px, 10vw, 46px);
    position: static;
    display: block;
    width: 100%;
  }

  .hero__title {
    display: block;
    white-space: normal;
  }

  .hero__line--full {
    display: block;
  }

  .hero__side {
    padding-top: 22px;
  }

  .hero__text {
    font-size: 15px;
    line-height: 24px;
  }

  .hero__text br {
    display: none;
  }

  /* On phones the icons sit above the heading and below the text */
  .hero__icons,
  .hero__glow {
    inset: 0;
  }

  .icon {
    left: var(--mx);
    top: var(--my);
    width: var(--mw);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  }

  .icon--vk     { --mx: 14%; --my: 74px;  --mw: 60px; }
  .icon--dzen   { --mx: 37%; --my: 44px;  --mw: 32px; }
  .icon--max    { --mx: 61%; --my: 96px;  --mw: 46px; }
  .icon--insta  { --mx: 86%; --my: 58px;  --mw: 50px; }
  .icon--ok     { --mx: 12%; --my: calc(100% - 118px); --mw: 40px; }
  .icon--fb     { --mx: 36%; --my: calc(100% - 66px);  --mw: 60px; }
  .icon--tiktok { --mx: 63%; --my: calc(100% - 120px); --mw: 52px; }
  .icon--tg     { --mx: 87%; --my: calc(100% - 62px);  --mw: 48px; }

  .glow {
    left: var(--mx);
    top: var(--my);
    width: var(--mw);
    height: var(--mh);
    filter: blur(14px);
  }

  .glow--top  { --mx: 30%; --my: 0;   --mw: 520px; --mh: 300px; }
  .glow--band { --mx: 52%; --my: 45%; --mw: 640px; --mh: 220px; }
  .glow--low  { --mx: 70%; --my: 70%; --mw: 380px; --mh: 180px; }

  .soon {
    padding: 96px 16px 24px;
  }

  .app {
    padding: 0 16px 64px;
  }

  .app__head {
    margin-top: 56px;
  }

  .page {
    padding: 0 16px 24px;
  }

  .legal {
    padding: 40px 0 56px;
  }

  .soon__lead {
    font-size: 16px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 48px 0;
  }

  .card {
    min-height: 0;
    padding: 26px 24px 24px;
  }
}
