/* ============================================================
   SHIFT UK — Brand Stylesheet
   Colors: #fff, #000, #FF2600 (Dawn Orange)
   Fonts:  Inter, Playfair Display Italic
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:      #FFFFFF;
  --white:      #000000;
  --orange:     #FF2600;
  --dim:        rgba(0,0,0,0.55);
  --dimmer:     rgba(0,0,0,0.35);
  --faint:      rgba(0,0,0,0.08);
  --faintest:   rgba(0,0,0,0.05);

  --font-sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --nav-h:      64px;
  --pad-v:      clamp(80px, 10vw, 140px);
  --pad-h:      clamp(24px, 5vw, 80px);
  --max-w:      1440px;

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background: var(--black);
}

body {
  font-family: var(--font-sans);
  background: transparent;
  color: var(--white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
}

p {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--dim);
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border: 1px solid var(--orange);
}
.btn--primary:hover {
  background: transparent;
  color: var(--orange);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(0,0,0,0.3);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(0,0,0,0.06);
}

.btn--full { width: 100%; }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s;
}

.nav.nav--scrolled {
  background: transparent;
  backdrop-filter: none;
}

.nav__logo { display: flex; align-items: center; }

.nav__logo-img {
  display: block;
  height: 22px;
  width: auto;
}

.nav__microagi {
  display: flex;
  align-items: baseline;
  opacity: 0.85;
  transition: opacity 0.2s;
  line-height: 1;
}
.nav__microagi:hover { opacity: 1; }

.nav__microagi-micro {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--white);
}

.nav__microagi-agi {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: transparent;
  padding: calc(var(--nav-h) + 60px) var(--pad-h) var(--pad-v);
  overflow: hidden;
}

.site-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  display: block;
  width: 100vw;
  height: 100vh;
}

.dots-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: block;
  width: 100vw;
  height: 100vh;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--orange);
}

.hero__headline {
  font-size: clamp(48px, 6vw, 100px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 28px;
}

.hero__sub {
  font-size: clamp(17px, 1.5vw, 21px);
  color: rgba(0,0,0,0.55);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 44px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  z-index: 3;
  bottom: 40px;
  left: var(--pad-h);
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(0,0,0,0.25);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 48px;
  height: 1px;
  background: rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--orange);
  animation: scrollLine 2.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { left: -100%; }
  50%  { left: 0; }
  100% { left: 100%; }
}

/* ── ENVIRONMENTS ─────────────────────────────────────────── */
.environments {
  background: transparent;
  padding: var(--pad-v) var(--pad-h);
}

.env__intro {
  max-width: 560px;
  margin: 0 auto clamp(60px, 8vw, 96px);
  text-align: center;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--dim);
  line-height: 1.65;
}

.env__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  max-width: 960px;
  margin: 0 auto;
}

.env__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.env__item--low {
  margin-top: clamp(28px, 4vw, 56px);
}

.env__circle {
  width: 100%;
  padding-bottom: 100%;
  border-radius: 50%;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0,0,0,0.12);
  transition: border-color 0.3s var(--ease), filter 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  filter: brightness(0.65) saturate(0.85);
}

.env__item:hover .env__circle {
  border-color: rgba(0,0,0,0.4);
  filter: brightness(0.9) saturate(1.05);
}

.env__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dimmer);
  transition: color 0.2s;
}

.env__item:hover .env__label {
  color: var(--white);
}

/* ── SHARED SECTION ───────────────────────────────────────── */
.section {
  padding: var(--pad-v) var(--pad-h);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}

.section__num {
  font-size: 11px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.08em;
}

.section__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dimmer);
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how__headline {
  font-size: clamp(36px, 4vw, 72px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.how__intro {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--dim);
  max-width: 480px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--faint);
  border: 1px solid var(--faint);
  margin-bottom: clamp(48px, 6vw, 80px);
}

.how__step {
  background: var(--black);
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how__step-num {
  font-size: 11px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.1em;
}

.how__step-title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
}

.how__step-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--dim);
}

.how__pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--faint);
  border: 1px solid var(--faint);
}

.how__pillar {
  background: var(--black);
  padding: clamp(24px, 2.5vw, 36px) clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.how__pillar-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.01em;
}

.how__pillar-body {
  font-size: 13px;
  color: var(--dimmer);
  line-height: 1.65;
}

/* ── CONTACT ──────────────────────────────────────────────── */
.contact__content {
  max-width: 560px;
}

.contact__headline {
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.contact__body {
  color: var(--dim);
  margin-bottom: 40px;
  max-width: 400px;
}

.contact__book {
  display: inline-flex;
  margin-bottom: 40px;
  font-size: 14px;
  padding: 16px 36px;
}

.contact__email {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: 12px;
  transition: opacity 0.2s;
}
.contact__email:hover { opacity: 0.7; }

.contact__org {
  font-size: 13px;
  color: var(--dimmer);
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: transparent;
  border-top: 1px solid var(--faint);
  padding: clamp(40px, 5vw, 64px) var(--pad-h) 28px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--faint);
  margin-bottom: 20px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__logo { display: flex; align-items: center; }

.footer__logo-img {
  display: block;
  height: 20px;
  width: auto;
}

.footer__tagline {
  font-size: 13px;
  color: rgba(0,0,0,0.35);
  line-height: 1.5;
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer__link {
  font-size: 13px;
  color: var(--dimmer);
  transition: color 0.2s;
}
.footer__link:hover { color: var(--white); }

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__copy {
  font-size: 12px;
  color: rgba(0,0,0,0.2);
}

/* ── SCROLL ANIMATIONS ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .how__steps,
  .how__pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact__grid { grid-template-columns: 1fr; }

  .env__grid { grid-template-columns: repeat(2, 1fr); }
  .env__item--low { margin-top: 0; }

  .how__steps,
  .how__pillars {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }
  .footer__right { align-items: flex-start; }

  .hero__scroll-indicator { display: none; }
}

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

  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
}

/* ── NAV RIGHT ────────────────────────────────────────────── */
.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ── LOCALE SWITCHER ──────────────────────────────────────── */
.locale-switcher {
  position: relative;
}

.locale-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 100px;
  padding: 5px 10px 5px 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.locale-btn:hover {
  border-color: rgba(0,0,0,0.35);
}

.locale-flag {
  font-size: 18px;
  line-height: 1;
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.locale-caret {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.locale-btn.open .locale-caret {
  transform: rotate(180deg);
}

.locale-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: #eee;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 8px;
  display: none;
  z-index: 200;
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.locale-dropdown.open {
  display: block;
}

.locale-region {
  padding: 4px 0;
}

.locale-region + .locale-region {
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 4px;
  padding-top: 8px;
}

.locale-region-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 7px 8px;
  cursor: pointer;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
  text-align: left;
}

.locale-region-btn:hover {
  background: rgba(0,0,0,0.06);
}

.locale-region-btn.active {
  color: var(--orange);
}

.locale-region-flag {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.locale-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 8px 4px 36px;
}

.locale-lang-btn {
  background: none;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 100px;
  padding: 3px 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--dimmer);
  cursor: pointer;
  transition: all 0.15s;
}

.locale-lang-btn:hover {
  border-color: rgba(0,0,0,0.3);
  color: var(--white);
}

.locale-lang-btn.active {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255,38,0,0.08);
}
