:root {
  --blue: #3145e8;
  --cyan: #61eff2;
  --ink: #03053a;
  --white: #ffffff;
  --page: #ffffff;
  --text: #050625;
  --button-text: #ffffff;
  --muted: rgba(5, 6, 37, 0.72);
  --toggle-border: rgba(5, 6, 37, 0.14);
  --toggle-bg: rgba(5, 6, 37, 0.055);
  --toggle-shadow: rgba(5, 6, 37, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --page: #02041d;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.76);
  --button-text: #ffffff;
  --toggle-border: rgba(255, 255, 255, 0.18);
  --toggle-bg: rgba(255, 255, 255, 0.075);
  --toggle-shadow: rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--page);
  transition: color 240ms var(--ease), background-color 240ms var(--ease);
}

body::selection {
  color: var(--white);
  background: var(--blue);
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 42%, rgba(97, 239, 242, 0.1), transparent 22rem),
    var(--page);
}

:root[data-theme="dark"] .site-shell {
  background:
    radial-gradient(circle at 80% 42%, rgba(97, 239, 242, 0.16), transparent 28rem),
    linear-gradient(90deg, #02031a 0%, #02041d 48%, #11263a 100%);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: clamp(2rem, 4.7vw, 5.4rem) clamp(1.5rem, 12vw, 14.5rem);
  isolation: isolate;
}

.content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  width: min(100%, 34rem);
  min-height: calc(100vh - clamp(4rem, 9.4vw, 10.8rem));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  width: min(100vw - 3rem, 34rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: clamp(10.5rem, 18vw, 20.5rem);
  aspect-ratio: 3208 / 1070;
  line-height: 0;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.logo-dark,
:root[data-theme="dark"] .logo-light {
  display: none;
}

:root[data-theme="dark"] .logo-dark {
  display: block;
}

.theme-toggle {
  position: fixed;
  z-index: 5;
  top: clamp(2rem, 4.7vw, 5.4rem);
  right: clamp(1.5rem, 5vw, 5.4rem);
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  min-height: 2.375rem;
  padding: 0.25rem 0.62rem 0.25rem 0.3rem;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  color: var(--text);
  background: var(--toggle-bg);
  box-shadow: 0 0.875rem 2rem var(--toggle-shadow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 220ms var(--ease),
    background-color 220ms var(--ease),
    color 220ms var(--ease),
    transform 220ms var(--ease);
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle:focus-visible,
.contact-button:focus-visible {
  outline: 3px solid rgba(97, 239, 242, 0.8);
  outline-offset: 4px;
}

.toggle-track {
  position: relative;
  display: inline-flex;
  width: 2.1rem;
  height: 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.toggle-thumb {
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 0.84rem;
  height: 0.84rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0.2rem 0.6rem rgba(3, 5, 58, 0.22);
  transition: transform 220ms var(--ease);
}

:root[data-theme="dark"] .toggle-thumb {
  transform: translateX(0.9rem);
}

.toggle-label {
  min-width: 2.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.message {
  align-self: center;
  padding-top: clamp(4rem, 11vh, 9.2rem);
}

.message h1 {
  margin: 0 0 1.6rem;
  font-size: clamp(1.2rem, 1.15vw, 1.45rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

.message p {
  max-width: 31rem;
  margin: 0 0 1.45rem;
  color: var(--text);
  font-size: clamp(1.12rem, 1.18vw, 1.35rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0;
}

:root[data-theme="dark"] .message p,
:root[data-theme="dark"] .message h1 {
  color: var(--muted);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  margin-top: clamp(2.2rem, 4.5vw, 4.4rem);
  padding: 0.42rem 1.18rem 0.5rem;
  border-radius: 999px;
  color: var(--button-text);
  background: linear-gradient(100deg, var(--blue), var(--cyan));
  box-shadow: 0 0.75rem 1.8rem rgba(49, 69, 232, 0.22);
  font-size: clamp(1rem, 1.05vw, 1.25rem);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.contact-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 1rem 2rem rgba(49, 69, 232, 0.26);
}

.ribbon-wrap {
  position: absolute;
  z-index: 1;
  right: clamp(-33rem, -18vw, -12rem);
  bottom: clamp(-22rem, -20vw, -10rem);
  width: clamp(46rem, 64vw, 80rem);
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.ribbon {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 980px) {
  .hero {
    padding-inline: clamp(1.5rem, 7vw, 4.5rem);
  }

  .ribbon-wrap {
    right: clamp(-28rem, -45vw, -16rem);
    width: clamp(38rem, 92vw, 56rem);
  }
}

@media (max-width: 760px) {
  .site-shell {
    min-height: 100svh;
  }

  .hero {
    min-height: 100svh;
    padding: 1.8rem clamp(1.35rem, 6vw, 2.5rem) 2rem;
  }

  .content {
    width: 100%;
    min-height: calc(100svh - 3.8rem);
  }

  .topbar {
    justify-content: space-between;
    width: 100%;
  }

  .brand {
    width: clamp(8.8rem, 38vw, 12.2rem);
  }

  .theme-toggle {
    position: static;
    min-height: 2.2rem;
    padding-right: 0.54rem;
  }

  .toggle-label {
    min-width: 2rem;
    font-size: 0.72rem;
  }

  .message {
    align-self: end;
    width: min(100%, 22rem);
    padding-top: 14.5rem;
    padding-bottom: clamp(1rem, 6vh, 4rem);
  }

  .message h1 {
    margin-bottom: 1rem;
    font-size: 1.05rem;
  }

  .message p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 4.55vw, 1.18rem);
    line-height: 1.32;
  }

  .contact-button {
    min-height: 2.35rem;
    margin-top: 1.45rem;
    padding-inline: 1rem;
    font-size: 1rem;
  }

  .ribbon-wrap {
    top: -7.5rem;
    right: clamp(-6.5rem, -24vw, -4.2rem);
    bottom: auto;
    width: clamp(18rem, 75vw, 30rem);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 27%, rgba(0, 0, 0, 0.62) 58%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 27%, rgba(0, 0, 0, 0.62) 58%, #000 100%);
  }
}

@media (max-width: 420px) {
  .hero {
    padding-inline: 1.1rem;
  }

  .message {
    width: min(100%, 20rem);
    padding-top: 13rem;
  }

  .ribbon-wrap {
    top: -6.7rem;
    right: -5.7rem;
    width: 21rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
