:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #526071;
  --paper: #fbfcfe;
  --surface: #ffffff;
  --line: #d9e1ec;
  --blue: #2563eb;
  --cyan: #0ea5e9;
  --gold: #f59e0b;
  --rose: #e11d48;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), var(--paper) 62%),
    var(--paper);
  overflow-x: hidden;
}

html.i18n-pending body {
  opacity: 0;
}

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

a {
  color: inherit;
}

.language-switcher {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 98px;
}

.language-trigger {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
  backdrop-filter: blur(12px);
}

.saturn-mark {
  position: relative;
  z-index: 0;
  width: 30px;
  height: 30px;
  display: inline-block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff7ad 0 12%, #facc15 22%, #f97316 56%, #ef4444 100%);
  box-shadow:
    inset -5px -5px 10px rgba(126, 34, 206, 0.28),
    0 0 18px rgba(245, 158, 11, 0.32);
}

.saturn-mark::before {
  content: none;
}

.saturn-mark::after {
  content: none;
}

.current-language {
  min-width: 20px;
  text-align: left;
}

.language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 142px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.96);
  transform-origin: top right;
  backdrop-filter: blur(14px);
}

.language-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 34px;
  width: 2px;
  height: 14px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0), rgba(14, 165, 233, 0.46));
}

.language-switcher.is-open .language-menu {
  opacity: 1;
  pointer-events: auto;
  animation: saturnDrop 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.language-menu button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
}

.language-menu button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
}

.language-menu button:hover,
.language-menu button.is-active {
  background: var(--ink);
  color: #ffffff;
}

.language-menu button.is-active::after {
  background: currentColor;
}

@keyframes saturnDrop {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.94) rotate(-2deg);
  }

  70% {
    opacity: 1;
    transform: translateY(3px) scale(1.01) rotate(1deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.hero {
  position: relative;
  min-height: clamp(292px, 43vh, 430px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/images/eydevelops-header-v2-1600.webp");
  background-position: left top;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.54) 48%, rgba(255, 255, 255, 0.1)),
    linear-gradient(0deg, var(--paper), rgba(255, 255, 255, 0) 38%);
}

.hero__content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 34px;
}

.brand-mark {
  width: clamp(64px, 8vw, 96px);
  height: clamp(64px, 8vw, 96px);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  width: fit-content;
  max-width: min(860px, 100%);
  margin-bottom: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: #253041;
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: normal;
}

.apps,
.app-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.apps {
  padding: clamp(16px, 2.6vh, 28px) 0 64px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-heading p {
  max-width: min(860px, 100%);
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.4;
}

.site-footer a,
.text-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

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

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  min-height: 170px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.app-card:hover {
  border-color: color-mix(in srgb, var(--cyan), var(--gold) 35%);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.app-card img,
.app-icon {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.app-card span,
.app-title {
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.app-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  text-align: center;
}

.app-page__content {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.app-page .app-icon {
  width: min(42vw, 180px);
  height: min(42vw, 180px);
}

.app-title {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--ink);
}

.app-status {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 18px;
}

.button-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.16);
}

.button-link:hover {
  background: #1f2a3d;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 36px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 920px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .language-switcher {
    top: 14px;
    right: 14px;
    width: 88px;
  }

  .language-trigger {
    min-height: 44px;
  }

  .saturn-mark {
    width: 26px;
    height: 26px;
  }

  .hero {
    min-height: clamp(230px, 38vh, 310px);
  }

  .hero__media {
    background-image: url("/assets/images/eydevelops-header-v2-960.webp");
    background-position: 72% top;
    filter: saturate(1.2) contrast(1.08);
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.82) 58%, var(--paper)),
      linear-gradient(90deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.16));
  }

  .hero__content {
    padding: 62px 0 24px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  h1 {
    margin-bottom: 10px;
    font-size: clamp(2.35rem, 13vw, 3.3rem);
  }

  .hero p {
    width: 100%;
    max-width: 100%;
    font-size: clamp(0.92rem, 3.8vw, 1.02rem);
    line-height: 1.35;
    text-wrap: pretty;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .apps {
    padding: 14px 0 40px;
  }

  .section-heading {
    align-items: start;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-heading {
    margin-bottom: 10px;
  }

  .app-card {
    min-height: 136px;
    gap: 10px;
    padding: 16px;
  }

  .app-card img {
    width: 78px;
    height: 78px;
  }

  .app-card span {
    font-size: 1.05rem;
  }
}
