/* Thexabyte — site stylesheet
   Tokens first, then layout, then components. Values match the approved design. */

:root {
  --bg: #04060C;
  --bg-2: #080D1C;
  --text: #E9EEFA;
  --text-2: #C6D0E4;
  --text-3: #B4C0D6;
  --muted: #A9B6CF;
  --white: #FFFFFF;
  --cyan: #4DE1FF;
  --violet: #8B7CFF;
  --ok: #7CF5C8;
  --err: #FF8A8A;
  --line: rgba(140, 170, 255, 0.14);
  --line-2: rgba(140, 170, 255, 0.2);
  --line-3: rgba(140, 170, 255, 0.25);
  --grad: linear-gradient(90deg, #4DE1FF, #8B7CFF);
  --font-display: 'Sora', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --container: 1200px;
  --gutter: 32px;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

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

a { color: var(--cyan); }
a:hover { color: var(--white); }

h1, h2, h3 { text-wrap: balance; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

[hidden] { display: none !important; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cyan); color: var(--bg);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; color: var(--bg); }

.site {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;   /* fallback */
  overflow: clip;     /* clips the rotating rings' bounding box without creating a scroll container */
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */

.header {
  border-bottom: 1px solid var(--line);
  background: rgba(4, 6, 12, 0.85);
}

.header__inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand:hover { color: var(--white); }

.brand__name {
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: -0.02em;
}
.brand__thin { font-weight: 300; }
.brand__bold { font-weight: 800; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 30px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

.nav__link {
  color: var(--text-2);
  text-decoration: none;
  padding: 12px 0;
}
.nav__link:hover { color: var(--white); }

.nav__lang {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, color 0.25s;
}
.nav__lang:hover { color: var(--white); border-color: rgba(77, 225, 255, 0.6); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: normal;
  text-decoration: none;
  text-align: center;
  padding: 16px 30px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.btn--primary {
  background: var(--grad);
  color: var(--bg);
}
.btn--primary:hover {
  color: var(--bg);
  box-shadow: 0 0 36px rgba(77, 225, 255, 0.55);
  transform: translateY(-1px);
}
.btn--primary:disabled {
  cursor: progress;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.btn--glow { box-shadow: 0 0 24px rgba(77, 225, 255, 0.3); }

.btn--nav { padding: 12px 22px; font-size: 15px; }

.btn--ghost {
  border: 1px solid rgba(140, 170, 255, 0.4);
  color: var(--white);
  font-weight: 600;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover { color: var(--white); border-color: rgba(77, 225, 255, 0.6); }

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

.hero {
  position: relative;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(60, 110, 255, 0.28), rgba(4, 6, 12, 0) 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(139, 124, 255, 0.16), rgba(4, 6, 12, 0) 70%),
    linear-gradient(rgba(140, 170, 255, 0.07) 1px, rgba(0, 0, 0, 0) 1px),
    linear-gradient(90deg, rgba(140, 170, 255, 0.07) 1px, rgba(0, 0, 0, 0) 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}

.hero__inner {
  padding-top: 96px;
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  gap: 56px 64px;
  align-items: center;
}

.hero__copy {
  flex: 3 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-3);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
}

.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
}

.hero__lead {
  margin: 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-3);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__art {
  flex: 2 1 340px;
  min-width: 0;
}

/* Orbiting mark */

.orbit {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.orbit__ring {
  position: absolute;
  border-radius: 50%;
}
.orbit__ring--1 { inset: 0;   border: 1px solid rgba(77, 225, 255, 0.3);   animation: spin 48s linear infinite; }
.orbit__ring--2 { inset: 11%; border: 1px dashed rgba(139, 124, 255, 0.45); animation: spinr 36s linear infinite; }
.orbit__ring--3 { inset: 22%; border: 1px solid rgba(140, 170, 255, 0.3);  animation: spin 24s linear infinite; }

.orbit__dot {
  position: absolute;
  border-radius: 50%;
}
.orbit__ring--1 .orbit__dot {
  top: -5px; left: 50%;
  width: 10px; height: 10px; margin-left: -5px;
  background: var(--cyan); box-shadow: 0 0 16px var(--cyan);
}
.orbit__ring--2 .orbit__dot {
  bottom: -4px; left: 50%;
  width: 8px; height: 8px; margin-left: -4px;
  background: var(--violet); box-shadow: 0 0 14px var(--violet);
}
.orbit__ring--3 .orbit__dot {
  top: 50%; right: -4px;
  width: 8px; height: 8px; margin-top: -4px;
  background: var(--white); box-shadow: 0 0 14px var(--white);
}

.orbit__core {
  position: absolute;
  inset: 31%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(77, 225, 255, 0.5), rgba(60, 90, 255, 0.25) 45%, rgba(10, 16, 34, 0.9) 75%);
  border: 1px solid rgba(77, 225, 255, 0.55);
  box-shadow: 0 0 70px rgba(60, 130, 255, 0.5), inset 0 0 40px rgba(77, 225, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.orbit__core svg { width: 46%; height: auto; }

/* Service chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.chip {
  flex: 1 1 170px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(140, 170, 255, 0.22);
  border-radius: 12px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.03);
}
.chip:hover { color: var(--text); }

/* ---------- Sections ---------- */

.section {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.section--approach {
  background: linear-gradient(180deg, #04060C, #080D1C 50%, #04060C);
}

.section__inner {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px;
}

.kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
}

/* ---------- Service cards ---------- */

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  flex: 1 1 300px;
  min-width: 0;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 24px;
}

.card--feature {
  flex: 2 1 520px;
  padding: 36px;
  gap: 16px;
  background: linear-gradient(135deg, rgba(77, 225, 255, 0.12), rgba(139, 124, 255, 0.08) 45%, rgba(255, 255, 255, 0.02));
}

.card, .chip {
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover, .chip:hover {
  border-color: rgba(77, 225, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(40, 120, 255, 0.18);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card__icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  border: 1px solid rgba(140, 170, 255, 0.35);
  background: rgba(140, 170, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__icon svg { width: 24px; height: 24px; }

.card--feature .card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  border-color: rgba(77, 225, 255, 0.5);
  background: rgba(77, 225, 255, 0.1);
  box-shadow: 0 0 22px rgba(77, 225, 255, 0.25);
}
.card--feature .card__icon svg { width: 26px; height: 26px; }

.card__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: var(--white);
}
.card--feature .card__title { font-size: 28px; }

.card__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-3);
}
.card--feature .card__text { font-size: 17px; max-width: 560px; }

.card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Approach steps ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 24px;
}

.step {
  --step-line: var(--cyan);
  --step-label: var(--cyan);
  flex: 1 1 230px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 2px solid var(--step-line);
  padding-top: 22px;
}
.step:nth-child(2) { --step-line: #62C4FF; --step-label: #62C4FF; }
.step:nth-child(3) { --step-line: #78A4FF; --step-label: #8FB2FF; }
.step:nth-child(4) { --step-line: #8B7CFF; --step-label: #A99DFF; }

.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--step-label);
}

.step__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
}

.step__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-3);
}

/* ---------- Contact panel ---------- */

.contact__inner {
  padding-top: 96px;
  padding-bottom: 96px;
}

.panel {
  border: 1px solid rgba(77, 225, 255, 0.4);
  border-radius: 24px;
  padding: 56px;
  background: linear-gradient(135deg, rgba(77, 225, 255, 0.1), rgba(139, 124, 255, 0.1));
  box-shadow: 0 0 80px rgba(60, 110, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  align-items: flex-start;
}

.panel__copy {
  flex: 2 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
}

.panel__text {
  margin: 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
}

.details {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail__value {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.detail__value a { color: var(--white); text-decoration: none; }
.detail__value a:hover { color: var(--cyan); }

/* ---------- Contact form ---------- */

.form {
  flex: 3 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.field {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__opt {
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.8;
}

.field__input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: rgba(4, 6, 12, 0.55);
  border: 1px solid rgba(140, 170, 255, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field__input::placeholder { color: rgba(169, 182, 207, 0.6); }
.field__input:hover { border-color: rgba(140, 170, 255, 0.45); }
.field__input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(77, 225, 255, 0.2);
}

textarea.field__input {
  min-height: 150px;
  resize: vertical;
}

select.field__input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A9B6CF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
select.field__input option { background: var(--bg-2); color: var(--text); }

.hp { display: none; }

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 6px;
}

.form__note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 320px;
}

.form__status {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.form__status--ok  { color: var(--ok);  border-color: rgba(124, 245, 200, 0.35); background: rgba(124, 245, 200, 0.08); }
.form__status--err { color: var(--err); border-color: rgba(255, 138, 138, 0.35); background: rgba(255, 138, 138, 0.08); }

/* ---------- Notice pages (thanks, 404) ---------- */

.notice {
  flex: 1 0 auto;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.notice__inner {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  max-width: 760px;
}

.notice__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--white);
}

.notice__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-3);
}

.notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

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

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer__inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

.footer .brand__name { font-size: 18px; }

.footer__tags {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* ---------- Motion ---------- */

@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes spinr { to { transform: rotate(-360deg); } }
@keyframes pulse { 50% { opacity: 0.5; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .header__inner { gap: 12px 24px; }
  .nav { gap: 4px 18px; }
  .hero__inner { padding-top: 64px; padding-bottom: 56px; gap: 56px; }
  .hero__row { gap: 44px; }
  .section__inner, .contact__inner, .notice__inner { padding-top: 72px; padding-bottom: 72px; }
  .card, .card--feature { padding: 26px; }
  .panel { padding: 32px 24px; border-radius: 18px; gap: 36px; }
}
